jks_pod.j2 679 B

12345678910111213141516171819202122232425262728
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. labels:
  5. logging-infra: support
  6. generateName: jks-cert-gen-
  7. spec:
  8. containers:
  9. - name: jks-cert-gen
  10. image: {{ openshift_logging_image }}
  11. imagePullPolicy: IfNotPresent
  12. command: ["sh", "{{generated_certs_dir}}/generate-jks.sh"]
  13. securityContext:
  14. privileged: true
  15. volumeMounts:
  16. - mountPath: {{generated_certs_dir}}
  17. name: certmount
  18. env:
  19. - name: PROJECT
  20. value: {{openshift_logging_namespace}}
  21. - name: CERT_DIR
  22. value: {{generated_certs_dir}}
  23. restartPolicy: Never
  24. serviceAccount: jks-generator
  25. volumes:
  26. - hostPath:
  27. path: "{{generated_certs_dir}}"
  28. name: certmount