NOTES.txt 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {{- if contains .Values.service.type "LoadBalancer" }}
  2. {{- if not .Values.auth.clientPassword }}
  3. -------------------------------------------------------------------------------
  4. WARNING
  5. By specifying "serviceType=LoadBalancer" and not specifying "auth.enabled=true"
  6. you have most likely exposed the ZooKeeper service externally without any
  7. authentication mechanism.
  8. For security reasons, we strongly suggest that you switch to "ClusterIP" or
  9. "NodePort". As alternative, you can also specify a valid password on the
  10. "auth.clientPassword" parameter.
  11. -------------------------------------------------------------------------------
  12. {{- end }}
  13. {{- end }}
  14. ** Please be patient while the chart is being deployed **
  15. ZooKeeper can be accessed via port 2181 on the following DNS name from within your cluster:
  16. {{ template "common.names.fullname" . }}.{{ template "zookeeper.namespace" . }}.svc.{{ .Values.clusterDomain }}
  17. To connect to your ZooKeeper server run the following commands:
  18. 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}")
  19. kubectl exec -it $POD_NAME -- zkCli.sh
  20. To connect to your ZooKeeper server from outside the cluster execute the following commands:
  21. {{- if contains "NodePort" .Values.service.type }}
  22. export NODE_IP=$(kubectl get nodes --namespace {{ template "zookeeper.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}")
  23. export NODE_PORT=$(kubectl get --namespace {{ template "zookeeper.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "common.names.fullname" . }})
  24. zkCli.sh $NODE_IP:$NODE_PORT
  25. {{- else if contains "LoadBalancer" .Values.service.type }}
  26. NOTE: It may take a few minutes for the LoadBalancer IP to be available.
  27. Watch the status with: 'kubectl get svc --namespace {{ template "zookeeper.namespace" . }} -w {{ template "common.names.fullname" . }}'
  28. export SERVICE_IP=$(kubectl get svc --namespace {{ template "zookeeper.namespace" . }} {{ template "common.names.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
  29. zkCli.sh $SERVICE_IP:2181
  30. {{- else if contains "ClusterIP" .Values.service.type }}
  31. kubectl port-forward --namespace {{ template "zookeeper.namespace" . }} svc/{{ template "common.names.fullname" . }} 2181:2181 &
  32. zkCli.sh 127.0.0.1:2181
  33. {{- end }}
  34. {{- include "zookeeper.validateValues" . }}
  35. {{- include "zookeeper.checkRollingTags" . }}