Skip to content

Commit

Permalink
expose container port so it can be scraped (helm#11831)
Browse files Browse the repository at this point in the history
Signed-off-by: David J. M. Karlsen <[email protected]>
  • Loading branch information
davidkarlsen authored and k8s-ci-robot committed Feb 28, 2019
1 parent 42e1849 commit bcdcbf5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/kuberhealthy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "v1.0.2"
home: https://comcast.github.io/kuberhealthy/
description: The official Helm chart for Kuberhealthy.
name: kuberhealthy
version: 1.2.1
version: 1.2.2
maintainers:
- name: integrii
email: [email protected]
Expand Down
3 changes: 3 additions & 0 deletions stable/kuberhealthy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ spec:
args:
{{ toYaml .Values.deployment.args | nindent 8 }}
{{- end }}
ports:
- containerPort: 8080
name: http
securityContext:
{{- toYaml .Values.securityContext | nindent 10 -}}
imagePullPolicy: {{ .Values.deployment.imagePullPolicy }}
Expand Down
3 changes: 1 addition & 2 deletions stable/kuberhealthy/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ metadata:
{{ if .Values.prometheus.enableScraping -}}
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: {{ .Values.service.externalPort | quote }}
prometheus.io/path: "/metrics"
{{ end -}}
{{ end -}}
Expand All @@ -18,7 +17,7 @@ spec:
ports:
- port: {{ .Values.service.externalPort }}
name: http
targetPort: 8080
targetPort: http
selector:
app: {{ template "kuberhealthy.name" . }}
release: {{ .Release.Name }}

0 comments on commit bcdcbf5

Please sign in to comment.