diff options
author | Victor Morales <victor.morales@intel.com> | 2018-10-05 23:11:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-10-05 23:11:52 +0000 |
commit | 36171f55b9171bb4d36d36c12eb6046ba82fb02a (patch) | |
tree | dc7ed4f1c548647f7958554dc9a533e6eee6c116 /vagrant | |
parent | 416489d0f6cbcc2ddc2770ee99554ade83840c8e (diff) | |
parent | 2cae592aefec883743bd2df7b58127883c8eff45 (diff) |
Merge "Set 30080 port for Kubernetes Dashboard"
Diffstat (limited to 'vagrant')
-rwxr-xr-x | vagrant/installer.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vagrant/installer.sh b/vagrant/installer.sh index 65c649e1..30683cb0 100755 --- a/vagrant/installer.sh +++ b/vagrant/installer.sh @@ -195,10 +195,11 @@ function _print_kubernetes_info { return fi # Expose Dashboard using NodePort + node_port=30080 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}') - node_port=$(kubectl get service -n kube-system | grep kubernetes-dashboard | awk '{print $5}' |awk -F "[:/]" '{print $2}') printf "Kubernetes Info\n===============\n" > $k8s_info_file echo "Dashboard URL: https:$master_ip:$node_port" >> $k8s_info_file |