From b1f84c5ece31c5bd8f78b71775b2090fce4663f6 Mon Sep 17 00:00:00 2001 From: MCamp859 Date: Tue, 30 Oct 2018 14:53:01 -0400 Subject: [PATCH] =?UTF-8?q?Added=20details=20to=20=E2=80=9CInstall=20pod?= =?UTF-8?q?=20network=20add-on=E2=80=9D=20section.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MCamp859 --- source/clear-linux/tutorials/kubernetes.rst | 31 ++++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/source/clear-linux/tutorials/kubernetes.rst b/source/clear-linux/tutorials/kubernetes.rst index ca53bc4f..6e73d3a7 100644 --- a/source/clear-linux/tutorials/kubernetes.rst +++ b/source/clear-linux/tutorials/kubernetes.rst @@ -203,13 +203,36 @@ communicate. Check whether or not your add-on requires special flags when you initialize the master control plane. For example, if you choose the `flannel` add-on, -then you must add :command:`--pod-network-cidr 10.244.0.0/16` to the `kubeadm -init` command. +then you must add the following to the `kubeadm init` command: -Similarly, if you choose the `weave` add-on, then you must change the CNI -add-on directory parameter because the weave plugin installs itself in the +.. code-block:: bash + + --pod-network-cidr 10.244.0.0/16 + +Similarly, if you choose the `weave` add-on, then you must make the following +changes because the weave plugin installs itself in the :file:`/opt/cni/bin` directory. +If you are using Docker and `weave`, edit the :file:`kubeadm.conf` file to +add: + +.. code-block:: bash + + Environment="KUBELET_NETWORK_ARGS=--network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin" + +If you are using CRI-O and `weave`, edit the :file:`etc/crio/crio.conf` file +to change `plugin_dir` from: + +.. code-block:: bash + + plugin_dir = "/usr/libexec/cni/" + +to: + +.. code-block:: bash + + plugin_dir = "/opt/cni/bin" + Use your cluster ****************