diff --git a/04-k8s-apps/index.ts b/04-k8s-apps/index.ts index 5bd8b8c..1440aac 100644 --- a/04-k8s-apps/index.ts +++ b/04-k8s-apps/index.ts @@ -47,6 +47,7 @@ new k8s.apps.v1.Deployment( }, spec: { replicas: 1, + strategy: { type: "Recreate" }, selector: { matchLabels: labels }, template: { metadata: { labels }, @@ -70,6 +71,20 @@ new k8s.apps.v1.Deployment( }, ], terminationGracePeriodSeconds: 5, + tolerations: [ + { + key: "node.kubernetes.io/unreachable", + operator: "Exists", + effect: "NoExecute", + tolerationSeconds: 30, + }, + { + key: "node.kubernetes.io/not-ready", + operator: "Exists", + effect: "NoExecute", + tolerationSeconds: 30, + }, + ], }, }, },