NOTES.txt 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. CHART NAME: {{ .Chart.Name }}
  2. CHART VERSION: {{ .Chart.Version }}
  3. APP VERSION: {{ .Chart.AppVersion }}
  4. ** Please be patient while the chart is being deployed **
  5. {{- if .Values.diagnosticMode.enabled }}
  6. The chart has been deployed in diagnostic mode. All probes have been disabled and the command has been overwritten with:
  7. command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 4 }}
  8. args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 4 }}
  9. Get the list of pods by executing:
  10. kubectl get pods --namespace {{ include "common.names.namespace" . | quote }} -l app.kubernetes.io/instance={{ .Release.Name }}
  11. Access the pod you want to debug by executing
  12. kubectl exec --namespace {{ include "common.names.namespace" . | quote }} -ti <NAME OF THE POD> -- bash
  13. In order to replicate the container startup scripts execute this command:
  14. /opt/bitnami/scripts/clickhouse/entrypoint.sh /opt/bitnami/scripts/clickhouse/run.sh
  15. {{- else }}
  16. ClickHouse is available in the following address:
  17. {{- if .Values.externalAccess.enabled }}
  18. NOTE: It may take a few minutes for the LoadBalancer IP to be available.
  19. kubectl get svc --namespace {{ template "common.names.namespace" . }} -l "app.kubernetes.io/name={{ template "common.names.fullname" . }},app.kubernetes.io/instance={{ .Release.Name }},app.kubernetes.io/component=clickhouse" -w
  20. {{- else if (eq "LoadBalancer" .Values.service.type) }}
  21. export SERVICE_IP=$(kubectl get svc --namespace {{ template "common.names.namespace" . }} {{ template "common.names.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}")
  22. {{- else if (eq "NodePort" .Values.service.type)}}
  23. export NODE_IP=$(kubectl get nodes --namespace {{ template "common.names.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}")
  24. export NODE_PORT=$(kubectl get --namespace {{ template "common.names.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "common.names.fullname" . }})
  25. {{- else if (eq "ClusterIP" .Values.service.type)}}
  26. kubectl port-forward --namespace {{ template "common.names.namespace" . }} svc/{{ template "common.names.fullname" . }} {{ .Values.service.ports.tcp }}:9000 &
  27. {{- end }}
  28. Credentials:
  29. echo "Username : {{ .Values.auth.username }}"
  30. echo "Password : $(kubectl get secret --namespace {{ .Release.Namespace }} {{ include "clickhouse.secretName" . }} -o jsonpath="{.data.{{ include "clickhouse.secretKey" .}}}" | base64 -d)"
  31. {{- end }}
  32. {{- include "common.warnings.rollingTag" .Values.image }}
  33. {{- include "clickhouse.validateValues" . }}