Refactor Distributed Analytics project structure
[demo.git] / vnfs / DAaaS / deploy / visualization / charts / grafana / templates / NOTES.txt
1 1. Get your '{{ .Values.adminUser }}' user password by running:
2
3    kubectl get secret --namespace {{ .Release.Namespace }} {{ template "grafana.fullname" . }} -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
4
5 2. {{ if .Values.ingress.enabled }}
6    From outside the cluster, the server URL(s) are:
7 {{- range .Values.ingress.hosts }}
8      http://{{ . }}
9 {{- end }}
10 {{ else }}
11    Get the Grafana URL to visit by running these commands in the same shell:
12 {{ if contains "NodePort" .Values.service.type -}}
13      export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "grafana.fullname" . }})
14      export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
15      echo http://$NODE_IP:$NODE_PORT
16 {{ else if contains "LoadBalancer" .Values.service.type -}}
17    NOTE: It may take a few minutes for the LoadBalancer IP to be available.
18         You can watch the status of by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "grafana.fullname" . }}'
19      export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "grafana.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
20      http://$SERVICE_IP:{{ .Values.service.port -}}
21 {{ else if contains "ClusterIP"  .Values.service.type }}
22      export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "grafana.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
23      kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 3000
24 {{- end }}
25 {{- end }}
26
27 3. Login with the password from step 1 and the username: {{ .Values.adminUser }}
28
29 {{- if not .Values.persistence.enabled }}
30 #################################################################################
31 ######   WARNING: Persistence is disabled!!! You will lose your data when   #####
32 ######            the Grafana pod is terminated.                            #####
33 #################################################################################
34 {{- end }}