<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.williams-net.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Spacex</id>
	<title>WilliamsNet Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.williams-net.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Spacex"/>
	<link rel="alternate" type="text/html" href="https://wiki.williams-net.org/wiki/Special:Contributions/Spacex"/>
	<updated>2026-06-01T02:34:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://wiki.williams-net.org/index.php?title=Kubernetes_Controller&amp;diff=143</id>
		<title>Kubernetes Controller</title>
		<link rel="alternate" type="text/html" href="https://wiki.williams-net.org/index.php?title=Kubernetes_Controller&amp;diff=143"/>
		<updated>2019-12-25T15:57:04Z</updated>

		<summary type="html">&lt;p&gt;Spacex: /* Install the master */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The kubernetes controller install is based on the prerequisites in the [[Kubernetes Cluster Installation]] page.&lt;br /&gt;
__NOTOC__&lt;br /&gt;
== Install the kubernetes repo ==&lt;br /&gt;
&lt;br /&gt;
===CentOS 7 ===&lt;br /&gt;
 cat &amp;lt;&amp;lt;EOF &amp;gt; /etc/yum.repos.d/kubernetes.repo&lt;br /&gt;
 [kubernetes]&lt;br /&gt;
 name=Kubernetes&lt;br /&gt;
 baseurl=&amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 enabled=1&lt;br /&gt;
 gpgcheck=1&lt;br /&gt;
 repo_gpgcheck=1&lt;br /&gt;
 gpgkey=&amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
 exclude=kube*&lt;br /&gt;
 EOF &lt;br /&gt;
&#039;&#039;&#039;... or just copy it from an already installed kubernetes node ...&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Install the pieces of the kubeadm installation on all nodes&lt;br /&gt;
&lt;br /&gt;
 yum install -y kubelet kubectl kubeadm --disableexcludes=kubernetes&lt;br /&gt;
&lt;br /&gt;
=== Debian 10 ===&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get install -y apt-transport-https curl&lt;br /&gt;
 curl -s &amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/apt/doc/apt-key.gpg&amp;lt;/nowiki&amp;gt; | apt-key add -&lt;br /&gt;
 cat &amp;lt;&amp;lt;EOF &amp;gt;/etc/apt/sources.list.d/kubernetes.list&lt;br /&gt;
 deb &amp;lt;nowiki&amp;gt;https://apt.kubernetes.io/&amp;lt;/nowiki&amp;gt; kubernetes-xenial main&lt;br /&gt;
 EOF&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get install -y kubelet kubeadm kubectl&lt;br /&gt;
 apt-mark hold kubelet kubeadm kubectl&lt;br /&gt;
&lt;br /&gt;
== Install the master ==&lt;br /&gt;
&lt;br /&gt;
Make sure that /etc/sysconfig/kubelet (or /etc/default/kubelet for Debian) has the following line:&lt;br /&gt;
&lt;br /&gt;
 KUBELET_EXTRA_ARGS=--authentication-token-webhook --fail-swap-on=false --feature-gates=DevicePlugins=true --kubelet-cgroups=/systemd/system.slice&lt;br /&gt;
 systemctl start kubelet&lt;br /&gt;
 systemctl enable kubelet&lt;br /&gt;
&lt;br /&gt;
Initialize master with parameter to support flannel network (as root)&lt;br /&gt;
&lt;br /&gt;
 kubeadm init --pod-network-cidr=10.244.0.0/16 --token-ttl 0  --ignore-preflight-errors Swap --node-name `hostname -s`&lt;br /&gt;
&lt;br /&gt;
If you want the master to not use the default network interface for inter-node communication, specify the following parameter on the kubeadm init command (per [https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/ this page]):&lt;br /&gt;
 --apiserver-advertise-address A.B.C.D&lt;br /&gt;
&lt;br /&gt;
== Initialize authentication for kubectl ==&lt;br /&gt;
&lt;br /&gt;
 mkdir -p $HOME/.kube&lt;br /&gt;
 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config&lt;br /&gt;
 sudo chown $(id -u):$(id -g) $HOME/.kube/config &lt;br /&gt;
&lt;br /&gt;
== Install flannel pod network ==&lt;br /&gt;
&lt;br /&gt;
The Flannel pod networking can be installed directly from the repository using this command:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml&lt;br /&gt;
&lt;br /&gt;
On Kubernetes v1.16+, if there are issues, try this specific version:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/2140ac876ef134e0ed5af15c65e414cf26827915/Documentation/kube-flannel.yml&lt;br /&gt;
&lt;br /&gt;
By default, flannel uses the primary network interface (eth0 on 10.0.0.0/24); but if you want to push the traffic onto the secondary interfaces (such as for the development cluster), download the YAML manifest and add one parameter to the argument list on/about line 190 (in the spec -&amp;gt; template -&amp;gt; spec -&amp;gt; containers [where name == &#039;kube-flannel-ds-amd64&#039;] -&amp;gt; args).  The result should look like this:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 args:&lt;br /&gt;
 - --ip-masq&lt;br /&gt;
 - --kube-subnet-mgr&lt;br /&gt;
 - --iface=eth1&lt;br /&gt;
 resources:&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
substitute the secondary interface name for &#039;eth1&#039; if it is different.  Then apply the manifest:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f kube-flannel.yaml&lt;br /&gt;
&lt;br /&gt;
Other configuration options can be passed to flannel per [https://github.com/coreos/flannel/blob/master/Documentation/configuration.md this page]&lt;br /&gt;
&lt;br /&gt;
== Enable pods to run on master node if desired ==&lt;br /&gt;
&lt;br /&gt;
 kubectl taint nodes --all node-role.kubernetes.io/master-&lt;/div&gt;</summary>
		<author><name>Spacex</name></author>
	</entry>
	<entry>
		<id>https://wiki.williams-net.org/index.php?title=Kubernetes_Controller&amp;diff=142</id>
		<title>Kubernetes Controller</title>
		<link rel="alternate" type="text/html" href="https://wiki.williams-net.org/index.php?title=Kubernetes_Controller&amp;diff=142"/>
		<updated>2019-12-25T15:56:36Z</updated>

		<summary type="html">&lt;p&gt;Spacex: /* Install flannel pod network */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The kubernetes controller install is based on the prerequisites in the [[Kubernetes Cluster Installation]] page.&lt;br /&gt;
__NOTOC__&lt;br /&gt;
== Install the kubernetes repo ==&lt;br /&gt;
&lt;br /&gt;
===CentOS 7 ===&lt;br /&gt;
 cat &amp;lt;&amp;lt;EOF &amp;gt; /etc/yum.repos.d/kubernetes.repo&lt;br /&gt;
 [kubernetes]&lt;br /&gt;
 name=Kubernetes&lt;br /&gt;
 baseurl=&amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 enabled=1&lt;br /&gt;
 gpgcheck=1&lt;br /&gt;
 repo_gpgcheck=1&lt;br /&gt;
 gpgkey=&amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
 exclude=kube*&lt;br /&gt;
 EOF &lt;br /&gt;
&#039;&#039;&#039;... or just copy it from an already installed kubernetes node ...&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Install the pieces of the kubeadm installation on all nodes&lt;br /&gt;
&lt;br /&gt;
 yum install -y kubelet kubectl kubeadm --disableexcludes=kubernetes&lt;br /&gt;
&lt;br /&gt;
=== Debian 10 ===&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get install -y apt-transport-https curl&lt;br /&gt;
 curl -s &amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/apt/doc/apt-key.gpg&amp;lt;/nowiki&amp;gt; | apt-key add -&lt;br /&gt;
 cat &amp;lt;&amp;lt;EOF &amp;gt;/etc/apt/sources.list.d/kubernetes.list&lt;br /&gt;
 deb &amp;lt;nowiki&amp;gt;https://apt.kubernetes.io/&amp;lt;/nowiki&amp;gt; kubernetes-xenial main&lt;br /&gt;
 EOF&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get install -y kubelet kubeadm kubectl&lt;br /&gt;
 apt-mark hold kubelet kubeadm kubectl&lt;br /&gt;
&lt;br /&gt;
== Install the master ==&lt;br /&gt;
&lt;br /&gt;
Make sure that /etc/sysconfig/kubelet (or /etc/default/kubelet for Debian) has the following line:&lt;br /&gt;
&lt;br /&gt;
 KUBELET_EXTRA_ARGS=--authentication-token-webhook --fail-swap-on=false --feature-gates=DevicePlugins=true --kubelet-cgroups=/systemd/system.slice&lt;br /&gt;
 systemctl start kubelet&lt;br /&gt;
 systemctl enable kubelet&lt;br /&gt;
&lt;br /&gt;
Initialize master with parameter to support flannel network (as root)&lt;br /&gt;
&lt;br /&gt;
 kubeadm init --pod-network-cidr=10.244.0.0/16 --token-ttl 0  --ignore-preflight-errors Swap --node-name `hostname -s`&lt;br /&gt;
&lt;br /&gt;
If you want the master to not use the default network interface for inter-node communication, specify the following parameter on the kubeadm init command (per https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/):&lt;br /&gt;
 --apiserver-advertise-address A.B.C.D&lt;br /&gt;
&lt;br /&gt;
== Initialize authentication for kubectl ==&lt;br /&gt;
&lt;br /&gt;
 mkdir -p $HOME/.kube&lt;br /&gt;
 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config&lt;br /&gt;
 sudo chown $(id -u):$(id -g) $HOME/.kube/config &lt;br /&gt;
&lt;br /&gt;
== Install flannel pod network ==&lt;br /&gt;
&lt;br /&gt;
The Flannel pod networking can be installed directly from the repository using this command:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml&lt;br /&gt;
&lt;br /&gt;
On Kubernetes v1.16+, if there are issues, try this specific version:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/2140ac876ef134e0ed5af15c65e414cf26827915/Documentation/kube-flannel.yml&lt;br /&gt;
&lt;br /&gt;
By default, flannel uses the primary network interface (eth0 on 10.0.0.0/24); but if you want to push the traffic onto the secondary interfaces (such as for the development cluster), download the YAML manifest and add one parameter to the argument list on/about line 190 (in the spec -&amp;gt; template -&amp;gt; spec -&amp;gt; containers [where name == &#039;kube-flannel-ds-amd64&#039;] -&amp;gt; args).  The result should look like this:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 args:&lt;br /&gt;
 - --ip-masq&lt;br /&gt;
 - --kube-subnet-mgr&lt;br /&gt;
 - --iface=eth1&lt;br /&gt;
 resources:&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
substitute the secondary interface name for &#039;eth1&#039; if it is different.  Then apply the manifest:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f kube-flannel.yaml&lt;br /&gt;
&lt;br /&gt;
Other configuration options can be passed to flannel per [https://github.com/coreos/flannel/blob/master/Documentation/configuration.md this page]&lt;br /&gt;
&lt;br /&gt;
== Enable pods to run on master node if desired ==&lt;br /&gt;
&lt;br /&gt;
 kubectl taint nodes --all node-role.kubernetes.io/master-&lt;/div&gt;</summary>
		<author><name>Spacex</name></author>
	</entry>
	<entry>
		<id>https://wiki.williams-net.org/index.php?title=Kubernetes_Controller&amp;diff=141</id>
		<title>Kubernetes Controller</title>
		<link rel="alternate" type="text/html" href="https://wiki.williams-net.org/index.php?title=Kubernetes_Controller&amp;diff=141"/>
		<updated>2019-12-25T15:54:12Z</updated>

		<summary type="html">&lt;p&gt;Spacex: /* Install flannel pod network */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The kubernetes controller install is based on the prerequisites in the [[Kubernetes Cluster Installation]] page.&lt;br /&gt;
__NOTOC__&lt;br /&gt;
== Install the kubernetes repo ==&lt;br /&gt;
&lt;br /&gt;
===CentOS 7 ===&lt;br /&gt;
 cat &amp;lt;&amp;lt;EOF &amp;gt; /etc/yum.repos.d/kubernetes.repo&lt;br /&gt;
 [kubernetes]&lt;br /&gt;
 name=Kubernetes&lt;br /&gt;
 baseurl=&amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 enabled=1&lt;br /&gt;
 gpgcheck=1&lt;br /&gt;
 repo_gpgcheck=1&lt;br /&gt;
 gpgkey=&amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
 exclude=kube*&lt;br /&gt;
 EOF &lt;br /&gt;
&#039;&#039;&#039;... or just copy it from an already installed kubernetes node ...&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Install the pieces of the kubeadm installation on all nodes&lt;br /&gt;
&lt;br /&gt;
 yum install -y kubelet kubectl kubeadm --disableexcludes=kubernetes&lt;br /&gt;
&lt;br /&gt;
=== Debian 10 ===&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get install -y apt-transport-https curl&lt;br /&gt;
 curl -s &amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/apt/doc/apt-key.gpg&amp;lt;/nowiki&amp;gt; | apt-key add -&lt;br /&gt;
 cat &amp;lt;&amp;lt;EOF &amp;gt;/etc/apt/sources.list.d/kubernetes.list&lt;br /&gt;
 deb &amp;lt;nowiki&amp;gt;https://apt.kubernetes.io/&amp;lt;/nowiki&amp;gt; kubernetes-xenial main&lt;br /&gt;
 EOF&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get install -y kubelet kubeadm kubectl&lt;br /&gt;
 apt-mark hold kubelet kubeadm kubectl&lt;br /&gt;
&lt;br /&gt;
== Install the master ==&lt;br /&gt;
&lt;br /&gt;
Make sure that /etc/sysconfig/kubelet (or /etc/default/kubelet for Debian) has the following line:&lt;br /&gt;
&lt;br /&gt;
 KUBELET_EXTRA_ARGS=--authentication-token-webhook --fail-swap-on=false --feature-gates=DevicePlugins=true --kubelet-cgroups=/systemd/system.slice&lt;br /&gt;
 systemctl start kubelet&lt;br /&gt;
 systemctl enable kubelet&lt;br /&gt;
&lt;br /&gt;
Initialize master with parameter to support flannel network (as root)&lt;br /&gt;
&lt;br /&gt;
 kubeadm init --pod-network-cidr=10.244.0.0/16 --token-ttl 0  --ignore-preflight-errors Swap --node-name `hostname -s`&lt;br /&gt;
&lt;br /&gt;
If you want the master to not use the default network interface for inter-node communication, specify the following parameter on the kubeadm init command (per https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/):&lt;br /&gt;
 --apiserver-advertise-address A.B.C.D&lt;br /&gt;
&lt;br /&gt;
== Initialize authentication for kubectl ==&lt;br /&gt;
&lt;br /&gt;
 mkdir -p $HOME/.kube&lt;br /&gt;
 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config&lt;br /&gt;
 sudo chown $(id -u):$(id -g) $HOME/.kube/config &lt;br /&gt;
&lt;br /&gt;
== Install flannel pod network ==&lt;br /&gt;
&lt;br /&gt;
The Flannel pod networking can be installed directly from the repository using this command:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml&lt;br /&gt;
&lt;br /&gt;
On Kubernetes v1.16+, if there are issues, try this specific version:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/2140ac876ef134e0ed5af15c65e414cf26827915/Documentation/kube-flannel.yml&lt;br /&gt;
&lt;br /&gt;
By default, flannel uses the primary network interface (eth0 on 10.0.0.0/24); but if you want to push the traffic onto the secondary interfaces (such as for the development cluster), download the YAML manifest and add one parameter to the argument list on/about line 190 (in the spec -&amp;gt; template -&amp;gt; spec -&amp;gt; containers [where name == &#039;kube-flannel-ds-amd64&#039;] -&amp;gt; args).  The result should look like this:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 args:&lt;br /&gt;
 - --ip-masq&lt;br /&gt;
 - --kube-subnet-mgr&lt;br /&gt;
 - --iface=eth1&lt;br /&gt;
 resources:&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
substitute the secondary interface name for &#039;eth1&#039; if it is different.  Then apply the manifest:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f kube-flannel.yaml&lt;br /&gt;
&lt;br /&gt;
== Enable pods to run on master node if desired ==&lt;br /&gt;
&lt;br /&gt;
 kubectl taint nodes --all node-role.kubernetes.io/master-&lt;/div&gt;</summary>
		<author><name>Spacex</name></author>
	</entry>
	<entry>
		<id>https://wiki.williams-net.org/index.php?title=Kubernetes_Controller&amp;diff=140</id>
		<title>Kubernetes Controller</title>
		<link rel="alternate" type="text/html" href="https://wiki.williams-net.org/index.php?title=Kubernetes_Controller&amp;diff=140"/>
		<updated>2019-12-25T15:52:01Z</updated>

		<summary type="html">&lt;p&gt;Spacex: /* Install the master */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The kubernetes controller install is based on the prerequisites in the [[Kubernetes Cluster Installation]] page.&lt;br /&gt;
__NOTOC__&lt;br /&gt;
== Install the kubernetes repo ==&lt;br /&gt;
&lt;br /&gt;
===CentOS 7 ===&lt;br /&gt;
 cat &amp;lt;&amp;lt;EOF &amp;gt; /etc/yum.repos.d/kubernetes.repo&lt;br /&gt;
 [kubernetes]&lt;br /&gt;
 name=Kubernetes&lt;br /&gt;
 baseurl=&amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 enabled=1&lt;br /&gt;
 gpgcheck=1&lt;br /&gt;
 repo_gpgcheck=1&lt;br /&gt;
 gpgkey=&amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
 exclude=kube*&lt;br /&gt;
 EOF &lt;br /&gt;
&#039;&#039;&#039;... or just copy it from an already installed kubernetes node ...&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Install the pieces of the kubeadm installation on all nodes&lt;br /&gt;
&lt;br /&gt;
 yum install -y kubelet kubectl kubeadm --disableexcludes=kubernetes&lt;br /&gt;
&lt;br /&gt;
=== Debian 10 ===&lt;br /&gt;
 apt-get update &amp;amp;&amp;amp; apt-get install -y apt-transport-https curl&lt;br /&gt;
 curl -s &amp;lt;nowiki&amp;gt;https://packages.cloud.google.com/apt/doc/apt-key.gpg&amp;lt;/nowiki&amp;gt; | apt-key add -&lt;br /&gt;
 cat &amp;lt;&amp;lt;EOF &amp;gt;/etc/apt/sources.list.d/kubernetes.list&lt;br /&gt;
 deb &amp;lt;nowiki&amp;gt;https://apt.kubernetes.io/&amp;lt;/nowiki&amp;gt; kubernetes-xenial main&lt;br /&gt;
 EOF&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get install -y kubelet kubeadm kubectl&lt;br /&gt;
 apt-mark hold kubelet kubeadm kubectl&lt;br /&gt;
&lt;br /&gt;
== Install the master ==&lt;br /&gt;
&lt;br /&gt;
Make sure that /etc/sysconfig/kubelet (or /etc/default/kubelet for Debian) has the following line:&lt;br /&gt;
&lt;br /&gt;
 KUBELET_EXTRA_ARGS=--authentication-token-webhook --fail-swap-on=false --feature-gates=DevicePlugins=true --kubelet-cgroups=/systemd/system.slice&lt;br /&gt;
 systemctl start kubelet&lt;br /&gt;
 systemctl enable kubelet&lt;br /&gt;
&lt;br /&gt;
Initialize master with parameter to support flannel network (as root)&lt;br /&gt;
&lt;br /&gt;
 kubeadm init --pod-network-cidr=10.244.0.0/16 --token-ttl 0  --ignore-preflight-errors Swap --node-name `hostname -s`&lt;br /&gt;
&lt;br /&gt;
If you want the master to not use the default network interface for inter-node communication, specify the following parameter on the kubeadm init command (per https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/):&lt;br /&gt;
 --apiserver-advertise-address A.B.C.D&lt;br /&gt;
&lt;br /&gt;
== Initialize authentication for kubectl ==&lt;br /&gt;
&lt;br /&gt;
 mkdir -p $HOME/.kube&lt;br /&gt;
 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config&lt;br /&gt;
 sudo chown $(id -u):$(id -g) $HOME/.kube/config &lt;br /&gt;
&lt;br /&gt;
== Install flannel pod network ==&lt;br /&gt;
&lt;br /&gt;
The Flannel pod networking can be installed directly from the repository using this command:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml&lt;br /&gt;
&lt;br /&gt;
On Kubernetes v1.16+, if there are issues, try this specific version:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/2140ac876ef134e0ed5af15c65e414cf26827915/Documentation/kube-flannel.yml&lt;br /&gt;
&lt;br /&gt;
By default, flannel uses the primary network interface (eth0 on 10.0.0.0/24); but if you want to push the traffic onto the secondary interfaces (such as for the development cluster), download the YAML manifest and add one parameter to the argument list on/about line 190.  The result should look like this:&lt;br /&gt;
&lt;br /&gt;
 ...&lt;br /&gt;
 args:&lt;br /&gt;
 - --ip-masq&lt;br /&gt;
 - --kube-subnet-mgr&lt;br /&gt;
 - --iface=eth1&lt;br /&gt;
 resources:&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
substitute the secondary interface name for &#039;eth1&#039; if it is different.  Then apply the manifest:&lt;br /&gt;
&lt;br /&gt;
 kubectl apply -f kube-flannel.yaml&lt;br /&gt;
&lt;br /&gt;
== Enable pods to run on master node if desired ==&lt;br /&gt;
&lt;br /&gt;
 kubectl taint nodes --all node-role.kubernetes.io/master-&lt;/div&gt;</summary>
		<author><name>Spacex</name></author>
	</entry>
</feed>