26 lines
471 B
YAML
26 lines
471 B
YAML
|
apiVersion: v1
|
||
|
kind: Pod
|
||
|
metadata:
|
||
|
name: alpine-ssh-secret
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: alpine
|
||
|
image: alpine:3.15
|
||
|
args:
|
||
|
- sleep
|
||
|
- "1000000"
|
||
|
volumeMounts:
|
||
|
- mountPath: "/root/.ssh/"
|
||
|
name: ssh-key
|
||
|
|
||
|
volumes:
|
||
|
- name: ssh-key
|
||
|
secret:
|
||
|
secretName: backup1-sshkey
|
||
|
defaultMode: 0400
|
||
|
items:
|
||
|
- key: ssh-publickey
|
||
|
path: id_rsa.pub
|
||
|
- key: ssh-privatekey
|
||
|
path: id_rsa
|