apiVersion: v1
kind: Secret
metadata:
  name: {{ template "apm-server.fullname" . }}
  labels:
    app: {{ template "apm-server.name" . }}
    chart: {{ template "apm-server.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
type: Opaque
data:
  apm-server.yml: {{ toYaml .Values.config | indent 4 | b64enc }}
