|
@@ -51,13 +51,14 @@ spec:
|
|
|
containerPort: {{ .Values.wgUDPPort }}
|
|
|
protocol: UDP
|
|
|
- name: web
|
|
|
- containerPort: 51821
|
|
|
+ containerPort: {{ .Values.webUIPort }}
|
|
|
env:
|
|
|
{{ $wgeasy := .Values.wgeasy }}
|
|
|
{{ $envList := (default list .Values.environmentVariables) }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "WG_HOST" "value" $wgeasy.host) }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "PASSWORD" "value" $wgeasy.password) }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "WG_PORT" "value" .Values.wgUDPPort) }}
|
|
|
+ {{ $envList = mustAppend $envList (dict "name" "PORT" "value" .Values.webUIPort) }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "WG_PERSISTENT_KEEPALIVE" "value" $wgeasy.keep_alive) }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "WG_MTU" "value" $wgeasy.client_mtu) }}
|
|
|
{{ $envList = mustAppend $envList (dict "name" "WG_DEFAULT_ADDRESS" "value" $wgeasy.client_address_range) }}
|
|
@@ -71,19 +72,19 @@ spec:
|
|
|
readinessProbe:
|
|
|
httpGet:
|
|
|
path: /
|
|
|
- port: 51821
|
|
|
+ port: {{ .Values.webUIPort }}
|
|
|
failureThreshold: 5
|
|
|
periodSeconds: 15
|
|
|
livenessProbe:
|
|
|
httpGet:
|
|
|
path: /
|
|
|
- port: 51821
|
|
|
+ port: {{ .Values.webUIPort }}
|
|
|
failureThreshold: 5
|
|
|
periodSeconds: 15
|
|
|
startupProbe:
|
|
|
httpGet:
|
|
|
path: /
|
|
|
- port: 51821
|
|
|
+ port: {{ .Values.webUIPort }}
|
|
|
initialDelaySeconds: 5
|
|
|
failureThreshold: 40
|
|
|
periodSeconds: 15
|