kubernetes charms don't set ipvs mode (code and docs bug)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kubernetes Control Plane Charm |
Fix Released
|
High
|
Unassigned | ||
Kubernetes Worker Charm |
Fix Released
|
High
|
Unassigned |
Bug Description
Hi,
from https:/
juju config kubernetes-
unfortunately this is not working because if you have a look at the kube-proxy man page https:/
--proxy-mode ProxyMode
Which proxy mode to use: on Linux this can be 'iptables' (default) or 'ipvs'. On Windows the only supported
value is 'kernelspace'.This parameter is ignored if a config file is specified by --config.
the unit uses this command line:
/snap/kube-
so proxy-mode extra argument is ignored.
how to fix:
1) there are 2 missing packages: ipset e conntrack (the latter is a very old standing issue, for instance https:/
2) the /root/cdk/
mode: "ipvs"
ipvs:
strictARP: true
instead of dealing with extra args, as we need to install (and remove) packages, it may be good to have a dedicated flag such as "proxy-mode" with ["iptables","ipvs"] options.
when switching from iptables to ipvs you need to flush iptables/ipvs rules (while testing i fixed with a basic machine reboot).
the kubernetes-worker charm shares exactly the same issue.
description: | updated |
Changed in charm-kubernetes-master: | |
importance: | Undecided → High |
Changed in charm-kubernetes-worker: | |
importance: | Undecided → High |
summary: |
- kubernetes-control-plane charm doesn't set ipvs mode (code and docs bug) + kubernetes charms don't set ipvs mode (code and docs bug) |
Changed in charm-kubernetes-master: | |
status: | New → Confirmed |
Changed in charm-kubernetes-worker: | |
status: | New → Confirmed |
Changed in charm-kubernetes-master: | |
milestone: | none → 1.27+ck2 |
Changed in charm-kubernetes-worker: | |
milestone: | none → 1.27+ck2 |
Changed in charm-kubernetes-master: | |
status: | Triaged → In Progress |
Changed in charm-kubernetes-worker: | |
status: | Triaged → In Progress |
Changed in charm-kubernetes-master: | |
status: | In Progress → Fix Committed |
Changed in charm-kubernetes-worker: | |
status: | In Progress → Fix Committed |
Changed in charm-kubernetes-master: | |
status: | Fix Committed → Fix Released |
Changed in charm-kubernetes-worker: | |
status: | Fix Committed → Fix Released |
I'll be working on this soon. It's targeted for release with 1.27+ck2 which should be in early-to-mid June.