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 }} {{ if .Values.etcd.backup }}
# ------------------------------------------------------------------------
--- ---
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job
@ -18,7 +18,6 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /data - mountPath: /data
name: data name: data
subPath: etcd
command: command:
- etcdctl - etcdctl
- --endpoints=http://etcd:2379 - --endpoints=http://etcd:2379
@ -31,4 +30,34 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: etcd-backups 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 }} {{ end }}

View File

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