Improve k8s Deployment and Daemonset wait conditions

Ensure that Deployments and Daemonsets properly await
all replicas to be available. Correctly handles the
subtle edge case when a service account no longer exists.

Note that this will dramatically slow Daemonset updates
This commit is contained in:
Will Thames
2020-05-05 09:36:46 +10:00
parent 5f3d2fc6f1
commit 35ffd0e431
6 changed files with 182 additions and 17 deletions

View File

@@ -4,6 +4,7 @@ k8s_pod_metadata:
app: "{{ k8s_pod_name }}"
k8s_pod_spec:
serviceAccount: "{{ k8s_pod_service_account }}"
containers:
- image: "{{ k8s_pod_image }}"
imagePullPolicy: Always
@@ -20,6 +21,8 @@ k8s_pod_spec:
memory: "100Mi"
ports: "{{ k8s_pod_ports }}"
k8s_pod_service_account: default
k8s_pod_command: []
k8s_pod_ports: []