cert-secret.yaml 521 B

12345678910111213141516
  1. {{- if .Values.es.ssl.enabled }}
  2. apiVersion: v1
  3. kind: Secret
  4. metadata:
  5. name: {{ template "elasticsearch-exporter.fullname" . }}-cert
  6. labels:
  7. chart: {{ template "elasticsearch-exporter.chart" . }}
  8. app: {{ template "elasticsearch-exporter.name" . }}
  9. release: "{{ .Release.Name }}"
  10. heritage: "{{ .Release.Service }}"
  11. type: Opaque
  12. data:
  13. ca.pem: {{ .Values.es.ssl.ca.pem | b64enc }}
  14. client.pem: {{ .Values.es.ssl.client.pem | b64enc }}
  15. client.key: {{ .Values.es.ssl.client.key | b64enc }}
  16. {{- end }}