Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export INSTALL_K3S_EXEC="server --no-deploy traefik"
- curl -sfL https://get.k3s.io | sh -
- # config file is here:
- mkdir $HOME/.kube
- cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
- cat /etc/rancher/k3s/k3s.yaml
- # replace your ip. If its 22.22.22.22 then:
- sed 's/127.0.0.1/22.22.22.22/g' /etc/rancher/k3s/k3s.yaml
- # to build in access from other server
- curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--tls-san x.x.x.x" sh -s -
- k3d create -p 6550 --workers 2 -x --tls-san="1.2.3.4" -x --tls-san="4.3.2.1"
- # if no traefik was used then you dont have ingress controller. install nginx
- kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.0/deploy/static/provider/baremetal/deploy.yaml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement