From 8d62ae0413950f86c1678dd8fbe783cb8d229ba2 Mon Sep 17 00:00:00 2001 From: Mark Shine Date: Fri, 11 Oct 2024 11:05:01 +0200 Subject: [PATCH 1/3] Added LoadBalancerClass --- helm/wireguard/templates/service.yaml | 3 +++ helm/wireguard/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/helm/wireguard/templates/service.yaml b/helm/wireguard/templates/service.yaml index 1c80b68..54ca9e8 100644 --- a/helm/wireguard/templates/service.yaml +++ b/helm/wireguard/templates/service.yaml @@ -30,4 +30,7 @@ spec: {{- if .Values.service.loadBalancerIP }} loadBalancerIP: {{ .Values.service.loadBalancerIP }} {{- end }} + {{- if .Values.service.loadBalancerClass }} + loadBalancerClass: {{ .Values.service.loadBalancerClass }} + {{- end }} {{- end }} \ No newline at end of file diff --git a/helm/wireguard/values.yaml b/helm/wireguard/values.yaml index 4bd2a66..d548908 100644 --- a/helm/wireguard/values.yaml +++ b/helm/wireguard/values.yaml @@ -87,6 +87,8 @@ service: annotations: {} # -- Extra ports that can be attached to the service object, these are passed directly to the port array on the service and must be well formed to the specification extraPorts: [] + # -- loadBalancerClass for Service Controllers that support it + loadBalancerClass: "" # -- 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 From 79944451b4f51d5b5a54192ecd6adb1a2619667e Mon Sep 17 00:00:00 2001 From: Mark Shine Date: Fri, 11 Oct 2024 11:27:43 +0200 Subject: [PATCH 2/3] updated comment of loadbalancerclass value --- helm/wireguard/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/wireguard/values.yaml b/helm/wireguard/values.yaml index d548908..d4e3c3a 100644 --- a/helm/wireguard/values.yaml +++ b/helm/wireguard/values.yaml @@ -87,9 +87,9 @@ service: annotations: {} # -- Extra ports that can be attached to the service object, these are passed directly to the port array on the service and must be well formed to the specification extraPorts: [] - # -- loadBalancerClass for Service Controllers that support it + # -- loadBalancerClass for kubernetes clusters with multiple load balancer classes. This value cannot be used in a upgrade flow loadBalancerClass: "" -# -- Name of a secret with a wireguard private key on key privatekey, if not provided on first install a hook generates one. +# -- 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 resources: From dd9c6b3a9cf526a579860ca657f66943be4cf3c7 Mon Sep 17 00:00:00 2001 From: Mark Shine Date: Fri, 18 Oct 2024 22:33:47 +0200 Subject: [PATCH 3/3] updated README and chart version --- helm/wireguard/Chart.yaml | 2 +- helm/wireguard/README.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/helm/wireguard/Chart.yaml b/helm/wireguard/Chart.yaml index 8ee53c5..44ea143 100644 --- a/helm/wireguard/Chart.yaml +++ b/helm/wireguard/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: wireguard description: A Helm chart for managing a wireguard vpn in kubernetes type: application -version: 0.26.0 +version: 0.27.0 appVersion: "0.0.0" maintainers: - name: bryopsida diff --git a/helm/wireguard/README.md b/helm/wireguard/README.md index 793caf3..8983c4e 100644 --- a/helm/wireguard/README.md +++ b/helm/wireguard/README.md @@ -110,7 +110,7 @@ A Helm chart for managing a wireguard vpn in kubernetes | resources.requests.memory | string | `"256Mi"` | | | runPodOnHostNetwork | bool | `false` | Run pod on host network | | runtimeClassName | string | `nil` | Override the default runtime class of the container, if not provided `runc` will most likely be used | -| secretName | string | `nil` | Name of a secret with a wireguard private key on key privatekey, if not provided on first install a hook generates one. | +| secretName | string | `nil` | Name of a secret with a wireguard private key on key privatekey, if not provided on first install a hook generates one | | securityContext.allowPrivilegeEscalation | bool | `true` | | | securityContext.privileged | bool | `false` | | | securityContext.readOnlyRootFilesystem | bool | `true` | | @@ -120,6 +120,7 @@ A Helm chart for managing a wireguard vpn in kubernetes | service.enabled | bool | `true` | Whether the service will be created or not | | service.externalTrafficPolicy | string | `""` | External Traffic Policy for the service | | service.extraPorts | list | `[]` | Extra ports that can be attached to the service object, these are passed directly to the port array on the service and must be well formed to the specification | +| service.loadBalancerClass | string | `""` | loadBalancerClass for kubernetes clusters with multiple load balancer classes. This value cannot be used in a upgrade flow | | 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 |