Skip to content

Commit

Permalink
Add Helm keys to configure annotations for mesh deployment and pods
Browse files Browse the repository at this point in the history
  • Loading branch information
dtomcej committed May 30, 2020
1 parent 04575e2 commit f737a92
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions helm/chart/maesh/templates/mesh/mesh-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ metadata:
chart: {{ include "maesh.chartLabel" . | quote }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
{{- with .Values.mesh.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
Expand All @@ -24,6 +28,9 @@ spec:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
{{- with .Values.mesh.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: maesh-mesh
automountServiceAccountToken: true
Expand Down
6 changes: 6 additions & 0 deletions helm/chart/maesh/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ mesh:
# Added so we can launch on nodes with restrictions
nodeSelector: {}
tolerations: []
# Additional deployment annotations
# (Optional)
# annotations: {}
# Additional pod annotations
# (Optional)
# podAnnotations: {}

#
# Tracing configuration
Expand Down

0 comments on commit f737a92

Please sign in to comment.