hawkular_metrics_schema_job.j2 1013 B

1234567891011121314151617181920212223242526272829303132333435
  1. apiVersion: batch/v1
  2. kind: Job
  3. metadata:
  4. name: hawkular-metrics-schema
  5. labels:
  6. metrics-infra: hawkular-metrics
  7. name: hawkular-metrics-schema
  8. spec:
  9. template:
  10. spec:
  11. version: v1
  12. metadata:
  13. labels:
  14. metrics-infra: hawkular-metrics
  15. #name: hawkular-metrics
  16. containers:
  17. - name: hawkular-metrics-schema
  18. image: {{ openshift_metrics_schema_installer_image }}
  19. imagePullPolicy: IfNotPresent
  20. env:
  21. - name: TRUSTSTORE_AUTHORITIES
  22. value: "/hawkular-metrics-certs/tls.truststore.crt"
  23. volumeMounts:
  24. - mountPath: /hawkular-metrics-certs
  25. name: hawkular-metrics-certs
  26. - mountPath: /hawkular-account
  27. name: hawkular-metrics-account
  28. volumes:
  29. - name: hawkular-metrics-certs
  30. secret:
  31. secretName: hawkular-metrics-certs
  32. - name: hawkular-metrics-account
  33. secret:
  34. secretName: hawkular-metrics-account
  35. restartPolicy: OnFailure