Skip to content

Commit

Permalink
hashicorp#10 consul-server readinessProbe settings moved to values file
Browse files Browse the repository at this point in the history
  • Loading branch information
mmisztal1980 committed Oct 22, 2018
1 parent 08b1564 commit 5f354fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
10 changes: 5 additions & 5 deletions templates/server-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ spec:
- |
curl http://127.0.0.1:8500/v1/status/leader 2>/dev/null | \
grep -E '".+"'
failureThreshold: 2
initialDelaySeconds: 5
periodSeconds: 3
successThreshold: 1
timeoutSeconds: 5
failureThreshold: {{ .Values.server.readinessProbe.failureTreshold }}
initialDelaySeconds: {{ .Values.server.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.server.readinessProbe.periodSeconds }}
successThreshold: {{ .Values.server.readinessProbe.successTreshold }}
timeoutSeconds: {{ .Values.server.readinessProbe.timeoutSeconds }}
volumeClaimTemplates:
- metadata:
name: data
Expand Down
8 changes: 7 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ server:
# - type: secret (or "configMap")
# name: my-secret
# load: false # if true, will add to `-config-dir` to load by Consul


readinessProbe:
failureThreshold: 2
initialDelaySeconds: 5
periodSeconds: 3
successThreshold: 1
timeoutSeconds: 5
# Client, when enabled, configures Consul clients to run on every node
# within the Kube cluster. The current deployment model follows a traditional
# DC where a single agent is deployed per node.
Expand Down

0 comments on commit 5f354fc

Please sign in to comment.