-
Notifications
You must be signed in to change notification settings - Fork 15
/
release.yaml
114 lines (103 loc) · 3.11 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: vpn-gateway
labels:
# Avoid variable substitution of shell variables bellow
kustomize.toolkit.fluxcd.io/substitute: disabled
spec:
interval: 5m
chart:
spec:
chart: pod-gateway
version: 6.5.1
interval: 15m
sourceRef:
kind: HelmRepository
name: angelnu-helm-charts
namespace: flux-system
#See https://github.com/angelnu/helm-charts/blob/main/charts/apps/pod-gatewa/values.yaml
values:
image:
repository: ghcr.io/angelnu/pod-gateway
# I am using dev version for testing - others should be using latest
tag: dev@sha256:0b33122ea476461d3f6e5655b55071f6a2bea168de92ca0b83c05da7a0953598
webhook:
image:
repository: ghcr.io/angelnu/gateway-admision-controller
# Use dev version
pullPolicy: Always
tag: dev
addons:
vpn:
enabled: true
type: gluetun
gluetun:
image:
repository: docker.io/qmcgaw/gluetun
tag: latest@sha256:fc0a86c1475012fb99153128921eae08ecd05709289fcd78b78fe757909c2205
env:
- name: VPN_SERVICE_PROVIDER
value: airvpn
- name: VPN_TYPE
value: wireguard
- name: VPN_INTERFACE
value: wg0
- name: FIREWALL
value: "off"
- name: DOT
value: "off"
# - name: WIREGUARD_PRIVATE_KEY
# value: set in secret
# - name: WIREGUARD_PRESHARED_KEY
# value: set in secret
# - name: WIREGUARD_ADDRESSES
# value: set in secret
- name: SERVER_COUNTRIES
value: Belgium
envFrom:
- secretRef:
name: airvpn
livenessProbe:
exec:
command:
- sh
- -c
- if [ $(wget -q -O- https://ipinfo.io/country) == 'BE' ]; then exit 0; else exit $?; fi
initialDelaySeconds: 30
periodSeconds: 60
failureThreshold: 3
networkPolicy:
enabled: true
egress:
- to:
- ipBlock:
cidr: 0.0.0.0/0
ports:
# VPN traffic
- port: &vpn_port 1637
protocol: UDP
- to:
- ipBlock:
cidr: 10.0.0.0/8
routed_namespaces:
- vpn
settings:
# -- If using a VPN, interface name created by it
VPN_INTERFACE: wg0
# -- Prevent non VPN traffic to leave the gateway
VPN_BLOCK_OTHER_TRAFFIC: true
# -- If VPN_BLOCK_OTHER_TRAFFIC is true, allow VPN traffic over this port
VPN_TRAFFIC_PORT: *vpn_port
# -- Traffic to these IPs will be send through the K8S gateway
VPN_LOCAL_CIDRS: "10.0.0.0/8 192.168.0.0/16"
# -- settings to expose ports, usually through a VPN provider.
# NOTE: if you change it you will need to manually restart the gateway POD
publicPorts:
- hostname: qbittorrent
IP: 10
ports:
- type: udp
port: 18289
- type: tcp
port: 18289