I am using Rancher for Kubernetes Installation and cluster Management. For fixing issue related to IP Tables I need to update the cluster-cidr attribute in Kubeproxy config (https://github.com/kubernetes/kubernetes/issues/36835 ), I am not sure how to update the kube-proxy. Can someone tell me how to update it via Kubectl or UI or how to login to kubeproxy and chnage it?
Asked
Active
Viewed 1,976 times
1 Answers
-2
if we are talking about the Kubernetes
:
- find the directory
/etc/kubernetes
on your node - there will be some files and directories, you need to find where the manifests store (something like
kube-proxy.manifest
, which is a .yml file ) - open it and there you'll find
--cluster-cidr
, it is an option tocommand
:
command:
- /hyperkube
- proxy
- ...
- --cluster-cidr=<your_CIDR>
(actually command
is a list in YAML implementation, and the --cluster-cidr
is a member of this list)
Note: depending on deploying tool (including the Rancher
) this directory structure/file names might be different

Konstantin Vustin
- 6,521
- 2
- 16
- 32