From 38609ebfcf313409396db74498d115058b3afa51 Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Mon, 17 Apr 2023 16:45:06 -0400 Subject: [PATCH] nordvpn --- .../templates/_helpers/openvpn-container.yaml | 8 +++----- k8s/apps/videohosting/templates/sts-linuxservices.yaml | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/k8s/apps/videohosting/templates/_helpers/openvpn-container.yaml b/k8s/apps/videohosting/templates/_helpers/openvpn-container.yaml index ee6603d..edee707 100644 --- a/k8s/apps/videohosting/templates/_helpers/openvpn-container.yaml +++ b/k8s/apps/videohosting/templates/_helpers/openvpn-container.yaml @@ -1,6 +1,5 @@ -{{ define "homelab.nordvpn "}} +{{ define "homelab.nordvpn" }} - name: vpn - image: ghcr.io/bubuntux/nordvpn stdin: true tty: true securityContext: @@ -9,9 +8,6 @@ add: - NET_ADMIN - NET_RAW - env: - - name: TZ - value: "{{ .Values.global.timezone }}" volumeMounts: - name: vpn-config mountPath: /vpn/client.ovpn @@ -23,6 +19,8 @@ mountPath: /tmp/route image: ghcr.io/bubuntux/nordvpn env: + - name: TZ + value: "{{ .Values.global.timezone }}" - name: TOKEN valueFrom: secretKeyRef: diff --git a/k8s/apps/videohosting/templates/sts-linuxservices.yaml b/k8s/apps/videohosting/templates/sts-linuxservices.yaml index 689a841..bb5a7c3 100644 --- a/k8s/apps/videohosting/templates/sts-linuxservices.yaml +++ b/k8s/apps/videohosting/templates/sts-linuxservices.yaml @@ -105,7 +105,7 @@ spec: mountPath: /config - name: torrents mountPath: /torrents - {{- include "homelab.nordvpn" . | nindent 8 }} + {{- include "homelab.nordvpn" $ | nindent 8 }} volumes: - name: torrents nfs: