diff --git a/charts/toolbox/Chart.yaml b/charts/toolbox/Chart.yaml index 8430f3e..f2ab4a5 100644 --- a/charts/toolbox/Chart.yaml +++ b/charts/toolbox/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: toolbox -description: A Helm chart to deploy a pod with a toolbox image +description: A Helm chart to deploy a stateful set with a toolbox image # A chart can be either an 'application' or a 'library' chart. # @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.4 +version: 0.2.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/toolbox/README.md b/charts/toolbox/README.md index 5b1bf2a..f47fa5e 100644 --- a/charts/toolbox/README.md +++ b/charts/toolbox/README.md @@ -4,7 +4,7 @@ An helm chart to create a toolbox pod. The chart will: - create a namespace -- deploy a pod with the specified image +- deploy a statefulset with 1 replica with the specified image ### How to use diff --git a/charts/toolbox/templates/Pod.yaml b/charts/toolbox/templates/Pod.yaml deleted file mode 100644 index f2879b4..0000000 --- a/charts/toolbox/templates/Pod.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: toolbox - namespace: {{ .Release.Namespace }} -spec: - containers: - - name: toolbox-container - image: {{ .Values.container.image }} - diff --git a/charts/toolbox/templates/StatefulSet.yaml b/charts/toolbox/templates/StatefulSet.yaml new file mode 100644 index 0000000..24d77bb --- /dev/null +++ b/charts/toolbox/templates/StatefulSet.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: toolbox + namespace: {{ .Release.Namespace }} +spec: + serviceName: toolbox + replicas: 1 + selector: + matchLabels: + app: toolbox + template: + metadata: + labels: + app: toolbox + spec: + containers: + - name: toolbox-container + image: {{ .Values.container.image }} +