2 #######################################################################################
3 # Copyright ETSI Contributors and Others.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #######################################################################################
19 1. Get the application URL by running these commands:
20 {{- if contains "NodePort" .Values.nbi.service.type }}
21 export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services nbi)
22 export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
23 echo http://$NODE_IP:$NODE_PORT
24 {{- else if contains "LoadBalancer" .Values.nbi.service.type }}
25 NOTE: It may take a few minutes for the LoadBalancer IP to be available.
26 You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w nbi'
27 export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} nbi --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
28 echo http://$SERVICE_IP:{{ .Values.nbi.service.port }}
30 2. Get Grafana credentials for admin user using below command.
31 kubectl -n {{ .Release.Namespace }} get secret grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo