github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/thanos/templates/NOTES.txt (about) 1 CHART NAME: {{ .Chart.Name }} 2 CHART VERSION: {{ .Chart.Version }} 3 APP VERSION: {{ .Chart.AppVersion }} 4 5 {{- $query := (include "thanos.query.values" . | fromYaml) -}} 6 ** Please be patient while the chart is being deployed ** 7 8 Thanos chart was deployed enabling the following components: 9 10 {{- if $query.enabled }} 11 - Thanos Query 12 {{- end }} 13 {{- if .Values.bucketweb.enabled }} 14 - Thanos Bucket Web 15 {{- end }} 16 {{- if .Values.compactor.enabled }} 17 - Thanos Compactor 18 {{- end }} 19 {{- if .Values.ruler.enabled }} 20 - Thanos Ruler 21 {{- end }} 22 {{- if .Values.storegateway.enabled }} 23 - Thanos Store Gateway 24 {{- end }} 25 26 {{- if $query.enabled }} 27 28 Thanos Query can be accessed through following DNS name from within your cluster: 29 30 {{ include "common.names.fullname" . }}-query.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }} (port {{ if $query.service.http }}{{ coalesce $query.service.ports.http $query.service.http.port }}{{ else }}{{ $query.service.ports.http }}{{ end }}) 31 32 To access Thanos Query from outside the cluster execute the following commands: 33 34 {{- if $query.ingress.enabled }} 35 36 1. Get the Thanos Query URL and associate Thanos Query hostname to your cluster external IP: 37 38 export CLUSTER_IP=$(minikube ip) # On Minikube. Use: `kubectl cluster-info` on others K8s clusters 39 echo "Thanos Query URL: http{{ if $query.ingress.tls }}s{{ end }}://{{ $query.ingress.hostname }}/" 40 echo "$CLUSTER_IP {{ $query.ingress.hostname }}" | sudo tee -a /etc/hosts 41 42 {{- else }} 43 44 1. Get the Thanos Query URL by running these commands: 45 46 {{- if contains "NodePort" $query.service.type }} 47 48 export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "common.names.fullname" . }}-query) 49 export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") 50 echo "http://${NODE_IP}:${NODE_PORT}" 51 52 {{- else if contains "LoadBalancer" $query.service.type }} 53 54 NOTE: It may take a few minutes for the LoadBalancer IP to be available. 55 You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "common.names.fullname" . }}-query' 56 57 export SERVICE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].port}" services {{ include "common.names.fullname" . }}-query) 58 export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "common.names.fullname" . }}-query -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 59 echo "http://${SERVICE_IP}:${SERVICE_PORT}" 60 61 {{- else if contains "ClusterIP" $query.service.type }} 62 63 export SERVICE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].port}" services {{ include "common.names.fullname" . }}-query) 64 kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "common.names.fullname" . }}-query ${SERVICE_PORT}:${SERVICE_PORT} & 65 echo "http://127.0.0.1:${SERVICE_PORT}" 66 67 {{- end }} 68 {{- end }} 69 70 2. Open a browser and access Thanos Query using the obtained URL. 71 72 {{- else }} 73 74 WARNING: You deployed Thanos without enabling Thanos Query!! 75 76 {{- end }} 77 78 {{- include "thanos.validateValues" . }} 79 {{- include "thanos.checkRollingTags" . }}