From d9f81a190049afa377cac5f24c715abfcaedeb5f Mon Sep 17 00:00:00 2001 From: tehNooB <125163838+JamesTurland@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:21:42 +0000 Subject: [PATCH] Update k3s.sh --- Kubernetes/Kubernetes-Lite/k3s.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kubernetes/Kubernetes-Lite/k3s.sh b/Kubernetes/Kubernetes-Lite/k3s.sh index fc99626..3f5fd3e 100644 --- a/Kubernetes/Kubernetes-Lite/k3s.sh +++ b/Kubernetes/Kubernetes-Lite/k3s.sh @@ -98,7 +98,7 @@ else fi # Create SSH Config file to ignore checking (don't use in production!) -echo "StrictHostKeyChecking no" > ~/.ssh/config +sed -i '1s/^/StrictHostKeyChecking no\n/' ~/.ssh/config #add ssh keys for all nodes for node in "${all[@]}"; do @@ -257,4 +257,4 @@ kubectl get pods \ kubectl get nodes kubectl get svc -n longhorn-system -echo -e " \033[32;5mHappy Kubing! Access Longhorn through Rancher UI\033[0m" \ No newline at end of file +echo -e " \033[32;5mHappy Kubing! Access Longhorn through Rancher UI\033[0m"