https://rancher.com/ logo
#rke2
Title
c

creamy-scooter-43304

05/05/2022, 1:37 PM
Could You please share with some example for rke2 config file ?
b

bland-account-99790

05/05/2022, 4:06 PM
I use this one very often:
Copy code
write-kubeconfig-mode: 644
token: "secret"
c

creamy-scooter-43304

05/05/2022, 4:07 PM
i need to deploy rke2 with ipvs what values is it necessary to add?
ipvs instead of iptables i mean
b

bland-account-99790

05/05/2022, 4:13 PM
are you familiar with what k8s component is using iptables or ipvs?
c

creamy-scooter-43304

05/05/2022, 4:14 PM
but i'm going to deploy k8s via rke2, where i want to use ipvs. default - iptables
i can suppose that it should be in config file
Copy code
kube-proxy-arg:
- proxy-mode: ipvs
b

bland-account-99790

05/05/2022, 4:16 PM
exactly
kube-proxy-arg: "proxy-mode=ipvs"
c

creamy-scooter-43304

05/05/2022, 4:17 PM
ok, thanks a lot
b

bland-account-99790

05/05/2022, 4:18 PM
If everything deploys correctly, you should see a
kube-ipvs0
interface
c

creamy-scooter-43304

05/05/2022, 4:18 PM
but
kube-proxy-arg
- it's array
Copy code
kube-proxy-arg:
- proxy-mode=ipvs
?
b

bland-account-99790

05/05/2022, 4:31 PM
where do you see it's an array?
c

creamy-scooter-43304

05/05/2022, 4:34 PM
to be honest i did not find this info, it's my suppose only i did this conclusion, because it's
kube-apiserver-arg
array
Copy code
kube-apiserver-arg:
  - oidc-ca-file=/usr/local/share/ca-certificates/ca.cert.crt
  - oidc-client-id=kubernetes
i need to add this one as well ipvs-strict-arp
Copy code
kube-proxy-arg:
- proxy-mode=ipvs
- ipvs-strict-arp
but i'm not sure, therefore i decided to ask your team i did not find rke2 config file on rancher site
b

bland-account-99790

05/05/2022, 4:39 PM
My suggestion works. Let me try yours but I feel it will not work. Probably a comma separated string will work
c

creamy-scooter-43304

05/05/2022, 4:41 PM
ok, thanks
b

bland-account-99790

05/05/2022, 4:43 PM
I take back what I said, both work 🙂
go ahead and try:
Copy code
kube-proxy-arg:
- proxy-mode=ipvs
- ipvs-strict-arp
c

creamy-scooter-43304

05/05/2022, 4:44 PM
cool! Thank You very much!
9 Views