Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply webhook to all pods in the labeled namespace #45

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Conversation

jgilfoil
Copy link
Owner

just a test to see if it works

Copy link

--- HelmRelease: network/vpn-gateway Deployment: network/vpn-gateway-pod-gateway-webhook

+++ HelmRelease: network/vpn-gateway Deployment: network/vpn-gateway-pod-gateway-webhook

@@ -33,12 +33,13 @@

         - --webhook-listen-address=:8080
         - --gateway=vpn-gateway-pod-gateway.network.svc.cluster.local
         - --DNS=172.16.0.1,172.16.0.2
         - --configmapName=vpn-gateway-pod-gateway
         - --setGatewayLabel=setGateway
         - --setGatewayAnnotation=setGateway
+        - --setGatewayDefault
         - --tls-cert-file-path=/tls/tls.crt
         - --tls-key-file-path=/tls/tls.key
         - --DNSPolicy=None
         - --initImage=ghcr.io/angelnu/pod-gateway:v1.10.0
         - --initImagePullPol=IfNotPresent
         - --initCmd=/bin/client_init.sh

Copy link

--- kubernetes/apps/network/vpn-gateway/app Kustomization: flux-system/vpn-gateway HelmRelease: network/vpn-gateway

+++ kubernetes/apps/network/vpn-gateway/app Kustomization: flux-system/vpn-gateway HelmRelease: network/vpn-gateway

@@ -68,15 +68,13 @@

     settings:
       VPN_BLOCK_OTHER_TRAFFIC: true
       VPN_INTERFACE: wg0
       VPN_LOCAL_CIDRS: 10.69.0.0/16 10.96.0.0/16 192.168.1.0/24
       VPN_TRAFFIC_PORT: ${SECRET_VPN_GATEWAY_PORT}
     webhook:
-      gatewayAnnotation: setGateway
-      gatewayDefault: false
-      gatewayLabel: setGateway
+      gatewayDefault: true
       image:
         pullPolicy: Always
         repository: ghcr.io/angelnu/gateway-admision-controller
         tag: v3.9.0
       namespaceSelector:
         label: vpn-routed-gateway

@jgilfoil jgilfoil merged commit c9a4e43 into main Feb 26, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant