step-0
parent
774b9610a2
commit
5ed9786d57
|
|
@ -29,6 +29,5 @@ spec:
|
||||||
- name: app
|
- name: app
|
||||||
command: [ "app" ]
|
command: [ "app" ]
|
||||||
image: "{{ .Values.app.repo }}:{{ .Values.app.tag }}"
|
image: "{{ .Values.app.repo }}:{{ .Values.app.tag }}"
|
||||||
imagePullPolicy: Always # while debugging
|
imagePullPolicy: IfNotPresent
|
||||||
#imagePullPolicy: IfNotPresent
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 }}
|
||||||
|
|
|
||||||
10
values.yaml
10
values.yaml
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue