blob: 801df24612d34ebaaaaa516c7c57a759e1128288 [file] [log] [blame]
Zhe Huang033ab422019-05-20 15:45:42 -04001apiVersion: batch/v1
2kind: Job
3metadata:
4 name: cert-copy
5spec:
6 template:
7 spec:
8 containers:
9 - name: cert-copy
10 image: alpine
11 command: ["cp", "-rL", "/var/run/certs/..data/tls.crt", "/var/run/certs-copy/"]
12 # command: ["tail", "-f", "/dev/null"]
13 volumeMounts:
14 - name: certs
15 mountPath: /var/run/certs
16 readOnly: true
17 - name: write-to-volume
18 mountPath: /var/run/certs-copy
19 volumes:
20 - name: certs
21 secret:
22 secretName: {{ include "common.repositorycert" . }}
23 - name: write-to-volume
24 hostPath:
25 path: /tmp
26 restartPolicy: Never
27 backoffLimit: 4