kubernikus icon indicating copy to clipboard operation
kubernikus copied to clipboard

Improve lifecycle management of cluster security group

Open databus23 opened this issue 3 years ago • 2 comments

The flight controller is ensuring a couple of entries to the security group that is configured for the cluster.

At the moment the controller reconciles:

  • the cluster security group is assigned to every cluster node
  • that the ingress for the cluster CIDR is allowed within the security group (is this even necessary?)

We are not reconciling certain assumptions that we probably should in the future to avoid support load.

  • egress
    • ntp
    • dns
    • docker hub (maybe not needed anymore)
    • regional keppel + swift (for kubelet, kube-proxy, wormhole, dns)
    • swift eu-de-1 (rkt download)

Two open questions:

  • Do we really need the cluster CIDR security group? I'm not sure its required as I believe that cloud controller manager also configures the pod CIDR ranges on the instance port as "allowed address pairs": https://github.com/kubernetes/cloud-provider-openstack/blob/9b8de65448e7872ac4e83c7342e498127155253b/pkg/openstack/routes.go#L332 If that works reliable we may not need the security group rule to get pod to pod communication working
  • What is with communication settings for the loadbalancer <-> backend? Can we ensure a rule there as well to make it work? There is also a "manage security groups" option in the cloud controller manager that we don't use atm.

databus23 avatar Jul 28 '21 10:07 databus23

Fixed by #601

databus23 avatar Aug 13 '21 08:08 databus23

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 01:01 stale[bot]