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"