From e34e9c80214d4502bacb1208b569d4dd18c251ab Mon Sep 17 00:00:00 2001 From: tuna Date: Wed, 4 Sep 2024 16:01:39 +0200 Subject: [PATCH] taint --- manifests/blog-app/blog-app.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/manifests/blog-app/blog-app.yaml b/manifests/blog-app/blog-app.yaml index d354b10..8f113e6 100644 --- a/manifests/blog-app/blog-app.yaml +++ b/manifests/blog-app/blog-app.yaml @@ -98,6 +98,10 @@ spec: secretKeyRef: name: mongodb-creds key: MONGO_INITDB_ROOT_PASSWORD + tolerations: + - key: "node.kubernetes.io/disk-pressure" + operator: "Exists" + effect: "NoSchedule" --- apiVersion: v1 kind: Service @@ -144,6 +148,10 @@ spec: secretKeyRef: name: mongodb-creds key: MONGO_INITDB_ROOT_PASSWORD + tolerations: + - key: "node.kubernetes.io/disk-pressure" + operator: "Exists" + effect: "NoSchedule" --- apiVersion: v1 kind: Service @@ -190,6 +198,10 @@ spec: secretKeyRef: name: mongodb-creds key: MONGO_INITDB_ROOT_PASSWORD + tolerations: + - key: "node.kubernetes.io/disk-pressure" + operator: "Exists" + effect: "NoSchedule" --- apiVersion: v1 kind: Service @@ -236,6 +248,10 @@ spec: secretKeyRef: name: mongodb-creds key: MONGO_INITDB_ROOT_PASSWORD + tolerations: + - key: "node.kubernetes.io/disk-pressure" + operator: "Exists" + effect: "NoSchedule" --- apiVersion: v1 kind: Service @@ -271,6 +287,10 @@ spec: imagePullPolicy: Always ports: - containerPort: 5000 + tolerations: + - key: "node.kubernetes.io/disk-pressure" + operator: "Exists" + effect: "NoSchedule" --- apiVersion: v1 kind: Service