Distribute the cluster CA cert to cluster addon pods through

the kubeconfig file. Use the $KUBERNETES_MASTER_NAME from the
kube-env for skydns, because it can't use the service name.
This commit is contained in:
Robert Bailey
2015-05-22 14:31:30 -07:00
parent b68e08f55f
commit 2feb658ed7
4 changed files with 50 additions and 9 deletions

View File

@@ -35,7 +35,6 @@ spec:
# command = "/kube2sky"
- -domain={{ pillar['dns_domain'] }}
- -kubecfg_file=/etc/dns_token/kubeconfig
- -kube_master_url=https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}
volumeMounts:
- mountPath: /etc/dns_token
name: dns-token