split into different controllers
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
etcd-backup:
|
etcd-backup:
|
||||||
controllers:
|
controllers:
|
||||||
main:
|
local:
|
||||||
type: cronjob
|
type: cronjob
|
||||||
pod:
|
pod:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
@@ -20,7 +20,7 @@ etcd-backup:
|
|||||||
backoffLimit: 3
|
backoffLimit: 3
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
containers:
|
containers:
|
||||||
local:
|
backup:
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/siderolabs/talos-backup
|
repository: ghcr.io/siderolabs/talos-backup
|
||||||
tag: v0.1.0-beta.3@sha256:05c86663b251a407551dc948097e32e163a345818117eb52c573b0447bd0c7a7
|
tag: v0.1.0-beta.3@sha256:05c86663b251a407551dc948097e32e163a345818117eb52c573b0447bd0c7a7
|
||||||
@@ -66,7 +66,47 @@ etcd-backup:
|
|||||||
key: AGE_X25519_PUBLIC_KEY
|
key: AGE_X25519_PUBLIC_KEY
|
||||||
- name: USE_PATH_STYLE
|
- name: USE_PATH_STYLE
|
||||||
value: "true"
|
value: "true"
|
||||||
remote:
|
s3-prune:
|
||||||
|
image:
|
||||||
|
repository: d3fk/s3cmd
|
||||||
|
tag: latest@sha256:ed348a0fae5723d2e62636c175baf4dfaf732a790179ca675d1f24f863d0d68f
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
args:
|
||||||
|
- -ec
|
||||||
|
- /scripts/prune.sh
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: talos-etcd-backup-local-secret
|
||||||
|
- secretRef:
|
||||||
|
name: talos-backup-ntfy-secret
|
||||||
|
env:
|
||||||
|
- name: TARGET
|
||||||
|
value: Local
|
||||||
|
- name: DATE_RANGE_SECONDS
|
||||||
|
value: 2419200
|
||||||
|
remote:
|
||||||
|
type: cronjob
|
||||||
|
pod:
|
||||||
|
nodeSelector:
|
||||||
|
node-role.kubernetes.io/control-plane: ""
|
||||||
|
tolerations:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
|
effect: NoSchedule
|
||||||
|
cronjob:
|
||||||
|
suspend: false
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
|
timeZone: US/Central
|
||||||
|
schedule: "0 3 * * *"
|
||||||
|
startingDeadlineSeconds: 90
|
||||||
|
successfulJobsHistory: 1
|
||||||
|
failedJobsHistory: 1
|
||||||
|
backoffLimit: 3
|
||||||
|
parallelism: 1
|
||||||
|
containers:
|
||||||
|
backup:
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/siderolabs/talos-backup
|
repository: ghcr.io/siderolabs/talos-backup
|
||||||
tag: v0.1.0-beta.3@sha256:05c86663b251a407551dc948097e32e163a345818117eb52c573b0447bd0c7a7
|
tag: v0.1.0-beta.3@sha256:05c86663b251a407551dc948097e32e163a345818117eb52c573b0447bd0c7a7
|
||||||
@@ -112,7 +152,47 @@ etcd-backup:
|
|||||||
key: AGE_X25519_PUBLIC_KEY
|
key: AGE_X25519_PUBLIC_KEY
|
||||||
- name: USE_PATH_STYLE
|
- name: USE_PATH_STYLE
|
||||||
value: "true"
|
value: "true"
|
||||||
external:
|
s3-prune:
|
||||||
|
image:
|
||||||
|
repository: d3fk/s3cmd
|
||||||
|
tag: latest@sha256:ed348a0fae5723d2e62636c175baf4dfaf732a790179ca675d1f24f863d0d68f
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
args:
|
||||||
|
- -ec
|
||||||
|
- /scripts/prune.sh
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: talos-etcd-backup-remote-secret
|
||||||
|
- secretRef:
|
||||||
|
name: talos-backup-ntfy-secret
|
||||||
|
env:
|
||||||
|
- name: TARGET
|
||||||
|
value: Remote
|
||||||
|
- name: DATE_RANGE_SECONDS
|
||||||
|
value: 2419200
|
||||||
|
external:
|
||||||
|
type: cronjob
|
||||||
|
pod:
|
||||||
|
nodeSelector:
|
||||||
|
node-role.kubernetes.io/control-plane: ""
|
||||||
|
tolerations:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
operator: Exists
|
||||||
|
effect: NoSchedule
|
||||||
|
cronjob:
|
||||||
|
suspend: false
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
|
timeZone: US/Central
|
||||||
|
schedule: "0 4 * * *"
|
||||||
|
startingDeadlineSeconds: 90
|
||||||
|
successfulJobsHistory: 1
|
||||||
|
failedJobsHistory: 1
|
||||||
|
backoffLimit: 3
|
||||||
|
parallelism: 1
|
||||||
|
containers:
|
||||||
|
backup:
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/siderolabs/talos-backup
|
repository: ghcr.io/siderolabs/talos-backup
|
||||||
tag: v0.1.0-beta.3-5-g07d09ec@sha256:96054af026b6255ec14d198f2f10ad6c813b335a2e21a76804365c053dd4ba7b
|
tag: v0.1.0-beta.3-5-g07d09ec@sha256:96054af026b6255ec14d198f2f10ad6c813b335a2e21a76804365c053dd4ba7b
|
||||||
@@ -158,47 +238,7 @@ etcd-backup:
|
|||||||
key: AGE_X25519_PUBLIC_KEY
|
key: AGE_X25519_PUBLIC_KEY
|
||||||
- name: USE_PATH_STYLE
|
- name: USE_PATH_STYLE
|
||||||
value: "false"
|
value: "false"
|
||||||
s3-prune-local:
|
s3-prune:
|
||||||
image:
|
|
||||||
repository: d3fk/s3cmd
|
|
||||||
tag: latest@sha256:ed348a0fae5723d2e62636c175baf4dfaf732a790179ca675d1f24f863d0d68f
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
command:
|
|
||||||
- /bin/sh
|
|
||||||
args:
|
|
||||||
- -ec
|
|
||||||
- /scripts/prune.sh
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: talos-etcd-backup-local-secret
|
|
||||||
- secretRef:
|
|
||||||
name: talos-backup-ntfy-secret
|
|
||||||
env:
|
|
||||||
- name: TARGET
|
|
||||||
value: Local
|
|
||||||
- name: DATE_RANGE_SECONDS
|
|
||||||
value: 2419200
|
|
||||||
s3-prune-remote:
|
|
||||||
image:
|
|
||||||
repository: d3fk/s3cmd
|
|
||||||
tag: latest@sha256:ed348a0fae5723d2e62636c175baf4dfaf732a790179ca675d1f24f863d0d68f
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
command:
|
|
||||||
- /bin/sh
|
|
||||||
args:
|
|
||||||
- -ec
|
|
||||||
- /scripts/prune.sh
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: talos-etcd-backup-remote-secret
|
|
||||||
- secretRef:
|
|
||||||
name: talos-backup-ntfy-secret
|
|
||||||
env:
|
|
||||||
- name: TARGET
|
|
||||||
value: Remote
|
|
||||||
- name: DATE_RANGE_SECONDS
|
|
||||||
value: 2419200
|
|
||||||
s3-prune-external:
|
|
||||||
image:
|
image:
|
||||||
repository: d3fk/s3cmd
|
repository: d3fk/s3cmd
|
||||||
tag: latest@sha256:ed348a0fae5723d2e62636c175baf4dfaf732a790179ca675d1f24f863d0d68f
|
tag: latest@sha256:ed348a0fae5723d2e62636c175baf4dfaf732a790179ca675d1f24f863d0d68f
|
||||||
@@ -224,16 +264,18 @@ etcd-backup:
|
|||||||
type: secret
|
type: secret
|
||||||
name: talos-backup-secrets
|
name: talos-backup-secrets
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
local:
|
||||||
local:
|
backup:
|
||||||
- path: /var/run/secrets/talos.dev
|
- path: /var/run/secrets/talos.dev
|
||||||
readOnly: true
|
readOnly: true
|
||||||
mountPropagation: None
|
mountPropagation: None
|
||||||
remote:
|
remote:
|
||||||
|
backup:
|
||||||
- path: /var/run/secrets/talos.dev
|
- path: /var/run/secrets/talos.dev
|
||||||
readOnly: true
|
readOnly: true
|
||||||
mountPropagation: None
|
mountPropagation: None
|
||||||
external:
|
external:
|
||||||
|
backup:
|
||||||
- path: /var/run/secrets/talos.dev
|
- path: /var/run/secrets/talos.dev
|
||||||
readOnly: true
|
readOnly: true
|
||||||
mountPropagation: None
|
mountPropagation: None
|
||||||
@@ -243,14 +285,16 @@ etcd-backup:
|
|||||||
name: talos-prune-script
|
name: talos-prune-script
|
||||||
defaultMode: 0755
|
defaultMode: 0755
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
local:
|
||||||
s3-prune-local:
|
s3-prune:
|
||||||
- path: /scripts/prune.sh
|
- path: /scripts/prune.sh
|
||||||
subPath: prune.sh
|
subPath: prune.sh
|
||||||
s3-prune-remote:
|
remote:
|
||||||
|
s3-prune:
|
||||||
- path: /scripts/prune.sh
|
- path: /scripts/prune.sh
|
||||||
subPath: prune.sh
|
subPath: prune.sh
|
||||||
s3-prune-external:
|
external:
|
||||||
|
s3-prune:
|
||||||
- path: /scripts/prune.sh
|
- path: /scripts/prune.sh
|
||||||
subPath: prune.sh
|
subPath: prune.sh
|
||||||
s3cmd-config-local:
|
s3cmd-config-local:
|
||||||
@@ -258,7 +302,7 @@ etcd-backup:
|
|||||||
type: secret
|
type: secret
|
||||||
name: talos-etcd-backup-local-secret
|
name: talos-etcd-backup-local-secret
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
local:
|
||||||
s3-prune:
|
s3-prune:
|
||||||
- path: /root/.s3cfg
|
- path: /root/.s3cfg
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -269,7 +313,7 @@ etcd-backup:
|
|||||||
type: secret
|
type: secret
|
||||||
name: talos-etcd-backup-remote-secret
|
name: talos-etcd-backup-remote-secret
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
remote:
|
||||||
s3-prune:
|
s3-prune:
|
||||||
- path: /root/.s3cfg
|
- path: /root/.s3cfg
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -280,7 +324,7 @@ etcd-backup:
|
|||||||
type: secret
|
type: secret
|
||||||
name: talos-etcd-backup-external-secret
|
name: talos-etcd-backup-external-secret
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
external:
|
||||||
s3-prune:
|
s3-prune:
|
||||||
- path: /root/.s3cfg
|
- path: /root/.s3cfg
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -290,48 +334,48 @@ etcd-backup:
|
|||||||
type: emptyDir
|
type: emptyDir
|
||||||
medium: Memory
|
medium: Memory
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
local:
|
||||||
local:
|
backup:
|
||||||
- path: /tmp
|
- path: /tmp
|
||||||
readOnly: false
|
readOnly: false
|
||||||
tmp-remote:
|
tmp-remote:
|
||||||
type: emptyDir
|
type: emptyDir
|
||||||
medium: Memory
|
medium: Memory
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
remote:
|
||||||
remote:
|
backup:
|
||||||
- path: /tmp
|
- path: /tmp
|
||||||
readOnly: false
|
readOnly: false
|
||||||
tmp-external:
|
tmp-external:
|
||||||
type: emptyDir
|
type: emptyDir
|
||||||
medium: Memory
|
medium: Memory
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
external:
|
||||||
external:
|
backup:
|
||||||
- path: /tmp
|
- path: /tmp
|
||||||
readOnly: false
|
readOnly: false
|
||||||
talos-local:
|
talos-local:
|
||||||
type: emptyDir
|
type: emptyDir
|
||||||
medium: Memory
|
medium: Memory
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
local:
|
||||||
local:
|
backup:
|
||||||
- path: /.talos
|
- path: /.talos
|
||||||
readOnly: false
|
readOnly: false
|
||||||
talos-remote:
|
talos-remote:
|
||||||
type: emptyDir
|
type: emptyDir
|
||||||
medium: Memory
|
medium: Memory
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
remote:
|
||||||
remote:
|
backup:
|
||||||
- path: /.talos
|
- path: /.talos
|
||||||
readOnly: false
|
readOnly: false
|
||||||
talos-external:
|
talos-external:
|
||||||
type: emptyDir
|
type: emptyDir
|
||||||
medium: Memory
|
medium: Memory
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main:
|
external:
|
||||||
external:
|
backup:
|
||||||
- path: /.talos
|
- path: /.talos
|
||||||
readOnly: false
|
readOnly: false
|
||||||
etcd-defrag:
|
etcd-defrag:
|
||||||
|
|||||||
Reference in New Issue
Block a user