Skip to content

Commit

Permalink
Merge pull request thijsvanloef#246 from win5923/main
Browse files Browse the repository at this point in the history
[Kubernetes] backup before a container is terminated
  • Loading branch information
thijsvanloef authored Feb 2, 2024
2 parents 64776b3 + ed12645 commit 61ddbee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/palworld/templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ spec:
- name: server
image: "{{ .Values.server.image.name }}:{{ .Values.server.image.tag }}"
imagePullPolicy: {{ .Values.server.image.imagePullPolicy }}
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c"]
args:
- |
rcon-cli save
backup
resources:
{{- with .Values.server.resources }}
{{- toYaml . | nindent 12 }}
Expand Down

0 comments on commit 61ddbee

Please sign in to comment.