This repository has been archived by the owner on Aug 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Joseph Petersen <[email protected]> Co-authored-by: Amos <[email protected]> Co-authored-by: Steven Imle <[email protected]> Co-authored-by: Devin Buhl <[email protected]>
- Loading branch information
1 parent
8097346
commit ce4e406
Showing
15 changed files
with
205 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
charts/stable/common/templates/addons/vpn/gluetun/_addon.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{/* | ||
Template to render gluetun addon. It will add the container to the list of additionalContainers. | ||
*/}} | ||
*/}} | ||
{{- define "common.addon.gluetun" -}} | ||
{{/* Append the gluetun container to the additionalContainers */}} | ||
{{- $container := fromYaml (include "common.addon.gluetun.container" .) -}} | ||
{{- if $container -}} | ||
{{- $_ := set .Values.additionalContainers "addon-gluetun" $container -}} | ||
{{- end -}} | ||
{{- end -}} |
57 changes: 57 additions & 0 deletions
57
charts/stable/common/templates/addons/vpn/gluetun/_container.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{{/* | ||
The gluetun sidecar container to be inserted. | ||
*/}} | ||
{{- define "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 -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.