Mikaël Cluseau 2023-10-04 21:38:09 +02:00
parent 774b9610a2
commit d235ae157e
2 changed files with 38 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{{ if .Values.etcd.backup }}
# ------------------------------------------------------------------------
---
apiVersion: batch/v1
kind: Job
@ -18,7 +18,6 @@ spec:
volumeMounts:
- mountPath: /data
name: data
subPath: etcd
command:
- etcdctl
- --endpoints=http://etcd:2379
@ -31,4 +30,34 @@ spec:
persistentVolumeClaim:
claimName: etcd-backups
# ------------------------------------------------------------------------
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: etcd-backups-view
spec:
replicas: 1
selector:
matchLabels:
app: etcd-backups-view
template:
metadata:
labels:
app: etcd-backups-view
spec:
restartPolicy: Never
containers:
- name: etcd-backups-view
image: alpine:3.18
stdin: true
volumeMounts:
- mountPath: /data
name: data
subPath: etcd
volumes:
- name: data
persistentVolumeClaim:
claimName: etcd-backups
{{ end }}

View File

@ -9,11 +9,15 @@ app:
migrate:
repo: gitea.demos.novit.tech/demo/migrate
#tag: v1
tag: v2
#tag: v2
etcd:
backup: true
tag: v3.5.9
backup: false
#backup: true
tag: v3.5.8
#tag: v3.5.9
storage:
class: local
request: 1Gi