diff options
author | wutianwei <wutianwei1@huawei.com> | 2018-02-09 09:20:45 +0800 |
---|---|---|
committer | wutianwei <wutianwei1@huawei.com> | 2018-03-20 10:15:34 +0800 |
commit | edf351b82f6df2b5fd91c02be9f22f7ae4dccc55 (patch) | |
tree | 9fc6b0902dae3c88a4e75e61ceeb0d339815f5be /xci/installer/kubespray/files/k8s-cluster.yml | |
parent | d0c16a80bac11f52bba7cc6e7152ec47aababe1f (diff) |
Access the K8s dashboard and configure the CLI in opnfv host
1. Add the type: NodePort in dashboard service. the default is ClustIP,
which cannot access from outside.
2. Print the url ,user, password for user to access dashboard.
3. configure the kubectl CLI in opnfv host.
Change-Id: I6cb6e6f7547412139ece0c40a85de67a9edce0ef
Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'xci/installer/kubespray/files/k8s-cluster.yml')
-rw-r--r-- | xci/installer/kubespray/files/k8s-cluster.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xci/installer/kubespray/files/k8s-cluster.yml b/xci/installer/kubespray/files/k8s-cluster.yml index aeee573a..20d3091d 100644 --- a/xci/installer/kubespray/files/k8s-cluster.yml +++ b/xci/installer/kubespray/files/k8s-cluster.yml @@ -157,7 +157,7 @@ kube_users: ## It is possible to activate / deactivate selected authentication methods (basic auth, static token auth) #kube_oidc_auth: false -#kube_basic_auth: false +kube_basic_auth: true #kube_token_auth: false @@ -270,9 +270,10 @@ local_volumes_enabled: false persistent_volumes_enabled: false # Make a copy of kubeconfig on the host that runs Ansible in GITDIR/artifacts -# kubeconfig_localhost: false +kubeconfig_localhost: true # Download kubectl onto the host that runs Ansible in GITDIR/artifacts -# kubectl_localhost: false +kubectl_localhost: true +artifacts_dir: "{{ ansible_env.HOME }}" # dnsmasq # dnsmasq_upstream_dns_servers: |