Skip to content

Commit 3234fd0

Browse files
authored
fix(helmfile): deploy sidecar for DNS (#52)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 7d7468a commit 3234fd0

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

helmfile-app/helmfile-vpn.yaml.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ releases:
6969
- name: vpn-{{ $key }}
7070
namespace: vpn-{{ $key }}
7171
chart: oci://ghcr.io/blinklabs-io/helm-charts/charts/openvpn
72-
version: 0.7.1
72+
version: 0.8.1
7373
labels:
7474
app: vpn-{{ $key }}
7575
condition: vpn.enabled

helmfile-app/vpn/templates/vpn-instance.yaml.gotmpl

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,30 @@ configFiles:
2323
port {{ .port }}
2424
proto {{ .proto }}
2525
dev tun
26+
persist-key
27+
persist-tun
2628
server {{ .network }} {{ .mask }}
2729
dh dh.pem
2830
ca ca.crt
2931
cert server.crt
3032
key server.key
3133
crl-verify crl/crl.pem
34+
tls-server
35+
remote-cert-tls client
36+
tls-version-min 1.2
37+
tls-cipher TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384
38+
auth SHA256
3239
topology subnet
3340
# This path matches the default from the helm chart
3441
status /var/tmp/openvpn/openvpn-status.log
3542
status-version 2
36-
# ns1 and ns2
37-
push "dhcp-option DNS 34.67.9.70"
38-
push "dhcp-option DNS 34.135.129.215"
43+
push "dhcp-option DNS 10.8.0.1"
3944
push "register-dns"
45+
push "block-outside-dns"
4046
push "redirect-gateway def1"
4147
user nobody
4248
group nogroup
49+
keepalive 10 120
4350

4451
- name: ca.crt
4552
content: |-

helmfile-app/vpn/values.instance.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,18 @@ metrics:
88
service:
99
enabled: true
1010

11+
bind:
12+
enabled: true
13+
resources:
14+
requests:
15+
memory: 256M
16+
cpu: 250m
17+
limits:
18+
memory: 256M
19+
cpu: 500m
20+
env:
21+
# This is the "magic" IP that refers to the current VPC's resolver in EC2
22+
dns_forwarder: 169.254.169.253
23+
1124
image:
1225
tag: '0.4.0'

0 commit comments

Comments
 (0)