ungleich-k8s/generic/alpine-sleep-secret-individual.yaml
2022-07-28 16:30:36 +02:00

24 lines
484 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: alpine-ssh-secret-individual
spec:
containers:
- name: alpine
image: alpine:3.15
args:
- sleep
- "1000000"
volumeMounts:
- mountPath: "/root/.ssh/id_rsa.pub"
name: ssh-key
subPath: ssh-publickey
- mountPath: "/root/.ssh/id_rsa"
name: ssh-key
subPath: ssh-privatekey
volumes:
- name: ssh-key
secret:
secretName: backup1-sshkey
defaultMode: 0400