Skip to content

Commit e4680e6

Browse files
authored
Merge pull request #49 from syphernl/feat/externalTrafficPolicy
feat: add external traffic policy and lb ip config
2 parents 5929db4 + 0bfb6c5 commit e4680e6

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

helm/wireguard/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: wireguard
33
description: A Helm chart for managing a wireguard vpn in kubernetes
44
type: application
5-
version: 0.20.0
5+
version: 0.21.0
66
appVersion: "0.0.0"
77
maintainers:
88
- name: bryopsida

helm/wireguard/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# wireguard
22

3-
![Version: 0.20.0](https://img.shields.io/badge/Version-0.20.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.0](https://img.shields.io/badge/AppVersion-0.0.0-informational?style=flat-square)
3+
![Version: 0.21.0](https://img.shields.io/badge/Version-0.21.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.0](https://img.shields.io/badge/AppVersion-0.0.0-informational?style=flat-square)
44

55
A Helm chart for managing a wireguard vpn in kubernetes
66

@@ -111,6 +111,8 @@ A Helm chart for managing a wireguard vpn in kubernetes
111111
| securityContext.runAsNonRoot | bool | `true` | |
112112
| securityContext.runAsUser | int | `1000` | |
113113
| service.enabled | bool | `true` | Whether the service will be created or not |
114+
| service.externalTrafficPolicy | string | `""` | External Traffic Policy for the service |
115+
| service.loadBalancerIP | string | `""` | IP to assign to the LoadBalancer service |
114116
| service.nodePort | int | `31820` | Node port, only valid with service type: NodePort |
115117
| service.port | int | `51820` | Service port, default is 51820 UDP |
116118
| service.type | string | `"LoadBalancer"` | Service type, to keep internal to cluster use ClusterIP or NodePort |
@@ -124,4 +126,4 @@ A Helm chart for managing a wireguard vpn in kubernetes
124126
| wireguard.serverCidr | string | `"10.34.0.0/24"` | Subnet for your VPN, take care not to clash with cluster POD cidr |
125127

126128
----------------------------------------------
127-
Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
129+
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)

helm/wireguard/templates/service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,10 @@ spec:
1717
{{- end }}
1818
selector:
1919
app: "{{ .Release.Name }}-wireguard"
20+
{{- if .Values.service.externalTrafficPolicy }}
21+
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
22+
{{- end }}
23+
{{- if .Values.service.loadBalancerIP }}
24+
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
25+
{{- end }}
2026
{{- end }}

helm/wireguard/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ service:
6666
port: 51820
6767
# -- Node port, only valid with service type: NodePort
6868
nodePort: 31820
69+
# -- External Traffic Policy for the service
70+
externalTrafficPolicy: ""
71+
# -- IP to assign to the LoadBalancer service
72+
loadBalancerIP: ""
6973
# -- Name of a secret with a wireguard private key on key privatekey, if not provided on first install a hook generates one.
7074
secretName: ~
7175
replicaCount: 3

0 commit comments

Comments
 (0)