change mounts

This commit is contained in:
2025-05-15 19:39:14 -05:00
parent f3b84fadf8
commit bc25fdf259

View File

@@ -3,20 +3,8 @@ etcd-backup:
main: main:
type: cronjob type: cronjob
pod: pod:
# securityContext: nodeSelector:
# runAsUser: 1000 node-role.kubernetes.io/control-plane: ""
# runAsGroup: 1000
# fsGroup: 1000
# runAsNonRoot: true
# seccompProfile:
# type: RuntimeDefault
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
tolerations: tolerations:
- key: node-role.kubernetes.io/control-plane - key: node-role.kubernetes.io/control-plane
operator: Exists operator: Exists
@@ -40,11 +28,16 @@ etcd-backup:
command: command:
- /talos-backup - /talos-backup
workingDir: /tmp workingDir: /tmp
# securityContext: securityContext:
# allowPrivilegeEscalation: false runAsUser: 1000
# capabilities: runAsGroup: 1000
# drop: allowPrivilegeEscalation: false
# - ALL runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
env: env:
- name: AWS_ACCESS_KEY_ID - name: AWS_ACCESS_KEY_ID
valueFrom: valueFrom:
@@ -86,6 +79,14 @@ etcd-backup:
main: main:
- path: /tmp - path: /tmp
readOnly: false readOnly: false
talos:
type: emptyDir
medium: Memory
advancedMounts:
main:
main:
- path: /.talos
readOnly: false
secret: secret:
enabled: true enabled: true
type: secret type: secret