Fix installation of Kubernetes metrics server by updating the URL
[osm/devops.git] / installers / helm / osm / templates / NOTES.txt
1 {{/*
2 #######################################################################################
3 # Copyright ETSI Contributors and Others.
4 #
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
8 #
9 #    http://www.apache.org/licenses/LICENSE-2.0
10 #
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
14 # implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #######################################################################################
18 */}}
19 1. Get the application URL by running these commands:
20 {{- if .Values.nbi.service }}
21 {{- if contains "NodePort" .Values.nbi.service.type }}
22   export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services nbi)
23   export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
24   echo http://$NODE_IP:$NODE_PORT
25 {{- else if contains "LoadBalancer" .Values.nbi.service.type }}
26      NOTE: It may take a few minutes for the LoadBalancer IP to be available.
27            You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w nbi'
28   export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} nbi --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
29   echo http://$SERVICE_IP:{{ .Values.nbi.service.port }}
30 {{- end }}
31 {{- else }}
32   export OSM_GUI_URL=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.rules[0].host}" ingress ngui-ingress)
33   echo "OSM UI: $OSM_GUI_URL"
34   export OSM_HOSTNAME=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.rules[0].host}" ingress nbi-ingress)
35   echo "OSM_HOSTNAME (for osm client): $OSM_HOSTNAME"
36 {{- end }}
37 2. Get Grafana credentials for admin user using below command.
38   kubectl -n {{ .Release.Namespace }}  get secret grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo