add surfshark

This commit is contained in:
Stavros kois
2023-05-22 14:48:34 +03:00
parent a04b8ca635
commit 59ccd044a1
5 changed files with 65 additions and 1 deletions
@@ -0,0 +1,18 @@
gluetunStorage:
data:
type: hostPath
hostPath: /mnt/{{ .Release.Name }}/data
# https://github.com/qdm12/gluetun/wiki/Surfshark
gluetunConfig:
# :9999 is the internal healthcheck endpoint
# We tell it to probe it self so we can see if it's healthy
# As it will never connect to actual servers to be able to reach the internet
# This is only for CI, healthcheck will fail if configuration is not valid
additionalEnvs:
- name: HEALTH_TARGET_ADDRESS
value: localhost:9999
provider: surfshark
type: openvpn
openvpnUser: username
openvpnPassword: password
@@ -0,0 +1,20 @@
gluetunStorage:
data:
type: hostPath
hostPath: /mnt/{{ .Release.Name }}/data
# https://github.com/qdm12/gluetun/wiki/Surfshark
gluetunConfig:
# :9999 is the internal healthcheck endpoint
# We tell it to probe it self so we can see if it's healthy
# As it will never connect to actual servers to be able to reach the internet
# This is only for CI, healthcheck will fail if configuration is not valid
additionalEnvs:
- name: HEALTH_TARGET_ADDRESS
value: localhost:9999
provider: surfshark
type: wireguard
wireguardPrivateKey: ACTNX9v4t6bN6I207zBvrd/DcJYz8n5+NCjjqPFYEXE=
wireguardAddresses:
- 10.0.0.0/16
- 172.0.0.0/16
@@ -68,6 +68,8 @@ questions:
description: PureVPN
- value: slickvpn
description: SlickVPN
- value: surfshark
description: Surfshark
- variable: type
label: Type
@@ -3,7 +3,7 @@
"fastestvpn" "hidemyass" "ipvanish" "ivpn"
"mullvad" "nordvpn" "perfect privacy" "privado"
"private internet access" "privatevpn" "protonvpn"
"purevpn" "slickvpn") -}}
"purevpn" "slickvpn" "surfshark") -}}
{{- if not (mustHas .Values.gluetunConfig.provider $providers) -}}
{{- fail (printf "Gluetun - Expected [Provider] to be one of [%v], but got [%v]" (join ", " $providers) .Values.gluetunConfig.provider) -}}
{{- end -}}
@@ -0,0 +1,24 @@
{{/* https://github.com/qdm12/gluetun/wiki/Surfshark */}}
{{- define "gluetun.surfshark.openvpn.validation" -}}
{{- include "gluetun.options.required" (dict
"rootCtx" $
"options" (list
"openvpnUser"
"openvpnPassword")) -}}
{{- include "gluetun.unsupported.server.options" (dict
"rootCtx" $
"options" (list
"serverNames")) -}}
{{- end -}}
{{- define "gluetun.surfshark.wireguard.validation" -}}
{{- include "gluetun.options.required" (dict
"rootCtx" $
"options" (list
"wireguardPrivateKey"
"wireguardAddresses")) -}}
{{- include "gluetun.unsupported.server.options" (dict
"rootCtx" $
"options" (list
"serverNames")) -}}
{{- end -}}