NOTES.txt 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 {{ .Release.Namespace }} -l app.kubernetes.io/instance={{ .Release.Name }}
  11. Access the pod you want to debug by executing
  12. kubectl exec --namespace {{ .Release.Namespace }} -ti <NAME OF THE POD> -- bash
  13. In order to replicate the container startup scripts execute this command:
  14. /opt/bitnami/scripts/halo/entrypoint.sh /opt/bitnami/scripts/apache/run.sh
  15. {{- else }}
  16. Your Halo site can be accessed through the following DNS name from within your cluster:
  17. {{ include "common.names.fullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }} (port {{ .Values.service.ports.http }})
  18. To access your Halo site from outside the cluster follow the steps below:
  19. {{- if .Values.ingress.enabled }}
  20. 1. Get the Halo URL and associate Halo hostname to your cluster external IP:
  21. export CLUSTER_IP=$(minikube ip) # On Minikube. Use: `kubectl cluster-info` on others K8s clusters
  22. echo "Halo URL: http{{ if .Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.hostname }}/"
  23. echo "$CLUSTER_IP {{ .Values.ingress.hostname }}" | sudo tee -a /etc/hosts
  24. {{- else }}
  25. {{- $port := .Values.service.ports.http | toString }}
  26. 1. Get the Halo URL by running these commands:
  27. {{- if contains "NodePort" .Values.service.type }}
  28. export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "common.names.fullname" . }})
  29. export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
  30. echo "Halo URL: http://$NODE_IP:$NODE_PORT/"
  31. echo "Halo Console URL: http://$NODE_IP:$NODE_PORT/console"
  32. {{- else if contains "LoadBalancer" .Values.service.type }}
  33. NOTE: It may take a few minutes for the LoadBalancer IP to be available.
  34. Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ include "common.names.fullname" . }}'
  35. export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "common.names.fullname" . }} --include "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}")
  36. echo "Halo URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.ports.http }}{{ end }}/"
  37. echo "Halo Console URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.ports.http }}{{ end }}/console"
  38. {{- else if contains "ClusterIP" .Values.service.type }}
  39. kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "common.names.fullname" . }} {{ .Values.service.ports.http }}:{{ .Values.service.ports.http }} &
  40. echo "Halo URL: http://127.0.0.1{{- if ne $port "80" }}:{{ .Values.service.ports.http }}{{ end }}//"
  41. echo "Halo Console URL: http://127.0.0.1{{- if ne $port "80" }}:{{ .Values.service.ports.http }}{{ end }}//console"
  42. {{- end }}
  43. {{- end }}
  44. 2. Open a browser and access Halo using the obtained URL.
  45. 3. Login with the following credentials below to see your site:
  46. echo Username: {{ .Values.haloUsername }}
  47. echo Password: $(kubectl get secret --namespace {{ .Release.Namespace }} {{ include "common.names.fullname" . }} -o jsonpath="{.data.halo-password}" | base64 -d)
  48. {{- end }}
  49. {{- include "halo.validateValues" . }}
  50. {{- include "common.warnings.rollingTag" .Values.image }}
  51. {{- include "common.warnings.rollingTag" .Values.volumePermissions.image }}