k3s/pkg/kubelet/network
Kubernetes Submit Queue c4893df894 Merge pull request #32151 from bboreham/fix-cni-on-gci
Automatic merge from submit-queue

Add flag to set CNI bin dir, and use it on gci nodes

**What this PR does / why we need it**:

When using `kube-up` on GCE, following #31023 which moved the workers from debian to gci, CNI just isn't working.  The root cause is basically as discussed in #28563: one flag (`--network-plugin-dir`) means two different things, and the `configure-helper` script uses it for the wrong purpose.

This PR adds a new flag `--cni-bin-dir`, then uses it to configure CNI as desired.

As discussed at #28563, I have also added a flag `--cni-conf-dir` so users can be explicit 

**Which issue this PR fixes** : fixes #28563

**Special notes for your reviewer**:

I left the old flag largely alone for backwards-compatibility, with the exception that I stop setting the default when CNI is in use.  The value of `"/usr/libexec/kubernetes/kubelet-plugins/net/exec/"` is unlikely to be what is wanted there.

**Release note**:
```release-note
Added new kubelet flags `--cni-bin-dir` and `--cni-conf-dir` to specify where CNI files are located.
Fixed CNI configuration on GCI platform when using CNI.
```
2016-09-13 16:42:06 -07:00
..
cni Fix unit tests and known flags list 2016-09-13 20:42:52 +00:00
exec Move default directory for exec plugin into exec plugin 2016-09-09 11:43:16 +01:00
hairpin Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
hostport fix a bug in hostport where it flushes KUBE-MARK-MASQ chain 2016-09-09 14:39:47 -07:00
kubenet Merge pull request #30727 from asalkeld/iptables-caps 2016-09-06 09:01:27 -07:00
mock_network Add network-plugin-mtu option for MTU selection 2016-08-23 01:50:58 -04:00
testing Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
network.go Add network-plugin-mtu option for MTU selection 2016-08-23 01:50:58 -04:00
plugins.go Kubelet: add KillPod for new runtime API 2016-09-08 20:56:50 +08:00
plugins_test.go Add network-plugin-mtu option for MTU selection 2016-08-23 01:50:58 -04:00