Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set kube-proxy settings using kubectl on AKS

I keep reading documentation that gives parameters for kube-proxy, but does not explain how where these parameters are supposed to be used. I create my cluster using az aks create with the azure-cli program, then I get credentials and use kubectl. So far everything I've done has involved yaml for services and deployments and such, but I can't figure out where all this kube-proxy stuff fits into all of this.

I've googled for days. I've opened question issues on github with AKS. I've asked on the kubernetes slack channel, but nobody has responded.

like image 371
Novaterata Avatar asked Jan 28 '23 07:01

Novaterata


1 Answers

The kube-proxy on all your Kubernetes nodes runs as a Kubernetes DaemonSet and its configuration is stored on a Kubernetes ConfigMap. To make any changes or add/remove options you will have to edit the kube-proxy DaemonSet or ConfigMap on the kube-system namespace.

$ kubectl -n kube-system edit daemonset kube-proxy

or

$ kubectl -n kube-system edit configmap kube-proxy

For a reference on the kube-proxy command line options you can refer to here.

like image 172
Rico Avatar answered Jan 31 '23 08:01

Rico