Skip to content

Commit

Permalink
Merge pull request #141 from Mercwri/k8s-deployment-modification
Browse files Browse the repository at this point in the history
modify deployment and chart for opionated deployment
  • Loading branch information
thijsvanloef authored Jan 28, 2024
2 parents 3802a87 + 18e558f commit c676c1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chart/templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ spec:
selector:
matchLabels:
app.kubernetes.io/component: "{{ .Release.Name }}-server"
strategy:
type: "{{ .Values.server.strategy }}"
template:
metadata:
annotations:
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ server:
- name: rcon
containerPort: 25575
protocol: UDP
# -- (string) Change the deployment strategy
strategy: Recreate

# -- (dict) Change the service configuration.
# If you change those, make sure to change the server.config and server.ports accordingly.
Expand Down
2 changes: 2 additions & 0 deletions k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
name: palworld-server
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: palworld-server
Expand Down

0 comments on commit c676c1c

Please sign in to comment.