chore(cli): pin dns
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
d9fe534223
commit
1df4a92901
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ usr=$(whoami)
|
|||
# Installing k3s
|
||||
function install_k8s() {
|
||||
echo "nameserver 1.1.1.1" | sudo tee /etc/k3s-resolv.conf
|
||||
curl -sL https://get.k3s.io | sudo K3S_KUBECONFIG_MODE="644" INSTALL_K3S_VERSION='v1.31.5+k3s1' INSTALL_K3S_EXEC="--disable=traefik server --resolv-conf=/etc/k3s-resolv.conf" sh -
|
||||
curl -sL https://get.k3s.io | sudo K3S_KUBECONFIG_MODE="644" K3S_RESOLV_CONF="/etc/k3s-resolv.conf" INSTALL_K3S_VERSION='v1.31.5+k3s1' INSTALL_K3S_EXEC="--disable=traefik" sh -
|
||||
[[ -d ~/.kube ]] || mkdir ~/.kube
|
||||
sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
|
||||
sudo chmod 0644 ~/.kube/config
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue