Skip to content

Rejecting connections to node #1924

@tomahzo

Description

@tomahzo

What happened?

When the service starts, it doesn't fill ipset kube-router-local-ips, configured firewall rules then reject connections to node and kubernetes cluster is down.

What did you expect to happen?

Fill the ipset kube-router-local-ips and allow communication to node's ports.

How can we reproduce the behavior you experienced?

Steps to reproduce the behavior:

  1. Do not have or have empty ipset kube-router-local-ips
  2. Do not modify the ipset kube-router-local-ips by anything else
  3. Deploy kube-router to kubernetes with --run-service-proxy and --run-firewall
  4. Now the node should be unaccessible

System Information (please complete the following information)

  • Kube-Router Version (kube-router --version): 2.6.1
  • Kube-Router Parameters: --run-router=true --run-firewall=true --run-service-proxy=true
  • Kubernetes Version (kubectl version) : 1.33.5
  • Cloud Type: on premise
  • Kubernetes Deployment Type: kubeadm
  • Kube-Router Deployment Type: DaemonSet
  • Cluster Size: 5 Nodes

Additional context

This is caused by last changes (2191414) in Pull Request(#1919), where just the serviceIPsIPSetName and serviceIPPortsSetName are refreshed, but not localIPsIPSetName.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions