Skip to content

Commit

Permalink
Support custom annotations for the service
Browse files Browse the repository at this point in the history
Signed-off-by: Danil Mironov <[email protected]>
  • Loading branch information
patrungel committed Jul 24, 2020
1 parent ab69858 commit 4f2abfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deployment/dcgm-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ metadata:
labels:
{{- include "dcgm-exporter.labels" . | nindent 4 }}
app.kubernetes.io/component: "dcgm-exporter"
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
2 changes: 2 additions & 0 deletions deployment/dcgm-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ service:
type: ClusterIP
port: 9400
address: ":9400"
# Annotations to add to the service
annotations: {}

resources: {}
# limits:
Expand Down

0 comments on commit 4f2abfa

Please sign in to comment.