Skip to content

Commit

Permalink
Merge pull request #49 from syphernl/feat/externalTrafficPolicy
Browse files Browse the repository at this point in the history
feat: add external traffic policy and lb ip config
  • Loading branch information
bryopsida authored Mar 13, 2024
2 parents 5929db4 + 0bfb6c5 commit e4680e6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helm/wireguard/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: wireguard
description: A Helm chart for managing a wireguard vpn in kubernetes
type: application
version: 0.20.0
version: 0.21.0
appVersion: "0.0.0"
maintainers:
- name: bryopsida
6 changes: 4 additions & 2 deletions helm/wireguard/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# wireguard

![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)
![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)

A Helm chart for managing a wireguard vpn in kubernetes

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

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)
6 changes: 6 additions & 0 deletions helm/wireguard/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@ spec:
{{- end }}
selector:
app: "{{ .Release.Name }}-wireguard"
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions helm/wireguard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ service:
port: 51820
# -- Node port, only valid with service type: NodePort
nodePort: 31820
# -- External Traffic Policy for the service
externalTrafficPolicy: ""
# -- IP to assign to the LoadBalancer service
loadBalancerIP: ""
# -- Name of a secret with a wireguard private key on key privatekey, if not provided on first install a hook generates one.
secretName: ~
replicaCount: 3
Expand Down

0 comments on commit e4680e6

Please sign in to comment.