[fix] Extend liveness and readiness check times

Under load, Deckhand will fail liveness checks with a 1 second timeout.
This Patchset extends the timout to 10 seconds and spaces the period
between checks to 20 seconds.
Adds labels to keystone user job.

Change-Id: Id2d4deaaf8bf73d6df4639810e6dee3acf79b05c
This commit is contained in:
Bryan Strassner 2018-04-04 14:12:35 -05:00
parent 74528a518d
commit c962eeb975
3 changed files with 8 additions and 3 deletions

View File

@ -67,14 +67,16 @@ spec:
path: /api/v1.0/health
port: {{ tuple "deckhand" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 15
periodSeconds: 10
periodSeconds: 20
timeoutSeconds: 10
readinessProbe:
httpGet:
scheme: HTTP
path: /api/v1.0/health
port: {{ tuple "deckhand" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
initialDelaySeconds: 15
periodSeconds: 10
periodSeconds: 20
timeoutSeconds: 10
volumeMounts:
- name: etc-deckhand
mountPath: /etc/deckhand

View File

@ -26,7 +26,7 @@ spec:
template:
metadata:
labels:
{{ tuple $envAll "deckhand" "ks-user" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
{{ tuple $envAll "deckhand" "ks-service" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
spec:
serviceAccountName: {{ $serviceAccountName }}
restartPolicy: OnFailure

View File

@ -25,6 +25,9 @@ metadata:
name: deckhand-ks-user
spec:
template:
metadata:
labels:
{{ tuple $envAll "deckhand" "ks-user" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
spec:
serviceAccountName: {{ $serviceAccountName }}
restartPolicy: OnFailure