From ed884e5da3e606219eb1ef923f6272a7318d4c64 Mon Sep 17 00:00:00 2001 From: Yuri Kudryavtsev Date: Wed, 14 Jul 2021 09:29:56 +0300 Subject: [PATCH 1/2] added insecure-tls-verify option to kubeconfig --- templates/linux-mac-common.html | 3 ++- templates/windows-tab.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/linux-mac-common.html b/templates/linux-mac-common.html index e4bd825e..bb0329cd 100644 --- a/templates/linux-mac-common.html +++ b/templates/linux-mac-common.html @@ -71,7 +71,8 @@

Run configuration commands

{{- if or .K8sCaPem .K8sCaURI }} --certificate-authority=${HOME}/.kube/certs/{{ .ClusterName}}/k8s-ca.crt \ {{- end }} - --server={{ .K8sMasterURI }} + --server={{ .K8sMasterURI }} \ + --insecure-skip-tls-verify=true
diff --git a/templates/windows-tab.html b/templates/windows-tab.html index a1e2b003..5a98cca2 100644 --- a/templates/windows-tab.html +++ b/templates/windows-tab.html @@ -87,7 +87,8 @@

Run configuration commands

kubectl config set-cluster {{ .ClusterName }}
     {{- if or .K8sCaPem .K8sCaURI }} --certificate-authority=${HOME}/.kube/certs/{{ .ClusterName}}/k8s-ca.crt
-    {{- end }} --server={{ .K8sMasterURI }}
+ {{- end }} --server={{ .K8sMasterURI }} \ + --insecure-skip-tls-verify=true
From f55c7f0c823d1c4fcfb97c53030f837ad6384654 Mon Sep 17 00:00:00 2001 From: Yuri Kudryavtsev Date: Wed, 14 Jul 2021 10:15:00 +0300 Subject: [PATCH 2/2] fix --- templates/linux-mac-common.html | 4 ++-- templates/windows-tab.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/linux-mac-common.html b/templates/linux-mac-common.html index bb0329cd..d09719e6 100644 --- a/templates/linux-mac-common.html +++ b/templates/linux-mac-common.html @@ -71,8 +71,8 @@

Run configuration commands

{{- if or .K8sCaPem .K8sCaURI }} --certificate-authority=${HOME}/.kube/certs/{{ .ClusterName}}/k8s-ca.crt \ {{- end }} - --server={{ .K8sMasterURI }} \ - --insecure-skip-tls-verify=true + --server={{ .K8sMasterURI }} \ + --insecure-skip-tls-verify=true
diff --git a/templates/windows-tab.html b/templates/windows-tab.html index 5a98cca2..4a197d30 100644 --- a/templates/windows-tab.html +++ b/templates/windows-tab.html @@ -87,8 +87,8 @@

Run configuration commands

kubectl config set-cluster {{ .ClusterName }}
     {{- if or .K8sCaPem .K8sCaURI }} --certificate-authority=${HOME}/.kube/certs/{{ .ClusterName}}/k8s-ca.crt
-    {{- end }} --server={{ .K8sMasterURI }}
\ - --insecure-skip-tls-verify=true + {{- end }} --server={{ .K8sMasterURI }} \ + --insecure-skip-tls-verify=true