migrate v1
parent
1329b0470c
commit
9902cbc510
|
|
@ -15,19 +15,6 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: migrate
|
- name: migrate
|
||||||
image: {{ .Values.migrate.repo }}:{{ .Values.migrate.tag }}
|
image: {{ .Values.migrate.repo }}:{{ .Values.migrate.tag }}
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /data
|
|
||||||
name: data
|
|
||||||
subPath: etcd
|
|
||||||
command:
|
command:
|
||||||
- etcdctl
|
- migrate
|
||||||
- --endpoints=http://etcd:2379
|
|
||||||
- snap
|
|
||||||
- save
|
|
||||||
- /data/snap-{{ now | unixEpoch }}
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: etcd-backups
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@ 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: false
|
backup: true
|
||||||
tag: v3.5.8
|
tag: v3.5.8
|
||||||
storage:
|
storage:
|
||||||
class: local
|
class: local
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue