Skip to content

Commit

Permalink
[toolbox] change from pod to statefulset
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Bueno <49003339+tlbueno@users.noreply.github.com>
  • Loading branch information
tlbueno committed Jun 26, 2024
1 parent 685f598 commit 419f329
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
4 changes: 2 additions & 2 deletions charts/toolbox/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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.
#
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion charts/toolbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 0 additions & 10 deletions charts/toolbox/templates/Pod.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions charts/toolbox/templates/StatefulSet.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 419f329

Please sign in to comment.