drpanwe icon

Untitled

drpanwe | PRO | 08/14/18 12:23:04 AM UTC | 0 ⭐ | 457 👁️ | Never ⏰ | []
text |

1.79 KB

|

None

|

0 👍

/

0 👎

zypper ar -f https://download.opensuse.org/repositories/devel:/kubic/openSUSE_Tumbleweed/devel:kubic.repo
zypper ref
transactional-update pkg install -f kubernetes-kubeadm
reboot
 # Fix https://github.com/kubernetes/kubernetes/issues/56850
cat /etc/sysconfig/kubelet
KUBELET_EXTRA_ARGS="--runtime-cgroups=/systemd/system.slice --kubelet-cgroups=/systemd/system.slice"
 # Start kubeadm
kubeadm init
or
kubeadm init --node-name=linux-uwkw.fritz.box # Use the FQDN hostname
 # CoreDNS is now not running (it requires a plugin)
 # Install network plugin (Weavenet)
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
 # CoreDNS STILL NOT RUNNING ...
 # We miss CNI binaries?
# From Kubelet: Error while adding to cni lo network: failed to find plugin "loopback" in path [/opt/cni/bin]
# cat /var/lib/kubelet/kubeadm-flags.env
-> KUBELET_KUBEADM_ARGS=--cgroup-driver=cgroupfs --cni-bin-dir=/opt/cni/bin --cni-conf-dir=/etc/cni/net.d --network-plugin=cni
cd /opt/cni/bin
curl -L -O https://github.com/containernetworking/plugins/releases/download/v0.7.1/cni-plugins-amd64-v0.7.1.tgz
tar -xf cni-plugins-amd64-v0.7.1.tgz
 ** NOTICE**
# In case you have installed Flannel, you need to start kubeadm like this:
kubeadm init --pod-network-cidr=10.244.0.0/16
 # instead of Weavenet, then you need more CNI binary rather than just loopback.
# These are: (bridge, flannel, host-local, loopback, portmap).
# All of these are included in the compressed *.tgz archive.
  # Check the coredns is now running
  # Deploy Dashboard
kubectl -n kube-system edit service kubernetes-dashboard
Change type: ClusterIP to type: NodePort and save file. If it's already changed go to next step.
Next we need to check port on which Dashboard was exposed. (See TCP Ports)

Comments