From f74c85a1d6213239e37b4a776aeec44235620dde Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Wed, 2 Aug 2017 05:56:59 +0200 Subject: [PATCH 1/2] Changes update strategy from OnDelete to automatic To see this in action, with no other changes: kubectl -n kafka patch statefulset kafka --type='json' -p='[{"op": "replace", "path": "/spec/updateStrategy/type", "value": "RollingUpdate"}]' --- kafka/50kafka.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kafka/50kafka.yml b/kafka/50kafka.yml index 8f1bf5f6..034e62ad 100644 --- a/kafka/50kafka.yml +++ b/kafka/50kafka.yml @@ -11,7 +11,7 @@ spec: serviceName: "broker" replicas: 3 updateStrategy: - type: OnDelete + type: RollingUpdate template: metadata: labels: From 0bce54f964aa455d45d04ba44348a817efceb392 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Mon, 7 Aug 2017 07:58:02 +0200 Subject: [PATCH 2/2] Rolling Update for zookeeper too --- zookeeper/50pzoo.yml | 2 +- zookeeper/51zoo.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zookeeper/50pzoo.yml b/zookeeper/50pzoo.yml index a57dd1f7..92b78ae9 100644 --- a/zookeeper/50pzoo.yml +++ b/zookeeper/50pzoo.yml @@ -12,7 +12,7 @@ spec: serviceName: "pzoo" replicas: 3 updateStrategy: - type: OnDelete + type: RollingUpdate template: metadata: labels: diff --git a/zookeeper/51zoo.yml b/zookeeper/51zoo.yml index fdafdef2..59dceb87 100644 --- a/zookeeper/51zoo.yml +++ b/zookeeper/51zoo.yml @@ -11,7 +11,7 @@ spec: serviceName: "zoo" replicas: 2 updateStrategy: - type: OnDelete + type: RollingUpdate template: metadata: labels: