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

adjust podgateway target annotations and labels #44

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Conversation

jgilfoil
Copy link
Owner

webhook admission controller isn't modifying the target pods. trying the defaults

webhook admission controller isn't modifying the target pods. trying the defaults
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,15 @@

     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: routeToVPN
+      gatewayAnnotation: setGateway
       gatewayDefault: false
-      gatewayLabel: routeToVPN
+      gatewayLabel: setGateway
       image:
         pullPolicy: Always
         repository: ghcr.io/angelnu/gateway-admision-controller
         tag: v3.9.0
       namespaceSelector:
         label: vpn-routed-gateway

Copy link

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

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

@@ -31,14 +31,14 @@

         image: ghcr.io/angelnu/gateway-admision-controller:v3.9.0
         args:
         - --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=routeToVPN
-        - --setGatewayAnnotation=routeToVPN
+        - --setGatewayLabel=setGateway
+        - --setGatewayAnnotation=setGateway
         - --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

@jgilfoil jgilfoil merged commit ce7f622 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