X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=infra%2F10-Nexus%2Fhelm%2Ftemplates%2Fsave-secret-job.yaml;fp=infra%2F10-Nexus%2Fhelm%2Ftemplates%2Fsave-secret-job.yaml;h=801df24612d34ebaaaaa516c7c57a759e1128288;hb=033ab424056c2de6bdbc22479e961aeebbaddd37;hp=0000000000000000000000000000000000000000;hpb=189c974169043e89fa216df5ca638fb550e041e4;p=it%2Fdep.git diff --git a/infra/10-Nexus/helm/templates/save-secret-job.yaml b/infra/10-Nexus/helm/templates/save-secret-job.yaml new file mode 100644 index 00000000..801df246 --- /dev/null +++ b/infra/10-Nexus/helm/templates/save-secret-job.yaml @@ -0,0 +1,27 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: cert-copy +spec: + template: + spec: + containers: + - name: cert-copy + image: alpine + command: ["cp", "-rL", "/var/run/certs/..data/tls.crt", "/var/run/certs-copy/"] + # command: ["tail", "-f", "/dev/null"] + volumeMounts: + - name: certs + mountPath: /var/run/certs + readOnly: true + - name: write-to-volume + mountPath: /var/run/certs-copy + volumes: + - name: certs + secret: + secretName: {{ include "common.repositorycert" . }} + - name: write-to-volume + hostPath: + path: /tmp + restartPolicy: Never + backoffLimit: 4