From 96e43626d6b6fb713ea3d96129293a209e384a35 Mon Sep 17 00:00:00 2001 From: Svetomir Smiljkovic Date: Fri, 2 Oct 2020 16:50:43 +0200 Subject: [PATCH] Add option to configure podManagementPolicy (#49) --- charts/bee/Chart.yaml | 2 +- charts/bee/templates/statefulset.yaml | 1 + charts/bee/values.yaml | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/bee/Chart.yaml b/charts/bee/Chart.yaml index b13b7b5..2518a2e 100644 --- a/charts/bee/Chart.yaml +++ b/charts/bee/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 appVersion: latest name: bee -version: 0.5.14 +version: 0.5.15 description: Ethereum Swarm Bee Helm chart for Kubernetes home: https://swarm.ethereum.org icon: https://swarm-guide.readthedocs.io/en/latest/_images/swarm.png diff --git a/charts/bee/templates/statefulset.yaml b/charts/bee/templates/statefulset.yaml index 6186a8d..4318f61 100644 --- a/charts/bee/templates/statefulset.yaml +++ b/charts/bee/templates/statefulset.yaml @@ -8,6 +8,7 @@ metadata: {{- include "bee.labels" . | nindent 4 }} spec: serviceName: {{ include "bee.fullname" . }}-headless + podManagementPolicy: {{ .Values.podManagementPolicy }} replicas: {{ .Values.replicaCount }} updateStrategy: {{- toYaml .Values.updateStrategy | nindent 4 }} diff --git a/charts/bee/values.yaml b/charts/bee/values.yaml index c4422ae..563a138 100644 --- a/charts/bee/values.yaml +++ b/charts/bee/values.yaml @@ -19,6 +19,11 @@ serviceAccount: ## if not set and create is true, a name is generated using the fullname template name: +## StatefulSet's ordering guarantees: OrderedReady or Parallel +## OrderedReady - launches or terminates all pods in ordered way +## Parallel - launches or terminates all pods in parallel +podManagementPolicy: OrderedReady + ## Bee process inside container is run with gid/uid 999 ## fsGroup=999 enables mounting external volumes with appropriate permissions podSecurityContext: