Skip to content
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/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: kube-httpcache
description: Varnish on Kubernetes Helm Chart
version: 0.8.0
appVersion: v0.8.0
version: 0.8.1
appVersion: v0.8.1
home: https://varnish-cache.org
icon: https://varnish-cache.org/_static/varnish-bunny.png
sources:
Expand Down
11 changes: 11 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,17 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- end }}
{{- if .Values.logging.enabled }}
- name: varnishncsa
securityContext:
{{- toYaml .Values.logging.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: [ "/bin/sh", "-c", "sleep 10 && varnishncsa -F '{{ .Values.logging.logFormat }}'" ]
volumeMounts:
- name: var
mountPath: /var/lib/varnish
{{- end}}
{{- if .Values.exporter.enabled }}
- name: exporter
securityContext:
Expand Down
11 changes: 11 additions & 0 deletions chart/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- end }}
{{- if .Values.logging.enabled }}
- name: varnishncsa
securityContext:
{{- toYaml .Values.logging.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: [ "/bin/sh", "-c", "sleep 10 && varnishncsa -F '{{ .Values.logging.logFormat }}'" ]
volumeMounts:
- name: var
mountPath: /var/lib/varnish
{{- end}}
{{- if .Values.exporter.enabled }}
- name: exporter
securityContext:
Expand Down
5 changes: 5 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ serviceAccount:
rbac:
enabled: true

logging:
enabled: false
logFormat: '%h %U'
securityContext: {}

# create a prometheus operator ServiceMonitor
serviceMonitor:
enabled: false
Expand Down