github.com/replicatedcom/ship@v0.50.0/integration/init/grafana-with-values/expected/.ship/upstream/templates/NOTES.txt (about)

     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. The Grafana server can be accessed via port {{ .Values.service.port }} on the following DNS name from within your cluster:
     6  
     7     {{ template "grafana.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
     8  {{ if .Values.ingress.enabled }}
     9     From outside the cluster, the server URL(s) are:
    10  {{- range .Values.ingress.hosts }}
    11       http://{{ . }}
    12  {{- end }}
    13  {{ else }}
    14     Get the Grafana URL to visit by running these commands in the same shell:
    15  {{ if contains "NodePort" .Values.service.type -}}
    16       export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "grafana.fullname" . }})
    17       export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
    18       echo http://$NODE_IP:$NODE_PORT
    19  {{ else if contains "LoadBalancer" .Values.service.type -}}
    20     NOTE: It may take a few minutes for the LoadBalancer IP to be available.
    21          You can watch the status of by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "grafana.fullname" . }}'
    22       export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "grafana.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
    23       http://$SERVICE_IP:{{ .Values.service.port -}}
    24  {{ else if contains "ClusterIP"  .Values.service.type }}
    25       export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "grafana.fullname" . }},component={{ .Values.name }}" -o jsonpath="{.items[0].metadata.name}")
    26       kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 3000
    27  {{- end }}
    28  {{- end }}
    29  
    30  3. Login with the password from step 1 and the username: {{ .Values.adminUser }}
    31  
    32  {{- if not .Values.persistence.enabled }}
    33  #################################################################################
    34  ######   WARNING: Persistence is disabled!!! You will lose your data when   #####
    35  ######            the Grafana pod is terminated.                            #####
    36  #################################################################################
    37  {{- end }}