Skip to content

Commit

Permalink
Added readiness and liveness values in helm (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
sveba committed May 3, 2021
1 parent 9f60410 commit dfb0cf5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
10 changes: 10 additions & 0 deletions deploy/helm-chart/kubernetes-replicator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,20 @@ spec:
httpGet:
path: /healthz
port: health
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
readinessProbe:
httpGet:
path: /healthz
port: health
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
16 changes: 15 additions & 1 deletion deploy/helm-chart/kubernetes-replicator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ serviceAccount:
annotations: {}
name:
privileges:
- apiGroups: [ "", "apps", "extensions" ]
- apiGroups: [ "", "apps", "extensions" ]
resources: ["secrets", "configmaps", "roles", "rolebindings",
"cronjobs", "deployments", "events", "ingresses", "jobs", "pods", "pods/attach", "pods/exec", "pods/log", "pods/portforward", "services"]
- apiGroups: [ "batch" ]
Expand Down Expand Up @@ -48,3 +48,17 @@ affinity: {}
podLabels: {}

podAnnotations: {}

livenessProbe:
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
successThreshold: 1

readinessProbe:
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
successThreshold: 1

0 comments on commit dfb0cf5

Please sign in to comment.