Skip to content

Commit

Permalink
Merge pull request #117 from m-lab/sandbox-soltesz-readme
Browse files Browse the repository at this point in the history
Clarify how to enable shimcni
  • Loading branch information
stephen-soltesz authored May 24, 2019
2 parents fef9b3c + ff50a3e commit 13f2e98
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions configs/stage3_coreos/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
The `shim.sh` file exists to aid in the debugging of CNI plugins. It will
likely be turned on in production for a while, but eventually the kubelet on
the node should be set up to use the files in `/usr/cni/bin` instead of
`/usr/shimcni/bin`.
# CoreOS image

The `shim.sh` file exists to aid in the debugging of CNI plugins. It must be
enabled manually.

For example, add a new parameter `--cni-bin-dir=/usr/shimcni/bin` to the `KUBELET_KUBECONFIG_ARGS` in the `10-kubeadm.conf` systemd unit file:
`/etc/systemd/system/kubelet.service.d/10-kubeadm.conf`

```sh
Environment="KUBELET_KUBECONFIG_ARGS=--node-labels=mlab/machine=mlab4,mlab/site=den04,mlab/metro=den,mlab/type=platform --dynamic-config-dir=/var/lib/kubelet/dynamic-configs --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf"
```

Then restart the kubelet:

```sh
systemctl daemon-reload
systemctl restart kubelet
```

0 comments on commit 13f2e98

Please sign in to comment.