From 193661607cb0cd7b369ae9aa4cc03f8efc2f968e Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Wed, 20 Sep 2023 11:57:32 +0200 Subject: [PATCH] Revert "refactor(cli): Bind k3s api server to local port" This reverts commit ebeedae5029fc7144118a547100e63ba8210456c. 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. --- scripts/helmcharts/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helmcharts/init.sh b/scripts/helmcharts/init.sh index e81e84002..acbd77f29 100644 --- a/scripts/helmcharts/init.sh +++ b/scripts/helmcharts/init.sh @@ -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