This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:ubuntu:kubernetes [2019/10/23 02:16] – lunetikk | linux:ubuntu:kubernetes [2019/10/23 14:09] (current) – lunetikk | ||
---|---|---|---|
Line 10: | Line 10: | ||
sudo apt-get install -qy kubelet kubeadm kubectl | sudo apt-get install -qy kubelet kubeadm kubectl | ||
apt-mark hold kubelet kubeadm kubectl | apt-mark hold kubelet kubeadm kubectl | ||
- | < | + | </code> |
===== Configuration ===== | ===== Configuration ===== | ||
Line 52: | Line 52: | ||
Execute the ip configuration again, which should now be possible. | Execute the ip configuration again, which should now be possible. | ||
+ | |||
+ | If the initialization was successful, create a new user. | ||
+ | < | ||
+ | useradd -s /bin/bash -m kubernetes | ||
+ | su - kubernetes | ||
+ | mkdir -p $HOME/.kube | ||
+ | sudo cp -i / | ||
+ | sudo chown $(id -u):$(id -g) $HOME/ | ||
+ | </ | ||
+ | |||
+ | Next you need to deploy a pod network.\\ | ||
+ | Find some here: https:// | ||
+ | |||
+ | I use calico, which can be deployed via | ||
+ | < | ||
+ | kubectl apply -f https:// | ||
+ | </ | ||
+ | |||
+ | ==== Dashboard ==== | ||
+ | |||
+ | Find the dashboard for your kubernetes version here:\\ | ||
+ | [[https:// | ||
+ | |||
+ | You can see your version via | ||
+ | < | ||
+ | kubeadm version | ||
+ | </ | ||
+ | |||
+ | |||
===== Commands ===== | ===== Commands ===== | ||
^ Command | ^ Command | ||
- | | | + | | |
+ | | kubeadm reset | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
Line 97: | Line 127: | ||
+ | |||
+ | kubectl edit deployment kubernetes-dashboard -n kube-system NAMESPACE anders!!! | ||
+ | kein ttl im dashboard | ||