Skip to content

Commit

Permalink
Update main
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoseangel committed Sep 1, 2020
1 parent 8a0ae1d commit f1a7390
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions roles/restapi/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,21 @@
containers:
- name: restapi
image: "docker.io/imjoseangel/restapi:latest"
imagePullPolicy: Always
ports:
- containerPort: 5000
resources:
requests: # minimum resources required
cpu: 250m
memory: 64Mi
limits: # maximum resources allocated
cpu: 500m
memory: 256Mi
readinessProbe: # is the container ready to receive traffic?
httpGet:
port: 5000
path: /
livenessProbe: # is the container healthy?
httpGet:
port: 5000
path: /

0 comments on commit f1a7390

Please sign in to comment.