Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Add support for MTU, and WG post up/down from v5 upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon099 committed Jan 13, 2022
1 parent eaf7431 commit 90743cf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/wg-easy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: A wg-easy Wireguard server
type: application
icon: https://www.wireguard.com/img/wireguard.svg
# This is the chart version.
version: 0.1.12
version: 0.1.13
# This is the version number of the application being deployed.
appVersion: "4"
12 changes: 12 additions & 0 deletions charts/wg-easy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ spec:
- name: WG_PORT
value: "{{ .Values.wireguard.service.port }}"
{{- end }}
{{- if .Values.wireguard.mtu }}
- name: WG_MTU
value: "{{ .Values.wireguard.service.mtu }}"
{{- end }}
{{- if .Values.wireguard.clientAddrRange }}
- name: WG_DEFAULT_ADDRESS
value: "{{ .Values.wireguard.clientAddrRange }}"
Expand All @@ -67,6 +71,14 @@ spec:
- name: WG_PERSISTENT_KEEPALIVE
value: "{{ .Values.wireguard.persistentKeepalive }}"
{{- end }}
{{- if .Values.wireguard.postUp }}
- name: WG_POST_UP
value: "{{ .Values.wireguard.postUp }}"
{{- end }}
{{- if .Values.wireguard.postDown }}
- name: WG_POST_DOWN
value: "{{ .Values.wireguard.postDown }}"
{{- end }}
volumeMounts:
- name: tun
mountPath: /dev/net/tun
Expand Down
5 changes: 5 additions & 0 deletions charts/wg-easy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ wireguard:
dns: 1.1.1.1
allowedIps: "0.0.0.0/0, ::/0"
persistentKeepalive: 0
#mtu: 1420
#postUp: |-
# Put Wireguard post up commands here, here per line
#postDown: |-
# Put Wireguard post down commands here, here per line

imagePullSecrets: []
nameOverride: ""
Expand Down

0 comments on commit 90743cf

Please sign in to comment.