https://rancher.com/ logo
Title
l

little-ram-17683

02/20/2023, 4:50 AM
Hi, I would like to use metallb on RKE2 provisioned cluster. I have to add this configuration to
kube-proxy
:
kubeproxy:
  extra_args:
  ipvs-strict-arp: 'true'
  proxy-mode: ipvs
But looks like there is no config map for kube-proxy. When I try to edit
cluster.yaml
to add custom config to kubeproxy I'm not sure where I should add this cfg. Could you help me, please? 🙂
c

creamy-pencil-82913

02/20/2023, 6:05 AM
--kube-proxy-arg
l

little-ram-17683

02/20/2023, 6:31 AM
But where? And whats the syntax for config I wrote above?
in kubelet args?
I have RKE2 cluster, GUI provisioned. There is documentation for RKE, but not for RKE2 https://www.suse.com/support/kb/doc/?id=000020035
@creamy-pencil-82913 could you help please? This is last blocker in our setup 😞
r

rough-farmer-49135

02/21/2023, 2:02 PM
I think you put that in your systemd file for starting rke2-server or rke2-agent, though I'm not certain. Last I checked there were RKE2 docs at https://docs.rke2.io that weren't in the Rancher page (it took me several weeks to notice that link in the channel description here).
l

little-ram-17683

02/21/2023, 2:05 PM
Im not sure. Every change should be in
cluster.yaml
just to be sure it will be not overwritten 🤔
r

rough-farmer-49135

02/21/2023, 2:10 PM
No clue, but the --xxxx syntax looks more like a command line argument than yaml to me and I'm fairly sure things can be put there.
My understanding is that some options that go in the systemd file are for the static pods that get loaded for the base of the Kubernetes cluster that Rancher runs on, so for some options the config inside rancher is too late.
l

little-ram-17683

02/21/2023, 2:14 PM
You are 100% right, but
--kube-proxy-arg
looks like argument you pass when you create k8s using RKE2. It's not my case. I've created cluster using GUI, then I have to change parameters in GUI (cluster.yaml). Otherwise, these changes will be overwritten
Look here - https://www.suse.com/support/kb/doc/?id=000020035 But this docs are for RKE1
I have to put similar settings in my
cluster.yaml
in GUI
p

powerful-elephant-25838

04/18/2023, 1:16 PM
documentation for RKE2 on this part is really lacking