NOTES.txt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. CHART NAME: {{ .Chart.Name }}
  2. CHART VERSION: {{ .Chart.Version }}
  3. APP VERSION: {{ .Chart.AppVersion }}
  4. {{- if and (not .Values.auth.client.enabled) (eq .Values.service.type "LoadBalancer") }}
  5. -------------------------------------------------------------------------------
  6. WARNING
  7. By specifying "serviceType=LoadBalancer" and not specifying "auth.enabled=true"
  8. you have most likely exposed the ZooKeeper service externally without any
  9. authentication mechanism.
  10. For security reasons, we strongly suggest that you switch to "ClusterIP" or
  11. "NodePort". As alternative, you can also specify a valid password on the
  12. "auth.clientPassword" parameter.
  13. -------------------------------------------------------------------------------
  14. {{- end }}
  15. ** Please be patient while the chart is being deployed **
  16. {{- if .Values.diagnosticMode.enabled }}
  17. The chart has been deployed in diagnostic mode. All probes have been disabled and the command has been overwritten with:
  18. command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 4 }}
  19. args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 4 }}
  20. Get the list of pods by executing:
  21. kubectl get pods --namespace {{ .Release.Namespace }} -l app.kubernetes.io/instance={{ .Release.Name }}
  22. Access the pod you want to debug by executing
  23. kubectl exec --namespace {{ .Release.Namespace }} -ti <NAME OF THE POD> -- bash
  24. In order to replicate the container startup scripts execute this command:
  25. /opt/bitnami/scripts/zookeeper/entrypoint.sh /opt/bitnami/scripts/zookeeper/run.sh
  26. {{- else }}
  27. ZooKeeper can be accessed via port {{ .Values.service.ports.client }} on the following DNS name from within your cluster:
  28. {{ template "common.names.fullname" . }}.{{ template "zookeeper.namespace" . }}.svc.{{ .Values.clusterDomain }}
  29. To connect to your ZooKeeper server run the following commands:
  30. export POD_NAME=$(kubectl get pods --namespace {{ template "zookeeper.namespace" . }} -l "app.kubernetes.io/name={{ template "common.names.name" . }},app.kubernetes.io/instance={{ .Release.Name }},app.kubernetes.io/component=zookeeper" -o jsonpath="{.items[0].metadata.name}")
  31. kubectl exec -it $POD_NAME -- zkCli.sh
  32. To connect to your ZooKeeper server from outside the cluster execute the following commands:
  33. {{- if eq .Values.service.type "NodePort" }}
  34. export NODE_IP=$(kubectl get nodes --namespace {{ template "zookeeper.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}")
  35. export NODE_PORT=$(kubectl get --namespace {{ template "zookeeper.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "common.names.fullname" . }})
  36. zkCli.sh $NODE_IP:$NODE_PORT
  37. {{- else if eq .Values.service.type "LoadBalancer" }}
  38. NOTE: It may take a few minutes for the LoadBalancer IP to be available.
  39. Watch the status with: 'kubectl get svc --namespace {{ template "zookeeper.namespace" . }} -w {{ template "common.names.fullname" . }}'
  40. export SERVICE_IP=$(kubectl get svc --namespace {{ template "zookeeper.namespace" . }} {{ template "common.names.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}")
  41. zkCli.sh $SERVICE_IP:{{ .Values.service.ports.client }}
  42. {{- else if eq .Values.service.type "ClusterIP" }}
  43. kubectl port-forward --namespace {{ template "zookeeper.namespace" . }} svc/{{ template "common.names.fullname" . }} {{ .Values.service.ports.client }}:{{ .Values.containerPorts.client }} &
  44. zkCli.sh 127.0.0.1:{{ .Values.service.ports.client }}
  45. {{- end }}
  46. {{- end }}
  47. {{- include "zookeeper.validateValues" . }}
  48. {{- include "zookeeper.checkRollingTags" . }}
  49. {{- include "common.warnings.resources" (dict "sections" (list "" "tls" "volumePermissions") "context" $) }}
  50. {{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image .Values.volumePermissions.image) "context" $) }}