65 lines
1.8 KiB
YAML
65 lines
1.8 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "instana-agent.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "instana-agent.commonLabels" . | nindent 4 }}
|
|
data:
|
|
{{- if .Values.cluster.name }}
|
|
cluster_name: {{ .Values.cluster.name | quote }}
|
|
{{- end }}
|
|
configuration.yaml: |
|
|
|
|
{{- if .Values.agent.configuration_yaml }}
|
|
{{ .Values.agent.configuration_yaml | nindent 4 }}
|
|
{{- end }}
|
|
|
|
{{- if .Values.opentelemetry.enabled }}
|
|
configuration-opentelemetry.yaml: |
|
|
com.instana.plugin.opentelemetry:
|
|
enabled: true
|
|
{{- end }}
|
|
|
|
{{- if .Values.prometheus.remoteWrite.enabled }}
|
|
configuration-prometheus-remote-write.yaml: |
|
|
com.instana.plugin.prometheus:
|
|
remote_write:
|
|
enabled: true
|
|
{{- end }}
|
|
|
|
{{- if or .Values.kubernetes.deployment.enabled .Values.k8s_sensor.deployment.enabled }}
|
|
configuration-disable-kubernetes-sensor.yaml: |
|
|
com.instana.plugin.kubernetes:
|
|
enabled: false
|
|
{{- end }}
|
|
|
|
{{- if .Values.agent.additionalBackends }}
|
|
{{- $proxyHost := .Values.agent.proxyHost }}
|
|
{{- $proxyPort := .Values.agent.proxyPort }}
|
|
{{- $proxyUser := .Values.agent.proxyUser }}
|
|
{{- $proxyPassword := .Values.agent.proxyPassword }}
|
|
{{- $proxyUseDNS := .Values.agent.proxyUseDNS }}
|
|
{{- range $index,$backend := .Values.agent.additionalBackends }}
|
|
{{ $backendIndex :=add $index 2 -}}
|
|
additional-backend-{{$backendIndex}}: |
|
|
host={{ .endpointHost }}
|
|
port={{ default 443 .endpointPort }}
|
|
key={{ .key }}
|
|
protocol=HTTP/2
|
|
{{- if $proxyHost }}
|
|
proxy.type=HTTP
|
|
proxy.host={{ $proxyHost }}
|
|
proxy.port={{ $proxyPort }}
|
|
{{- if $proxyUser }}
|
|
proxy.user={{ $proxyUser }}
|
|
proxy.password={{ $proxyPassword }}
|
|
{{- end }}
|
|
{{- if $proxyUseDNS }}
|
|
proxyUseDNS=true
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|