mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 00:27:04 +02:00
- Removed: **BREAKING**: Removed support for HorizontalPodAutoscaler - Added: Support services have extraSelectorLabels (#58) - Added: support for `httpGet` probes - Added: support for setting labels / annotations on volumeClaimTemplates - Changed: **BREAKING**: Restructure of template components. All Helm templates have been renamed / namespaced. E.g. `common.values.setup` has now become `bjw-s.common.loader.init`. - Changed: **BREAKING**: Raised minimum supported k8s version to 1.22 - Changed: **BREAKING**: Renamed `configmap` key to `configMaps` - Changed: **BREAKING**: Moved `serviceMonitor` from `service` to its own key - Changed: **BREAKING**: Renamed `secret` key to `secrets`, which now works similar to `configMaps` - Changed: Updated code-server image to v4.8.2 - Changed: Updated gluetun image to v3.32.0 - Fixed: Fix NOTES always showing ingress protocol as http (#62) Signed-off-by: Gavin Mogan <git@gavinmogan.com> Co-authored-by: Gavin Mogan <github@gavinmogan.com> Co-authored-by: Gabe Cook <gabe565@gmail.com>
57 lines
1.7 KiB
Smarty
57 lines
1.7 KiB
Smarty
{{/*
|
|
The gluetun sidecar container to be inserted.
|
|
*/}}
|
|
{{- define "bjw-s.common.addon.gluetun.container" -}}
|
|
name: gluetun
|
|
image: "{{ .Values.addons.vpn.gluetun.image.repository }}:{{ .Values.addons.vpn.gluetun.image.tag }}"
|
|
imagePullPolicy: {{ .Values.addons.vpn.gluetun.pullPolicy }}
|
|
{{- with .Values.addons.vpn.securityContext }}
|
|
securityContext:
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
{{- with .Values.addons.vpn.env }}
|
|
env:
|
|
{{- . | toYaml | nindent 2 }}
|
|
{{- end }}
|
|
{{- with .Values.addons.vpn.envFrom }}
|
|
envFrom:
|
|
{{- . | toYaml | nindent 2 }}
|
|
{{- end }}
|
|
{{- with .Values.addons.vpn.args }}
|
|
args:
|
|
{{- . | toYaml | nindent 2 }}
|
|
{{- end }}
|
|
{{- if or .Values.addons.vpn.configFile .Values.addons.vpn.configFileSecret .Values.addons.vpn.scripts.up .Values.addons.vpn.scripts.down .Values.addons.vpn.additionalVolumeMounts .Values.persistence.shared.enabled }}
|
|
volumeMounts:
|
|
{{- if or .Values.addons.vpn.configFile .Values.addons.vpn.configFileSecret }}
|
|
- name: vpnconfig
|
|
mountPath: /gluetun/config.conf
|
|
subPath: vpnConfigfile
|
|
{{- end }}
|
|
{{- if .Values.addons.vpn.scripts.up }}
|
|
- name: vpnscript
|
|
mountPath: /gluetun/scripts/up.sh
|
|
subPath: up.sh
|
|
{{- end }}
|
|
{{- if .Values.addons.vpn.scripts.down }}
|
|
- name: vpnscript
|
|
mountPath: /gluetun/scripts/down.sh
|
|
subPath: down.sh
|
|
{{- end }}
|
|
{{- if .Values.persistence.shared.enabled }}
|
|
- mountPath: {{ .Values.persistence.shared.mountPath }}
|
|
name: shared
|
|
{{- end }}
|
|
{{- with .Values.addons.vpn.additionalVolumeMounts }}
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with .Values.addons.vpn.livenessProbe }}
|
|
livenessProbe:
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end -}}
|
|
{{- with .Values.addons.vpn.resources }}
|
|
resources:
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
{{- end -}}
|