Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Custom Annotations on Linkerd-Viz Prometheus Deployment #11374

Merged
merged 7 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions viz/charts/linkerd-viz/templates/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ metadata:
{{ include "partials.annotations.created-by" . }}
linkerd.io/inject: enabled
config.linkerd.io/proxy-await: "enabled"
{{- with .Values.prometheusAnnotations }}{{ toYaml . | trim | nindent 4 }}{{- end }}
labels:
linkerd.io/extension: viz
app.kubernetes.io/name: prometheus
Expand Down Expand Up @@ -218,6 +219,7 @@ spec:
{{- include "partials.proxy.config.annotations" .resources | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}{{ toYaml . | trim | nindent 8 }}{{- end }}
{{- with .Values.prometheusAnnotations }}{{ toYaml . | trim | nindent 8 }}{{- end }}
linkerd.io/inject: enabled
config.alpha.linkerd.io/proxy-wait-before-exit-seconds: "0"
labels:
Expand Down
3 changes: 3 additions & 0 deletions viz/charts/linkerd-viz/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ enablePSP: false
# -- url of external prometheus instance
prometheusUrl: ""

# -- annotations for the prometheus deployment
prometheusAnnotations: {}
cemenson marked this conversation as resolved.
Show resolved Hide resolved

# -- url of external jaeger instance
# Set this to `jaeger.linkerd-jaeger.svc.<clusterDomain>:16686` if you plan to use jaeger extension
jaegerUrl: ""
Expand Down
Loading