Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request kubernetes-retired#606 from danielfm/tls-booststra…
Browse files Browse the repository at this point in the history
…p-fix

Fix certs path when TLS bootstrapping is enabled
  • Loading branch information
mumoshu committed Apr 28, 2017
2 parents 60c64a1 + 430f69f commit a056b25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/controlplane/config/templates/cloud-config-worker
Original file line number Diff line number Diff line change
Expand Up @@ -818,8 +818,13 @@ write_files:
"policy": {
"type": "k8s",
"k8s_api_root": "{{.APIEndpointURL}}/api/v1/",
{{- if .Experimental.TLSBootstrap.Enabled }}
"k8s_client_key": "/etc/kubernetes/ssl/kubelet-client.key",
"k8s_client_certificate": "/etc/kubernetes/ssl/kubelet-client.crt",
{{- else }}
"k8s_client_key": "/etc/kubernetes/ssl/worker-key.pem",
"k8s_client_certificate": "/etc/kubernetes/ssl/worker.pem",
{{- end }}
"k8s_certificate_authority": "/etc/kubernetes/ssl/ca.pem"
}
}
Expand Down

0 comments on commit a056b25

Please sign in to comment.