This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:ubuntu:kubernetes [2019/10/23 01:52] – lunetikk | linux:ubuntu:kubernetes [2019/10/23 02:35] – lunetikk | ||
---|---|---|---|
Line 23: | Line 23: | ||
Set up the ip configuration, | Set up the ip configuration, | ||
< | < | ||
- | kubeadm init --apiserver-advertise-address=10.0.0.1 --pod-network-cidr=192.168.0.0/ | + | kubeadm init --apiserver-advertise-address=10.0.0.2 --pod-network-cidr=192.168.0.0/ |
- | kubeadm init --pod-network-cidr=192.168.0.0/ | + | #kubeadm init --pod-network-cidr=192.168.0.0/ |
</ | </ | ||
Line 50: | Line 50: | ||
</ | </ | ||
+ | |||
+ | 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 77: | Line 109: | ||
[WARNING IsDockerSystemdCheck]: | [WARNING IsDockerSystemdCheck]: | ||
+ | |||
+ | Reason why | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
* validated version of docker? | * validated version of docker? | ||
Line 82: | Line 120: | ||
[WARNING SystemVerification]: | [WARNING SystemVerification]: | ||
+ | * management ip | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | kubectl edit deployment kubernetes-dashboard -n kube-system NAMESPACE anders!!! | ||