cozystack icon indicating copy to clipboard operation
cozystack copied to clipboard

Automatically remove `flannel` and `kube-proxy`

Open kvaps opened this issue 1 year ago • 6 comments

Talos automatically setups flannel and kube-proxy, and even if you switch config to:

cluster:
  network:
    cni:
      name: none
  proxy:
    disabled: true

it will not automatically remove it. User have to run:

kubectl delete -n kube-system ds kube-flannel
kubectl delete -n kube-system  ds kube-proxy

Let's think how we can automate it

kvaps avatar Jan 26 '24 13:01 kvaps

Hi!

Where is the talos config stored? Is it in cluster object or just rather a file somewhere?

gecube avatar Jan 26 '24 14:01 gecube

right now I see the option only to add some extra manifest to talos config with the job that will trigger every time the config is re-applied and in this job to make a check if we need to do extra steps like

kubectl delete -n kube-system ds kube-flannel
kubectl delete -n kube-system  ds kube-proxy

gecube avatar Jan 26 '24 14:01 gecube

Where is the talos config stored? Is it in cluster object or just rather a file somewhere?

It's stored in talos api for every node, I think we would need to write special talos-controller, which would reconcile all configs with the Kubernetes

kvaps avatar Jan 29 '24 09:01 kvaps