Skip to content

Commit

Permalink
add livenessProbe and readinessProbe (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
alin999 authored Aug 17, 2020
1 parent 5615fb2 commit b50d1bd
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion deploy/platformstorageapi/templates/platformstorageapi.gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ spec:
- name: platformstorageapi
image: {{ .Values.IMAGE }}
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /api/v1/ping
port: tcp-web
initialDelaySeconds: 10
periodSeconds: 5
readinessProbe:
httpGet:
path: /api/v1/ping
port: tcp-web
initialDelaySeconds: 10
periodSeconds: 10
ports:
- containerPort: 8080
name: tcp-web
protocol: TCP
resources:
requests:
cpu: {{ .Values.NP_STORAGE_REQUESTS_CPU }}
Expand Down Expand Up @@ -79,6 +95,6 @@ spec:
type: ClusterIP
ports:
- port: 8080
targetPort: 8080
targetPort: tcp-web
selector:
service: platformstorageapi

0 comments on commit b50d1bd

Please sign in to comment.