Revert "refactor(cli): Bind k3s api server to local port"

This reverts commit ebeedae502.
Sometimes proxy connection to the node fails. The ideal way to secure is
to have a security group only allowing access to the http/https ip to
the node.
This commit is contained in:
rjshrjndrn 2023-09-20 11:57:32 +02:00
parent 45f28ec33b
commit 193661607c

View file

@ -26,7 +26,7 @@ usr=$(whoami)
# Installing k3s
function install_k8s() {
curl -sL https://get.k3s.io | sudo K3S_KUBECONFIG_MODE="644" INSTALL_K3S_VERSION='v1.25.6+k3s1' INSTALL_K3S_EXEC="--disable=traefik --bind-address=127.0.0.1" sh -
curl -sL https://get.k3s.io | sudo K3S_KUBECONFIG_MODE="644" INSTALL_K3S_VERSION='v1.25.6+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