Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Private clusters iteration 2: change the server for the cluster kubeconfig #2354

Merged
merged 10 commits into from
Feb 28, 2018
Prev Previous commit
Next Next commit
revert change in custom data kubeconfig
CecileRobertMichon committed Feb 28, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 7f388067a30958d32297eb5130500ed72987a6bb
6 changes: 1 addition & 5 deletions parts/k8s/kubernetesmastercustomdata.yml
Original file line number Diff line number Diff line change
@@ -73,11 +73,7 @@ write_files:
- name: localcluster
cluster:
certificate-authority: /etc/kubernetes/certs/ca.crt
{{- if IsPrivateCluster}}
server: {{WrapAsVariable "kubeconfigServer"}}
{{- else}}
server: {{WrapAsVerbatim "concat('https://', variables('masterPrivateIpAddrs')[copyIndex(variables('masterOffset'))], ':443')"}}
{{end}}
server: {{WrapAsVerbatim "concat('https://', variables('masterPrivateIpAddrs')[copyIndex(variables('masterOffset'))], ':443')"}}
users:
- name: client
user: