diff options
author | Ritu Sood <ritu.sood@intel.com> | 2021-05-10 21:25:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-05-10 21:25:48 +0000 |
commit | 59a703bb8c443c2b7d6b7cdab9e8448b944e5cf2 (patch) | |
tree | 3e208cf9740d90f6e8a0bdb8a70b11707a8c9b43 /kud/hosting_providers/vagrant | |
parent | 3f5cacd8a183aa9feee9fb0cdc6231215c19c206 (diff) | |
parent | cc302424c0b129267235157640be28b45597fef2 (diff) |
Merge "EMCO deploy of addons"
Diffstat (limited to 'kud/hosting_providers/vagrant')
-rwxr-xr-x | kud/hosting_providers/vagrant/installer.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh index 9be77a1f..bc2e91ae 100755 --- a/kud/hosting_providers/vagrant/installer.sh +++ b/kud/hosting_providers/vagrant/installer.sh @@ -213,10 +213,10 @@ function _print_kubernetes_info { KUBE_EDITOR="sed -i \"s|type\: ClusterIP|type\: NodePort|g\"" kubectl -n kube-system edit service kubernetes-dashboard KUBE_EDITOR="sed -i \"s|nodePort\: .*|nodePort\: $node_port|g\"" kubectl -n kube-system edit service kubernetes-dashboard - master_ip=$(kubectl cluster-info | grep "Kubernetes master" | awk -F ":" '{print $2}') + master_ip=$(kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}' | awk -F '[:/]' '{print $4}') printf "Kubernetes Info\n===============\n" > $k8s_info_file - echo "Dashboard URL: https:$master_ip:$node_port" >> $k8s_info_file + echo "Dashboard URL: https://$master_ip:$node_port" >> $k8s_info_file echo "Admin user: kube" >> $k8s_info_file echo "Admin password: secret" >> $k8s_info_file } |