summaryrefslogtreecommitdiffstats
path: root/examples/certificate-check-volume.yaml
diff options
context:
space:
mode:
authorPep TurrĂ³ Mauri <pep@redhat.com>2017-04-26 11:13:47 +0200
committerPep TurrĂ³ Mauri <pep@redhat.com>2017-04-26 11:22:56 +0200
commit24ca8f90e0737e7dc2cbb1102928ccf096f628dd (patch)
tree06a41cdd64a6ce5cb05e3c4506ac036085ef76c9 /examples/certificate-check-volume.yaml
parent5f49e91b5419e7491a4df1d0b0f217bfb0ff97b9 (diff)
downloadopenshift-24ca8f90e0737e7dc2cbb1102928ccf096f628dd.tar.gz
openshift-24ca8f90e0737e7dc2cbb1102928ccf096f628dd.tar.bz2
openshift-24ca8f90e0737e7dc2cbb1102928ccf096f628dd.tar.xz
openshift-24ca8f90e0737e7dc2cbb1102928ccf096f628dd.zip
Fix certificate check Job examples
The example Job specifications were wrong (they had a Pod spec instead). Also fixing a tabs-vs-spaces problem in examples/README.md.
Diffstat (limited to 'examples/certificate-check-volume.yaml')
-rw-r--r--examples/certificate-check-volume.yaml66
1 files changed, 36 insertions, 30 deletions
diff --git a/examples/certificate-check-volume.yaml b/examples/certificate-check-volume.yaml
index c19dc1f88..f6613bcd8 100644
--- a/examples/certificate-check-volume.yaml
+++ b/examples/certificate-check-volume.yaml
@@ -22,33 +22,39 @@ kind: Job
metadata:
name: certificate-check
spec:
- containers:
- - name: openshift-ansible
- image: openshift/openshift-ansible
- env:
- - name: PLAYBOOK_FILE
- value: playbooks/certificate_expiry/html_and_json_timestamp.yaml
- - name: INVENTORY_FILE
- value: /tmp/inventory/hosts # from configmap vol below
- - name: ANSIBLE_PRIVATE_KEY_FILE # from secret vol below
- value: /opt/app-root/src/.ssh/id_rsa/ssh-privatekey
- - name: CERT_EXPIRY_WARN_DAYS
- value: "45" # must be a string, don't forget the quotes
- volumeMounts:
- - name: sshkey
- mountPath: /opt/app-root/src/.ssh/id_rsa
- - name: inventory
- mountPath: /tmp/inventory
- - name: reports
- mountPath: /var/lib/certcheck
- volumes:
- - name: sshkey
- secret:
- secretName: sshkey
- - name: inventory
- configMap:
- name: inventory
- - name: reports
- persistentVolumeClaim:
- claimName: certcheck-reports
- restartPolicy: Never
+ parallelism: 1
+ completions: 1
+ template:
+ metadata:
+ name: certificate-check
+ spec:
+ containers:
+ - name: openshift-ansible
+ image: openshift/openshift-ansible
+ env:
+ - name: PLAYBOOK_FILE
+ value: playbooks/certificate_expiry/html_and_json_timestamp.yaml
+ - name: INVENTORY_FILE
+ value: /tmp/inventory/hosts # from configmap vol below
+ - name: ANSIBLE_PRIVATE_KEY_FILE # from secret vol below
+ value: /opt/app-root/src/.ssh/id_rsa/ssh-privatekey
+ - name: CERT_EXPIRY_WARN_DAYS
+ value: "45" # must be a string, don't forget the quotes
+ volumeMounts:
+ - name: sshkey
+ mountPath: /opt/app-root/src/.ssh/id_rsa
+ - name: inventory
+ mountPath: /tmp/inventory
+ - name: reports
+ mountPath: /var/lib/certcheck
+ volumes:
+ - name: sshkey
+ secret:
+ secretName: sshkey
+ - name: inventory
+ configMap:
+ name: inventory
+ - name: reports
+ persistentVolumeClaim:
+ claimName: certcheck-reports
+ restartPolicy: Never