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

[QUESTION/HELP] Embedded Network Policy Controller kube-router not work on restart #1513

Open
tdnguyen6 opened this issue Sep 17, 2024 · 0 comments
Labels
question Further information is requested

Comments

@tdnguyen6
Copy link

Question / Where do you need Help?

Scope of your Question

  • Is your question related to a specific version of k3d (or k3s)?
    • Please paste the output of k3d version here
k3d version v5.7.3
k3s version v1.30.3-k3s1 (default)

Cluster setup

k3d cluster create demo --network k3d

Apply
Apply deny all network policy to namespace kube-system

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: default-deny-ingress
spec:
  podSelector: {}
  policyTypes:
  - Ingress

After a few minutes, the ingress lb can't be access anymore.
Restart cluster

k3d cluster stop demo
k3d cluster start demo

I expect it will have the same block behavior. However, no matter what I do to the network policy, I was able to access the ingress lb. I tried to wait but it's still the same. Upon inspection, seems like before restarting the cluster, there are a lot of iptables rules from KUBE-ROUTER, but after restarting, the iptables have just a few rules.

I suspect that the embedded kube-router was not started upon restarting, or do I miss something here?

@tdnguyen6 tdnguyen6 added the question Further information is requested label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant