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

Fix/exporter port #47

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: varnish
description: A Varnish Cache Helm chart for Kubernetes
type: application
version: 0.18.9
appVersion: 7.2.1
version: 0.19.0
appVersion: 7.5.0
4 changes: 2 additions & 2 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ spec:
securityContext:
{{- toYaml .Values.prometheus.securityContext | nindent 12 }}
ports:
- name: http
- name: exporter
containerPort: {{ .Values.prometheus.port }}
protocol: TCP
resources:
Expand Down Expand Up @@ -162,7 +162,7 @@ spec:
{{- end }}
{{- if or .Values.logging.enabled .Values.vcl .Values.vclConfigmap .Values.extraVolumes }}
volumes:
{{- if .Values.logging.enabled }}
{{- if or .Values.logging.enabled .Values.prometheus.enabled }}
- name: vsm
emptyDir:
medium: Memory
Expand Down
4 changes: 3 additions & 1 deletion templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if .Values.prometheus.enabled }}
- port: {{ .Values.prometheus.port }}
targetPort: http
targetPort: exporter
protocol: TCP
name: exporter
{{- end }}
selector:
{{- include "varnish.selectorLabels" . | nindent 4 }}
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ vcl: {}
# that
# }

vclFiles: {}
# defaultByFile.vcl: "vcl/default.vcl"

# set this to a configmap name if we want to provide our own instead of declaring text
# it should have filenames as keys (as default.vcl)

Expand Down