apiVersion: v1
kind: Secret
metadata:
  name: {{ template "apm-server.fullname" . }}
  labels:
    app.kubernetes.io/name: {{ include "apm-server.name" . }}
    helm.sh/chart: {{ include "apm-server.chart" . }}
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
type: Opaque
data:
  apm-server.yml: {{ toYaml .Values.config | indent 4 | b64enc }}
