Kube
Setup kube with 1 extra node
Install kube on master node
bash
curl -sfL https://get.k3s.io | sh -curl -sfL https://get.k3s.io | sh -Get config file
bash
k3s kubectl config view --rawk3s kubectl config view --rawCopy config file to local machine '~/.kube/config'
Edit name as needed in the config file
yaml
name: default # < here
contexts:
- context:
cluster: default # < here
user: default
name: default # < here
current-context: default # < herename: default # < here
contexts:
- context:
cluster: default # < here
user: default
name: default # < here
current-context: default # < hereCopy master token
bash
sudo cat /var/lib/rancher/k3s/server/node-tokensudo cat /var/lib/rancher/k3s/server/node-tokenInstall kube on worker node
bash
curl -sfL https://get.k3s.io | K3S_URL=https://{master_ip}5:6443 K3S_TOKEN={token} sh -curl -sfL https://get.k3s.io | K3S_URL=https://{master_ip}5:6443 K3S_TOKEN={token} sh -Install lends and kube control to view dashboard
bash
brew install openlen
brew install kubectl
chmod 644 ~/.kube/configbrew install openlen
brew install kubectl
chmod 644 ~/.kube/configOpen Lens and you should see your cluster