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

shift vpn policy to vpn namespace #75

Merged
merged 1 commit into from
Feb 29, 2024
Merged

shift vpn policy to vpn namespace #75

merged 1 commit into from
Feb 29, 2024

Conversation

jgilfoil
Copy link
Owner

even though namespace: vpn was set, it was being applied to the network namespace.

even though namespace: vpn was set, it was being applied to the network namespace.
Copy link

--- kubernetes/apps/kube-system/cilium/app Kustomization: flux-system/cilium CiliumNetworkPolicy: kube-system/vpn-pod-gateway

+++ kubernetes/apps/kube-system/cilium/app Kustomization: flux-system/cilium CiliumNetworkPolicy: kube-system/vpn-pod-gateway

@@ -1,26 +0,0 @@

----
-apiVersion: cilium.io/v2
-kind: CiliumNetworkPolicy
-metadata:
-  labels:
-    app.kubernetes.io/instance: vpn-gateway
-    app.kubernetes.io/name: cilium
-    kustomize.toolkit.fluxcd.io/name: cilium
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: vpn-pod-gateway
-  namespace: kube-system
-spec:
-  egress:
-  - toCIDR:
-    - 0.0.0.0/0
-    toPorts:
-    - ports:
-      - port: '1637'
-        protocol: UDP
-  - toEntities:
-    - cluster
-  endpointSelector:
-    matchLabels:
-      app.kubernetes.io/instance: vpn-gateway
-      app.kubernetes.io/name: pod-gateway
-
--- kubernetes/apps/network/vpn-gateway/app Kustomization: flux-system/vpn-gateway CiliumNetworkPolicy: network/vpn-pod-gateway

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

@@ -0,0 +1,26 @@

+---
+apiVersion: cilium.io/v2
+kind: CiliumNetworkPolicy
+metadata:
+  labels:
+    app.kubernetes.io/instance: vpn-gateway
+    app.kubernetes.io/name: vpn-gateway
+    kustomize.toolkit.fluxcd.io/name: vpn-gateway
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: vpn-pod-gateway
+  namespace: network
+spec:
+  egress:
+  - toCIDR:
+    - 0.0.0.0/0
+    toPorts:
+    - ports:
+      - port: '1637'
+        protocol: UDP
+  - toEntities:
+    - cluster
+  endpointSelector:
+    matchLabels:
+      app.kubernetes.io/instance: vpn-gateway
+      app.kubernetes.io/name: pod-gateway
+

@jgilfoil jgilfoil merged commit 850c1e5 into main Feb 29, 2024
5 checks passed
@jgilfoil jgilfoil deleted the feature/vpn branch February 29, 2024 02:36
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