|
| 1 | +CHART NAME: {{ .Chart.Name }} |
| 2 | +CHART VERSION: {{ .Chart.Version }} |
| 3 | +APP VERSION: {{ .Chart.AppVersion }} |
| 4 | + |
| 5 | +** Please be patient while the chart is being deployed ** |
| 6 | + |
| 7 | +{{- if .Values.diagnosticMode.enabled }} |
| 8 | +The chart has been deployed in diagnostic mode. All probes have been disabled and the command has been overwritten with: |
| 9 | + |
| 10 | + command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 4 }} |
| 11 | + args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 4 }} |
| 12 | + |
| 13 | +Get the list of pods by executing: |
| 14 | + |
| 15 | + kubectl get pods --namespace {{ include "common.names.namespace" . | quote }} -l app.kubernetes.io/instance={{ .Release.Name }} |
| 16 | + |
| 17 | +Access the pod you want to debug by executing |
| 18 | + |
| 19 | + kubectl exec --namespace {{ include "common.names.namespace" . | quote }} -ti <NAME OF THE POD> -- bash |
| 20 | + |
| 21 | +In order to replicate the container startup scripts execute this command: |
| 22 | + |
| 23 | + /opt/drycc/prometheus/bin/prometheus --config.file=/opt/drycc/prometheus/conf/prometheus.yml --storage.tsdb.path=/opt/drycc/prometheus/data --web.console.libraries=/opt/drycc/prometheus/conf/console_libraries --web.console.templates=/opt/drycc/prometheus/conf/consoles |
| 24 | + |
| 25 | +{{- else }} |
| 26 | + |
| 27 | +Prometheus can be accessed via port "{{ .Values.server.service.ports.http }}" on the following DNS name from within your cluster: |
| 28 | + |
| 29 | + {{ template "common.names.fullname" . }}.{{ include "common.names.namespace" . }}.svc.cluster.local |
| 30 | + |
| 31 | +To access Prometheus from outside the cluster execute the following commands: |
| 32 | + |
| 33 | +{{- if .Values.server.ingress.enabled }} |
| 34 | + |
| 35 | + You should be able to access your new Prometheus installation through |
| 36 | + |
| 37 | + {{ ternary "https" "http" .Values.server.ingress.tls }}://{{ .Values.server.ingress.hostname }} |
| 38 | + |
| 39 | +{{- else if contains "LoadBalancer" .Values.server.service.type }} |
| 40 | + |
| 41 | + NOTE: It may take a few minutes for the LoadBalancer IP to be available. |
| 42 | + Watch the status with: 'kubectl get svc --namespace {{ include "common.names.namespace" . }} -w {{ template "common.names.fullname" . }}' |
| 43 | + |
| 44 | +{{- $port:=.Values.server.service.ports.http | toString }} |
| 45 | + |
| 46 | + export SERVICE_IP=$(kubectl get svc --namespace {{ include "common.names.namespace" . }} {{ template "common.names.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}") |
| 47 | + echo "Prometheus URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.server.service.ports.http }}{{ end }}/" |
| 48 | + |
| 49 | +{{- else if contains "ClusterIP" .Values.server.service.type }} |
| 50 | + |
| 51 | + echo "Prometheus URL: http://127.0.0.1:9090/" |
| 52 | + kubectl port-forward --namespace {{ include "common.names.namespace" . }} svc/{{ template "common.names.fullname" . }} 9090:{{ .Values.server.service.ports.http }} |
| 53 | + |
| 54 | +{{- else if contains "NodePort" .Values.server.service.type }} |
| 55 | + |
| 56 | + export NODE_PORT=$(kubectl get --namespace {{ include "common.names.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "common.names.fullname" . }}) |
| 57 | + export NODE_IP=$(kubectl get nodes --namespace {{ include "common.names.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}") |
| 58 | + echo "Prometheus URL: http://$NODE_IP:$NODE_PORT/" |
| 59 | + |
| 60 | +{{- end }} |
| 61 | + |
| 62 | +{{- if and .Values.server.thanos.create }} |
| 63 | + |
| 64 | +Thanos Sidecar can be accessed via port "{{ .Values.server.thanos.service.ports.grpc }}" on the following DNS name from within your cluster: |
| 65 | + |
| 66 | + {{ template "prometheus.thanos-sidecar.fullname" . }}.{{ include "common.names.namespace" . }}.svc.cluster.local |
| 67 | + |
| 68 | +{{- if .Values.server.thanos.ingress.enabled }} |
| 69 | + |
| 70 | + You should be able to access your new Thanos Sidecar installation through |
| 71 | + |
| 72 | + {{ ternary "https" "http" .Values.server.thanos.ingress.tls }}://{{ .Values.server.thanos.ingress.hostname }} |
| 73 | + |
| 74 | +{{- end }} |
| 75 | +{{- end }} |
| 76 | +{{- end }} |
| 77 | + |
| 78 | +{{- if .Values.alertmanager.enabled }} |
| 79 | + |
| 80 | +Watch the Alertmanager StatefulSet status using the command: |
| 81 | + |
| 82 | + kubectl get sts -w --namespace {{ include "common.names.namespace" . }} -l app.kubernetes.io/name={{ template "prometheus.alertmanager.fullname" . }},app.kubernetes.io/instance={{ .Release.Name }} |
| 83 | + |
| 84 | +Alertmanager can be accessed via port "{{ .Values.alertmanager.service.ports.http }}" on the following DNS name from within your cluster: |
| 85 | + |
| 86 | + {{ template "prometheus.alertmanager.fullname" . }}.{{ include "common.names.namespace" . }}.svc.cluster.local |
| 87 | + |
| 88 | +To access Alertmanager from outside the cluster execute the following commands: |
| 89 | + |
| 90 | +{{- if .Values.alertmanager.ingress.enabled }} |
| 91 | + |
| 92 | + You should be able to access your new Prometheus installation through |
| 93 | + |
| 94 | + {{ ternary "https" "http" .Values.alertmanager.ingress.tls }}://{{ .Values.alertmanager.ingress.hostname }} |
| 95 | + |
| 96 | +{{- else if contains "LoadBalancer" .Values.alertmanager.service.type }} |
| 97 | + |
| 98 | + NOTE: It may take a few minutes for the LoadBalancer IP to be available. |
| 99 | + Watch the status with: 'kubectl get svc --namespace {{ include "common.names.namespace" . }} -w {{ template "prometheus.alertmanager.fullname" . }}' |
| 100 | + |
| 101 | +{{- $port:=.Values.alertmanager.service.ports.http | toString }} |
| 102 | + |
| 103 | + export SERVICE_IP=$(kubectl get svc --namespace {{ include "common.names.namespace" . }} {{ template "prometheus.alertmanager.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}") |
| 104 | + echo "Alertmanager URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.alertmanager.service.ports.http }}{{ end }}/" |
| 105 | + |
| 106 | +{{- else if contains "ClusterIP" .Values.alertmanager.service.type }} |
| 107 | + |
| 108 | + echo "Alertmanager URL: http://127.0.0.1:9093/" |
| 109 | + kubectl port-forward --namespace {{ include "common.names.namespace" . }} svc/{{ template "prometheus.alertmanager.fullname" . }} 9093:{{ .Values.alertmanager.service.ports.http }} |
| 110 | + |
| 111 | +{{- else if contains "NodePort" .Values.alertmanager.service.type }} |
| 112 | + |
| 113 | + export NODE_PORT=$(kubectl get --namespace {{ include "common.names.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "prometheus.alertmanager.fullname" . }}) |
| 114 | + export NODE_IP=$(kubectl get nodes --namespace {{ include "common.names.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}") |
| 115 | + echo "Alertmanager URL: http://$NODE_IP:$NODE_PORT/" |
| 116 | + |
| 117 | +{{- end }} |
| 118 | +{{- end }} |
| 119 | + |
| 120 | +{{- include "common.warnings.rollingTag" .Values.server.image }} |
| 121 | +{{- include "common.warnings.rollingTag" .Values.server.thanos.image }} |
| 122 | +{{- include "common.warnings.rollingTag" .Values.volumePermissions.image }} |
| 123 | +{{- include "prometheus.server.validateValues" . }} |
0 commit comments