NOTES.txt 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Release Name: {{ .Release.Name }}
  2. StackGres Version: {{ .Chart.Version }}
  3. _____ _ _ _____
  4. / ____| | | | / ____|
  5. | (___ | |_ __ _ ___| | _| | __ _ __ ___ ___
  6. \___ \| __/ _` |/ __| |/ / | |_ | '__/ _ \/ __|
  7. ____) | || (_| | (__| <| |__| | | | __/\__ \
  8. |_____/ \__\__,_|\___|_|\_\\_____|_| \___||___/
  9. by OnGres, Inc.
  10. {{- if not .Values.cert.autoapprove }}
  11. To complete the process approve operator certificate signing request:
  12. kubectl certificate approve {{ .Release.Name }}
  13. {{- end }}
  14. Check if the operator was successfully deployed and is available:
  15. kubectl describe deployment -n {{ .Release.Namespace }} {{ .Release.Name }}
  16. kubectl wait -n {{ .Release.Namespace }} deployment/{{ .Release.Name }} --for condition=Available
  17. Check if the restapi was successfully deployed and is available:
  18. kubectl describe deployment -n {{ .Release.Namespace }} {{ .Values.restapi.name }}
  19. kubectl wait -n {{ .Release.Namespace }} deployment/{{ .Values.restapi.name }} --for condition=Available
  20. {{- if .Values.deploy.restapi }}
  21. To access StackGres Operator UI from localhost, run the below commands:
  22. POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "stackgres.io/restapi=true" -o jsonpath="{.items[0].metadata.name}")
  23. kubectl port-forward "$POD_NAME" 8443:9443 --namespace {{ .Release.Namespace }}
  24. Read more about port forwarding here: http://kubernetes.io/docs/user-guide/kubectl/kubectl_port-forward/
  25. Now you can access the StackGres Operator UI on:
  26. https://localhost:8443
  27. {{- if (eq .Values.authentication.type "jwt") }}
  28. To get the username, run the command:
  29. kubectl get secret -n {{ .Release.Namespace }} stackgres-restapi-admin --template '{{ "{{" }} printf "username = %s\n" (.data.k8sUsername | base64decode) {{ "}}" }}'
  30. {{- if and (not .Values.authentication.password) (not (.Values.authentication.secretRef).name) }}
  31. To get the generated password, run the command:
  32. kubectl get secret -n {{ .Release.Namespace }} stackgres-restapi-admin --template '{{ "{{" }} printf "password = %s\n" (.data.clearPassword | base64decode) {{ "}}" }}'
  33. Remember to remove the generated password hint from the secret to avoid security flaws:
  34. kubectl patch secret --namespace {{ .Release.Namespace }} stackgres-restapi-admin --type json -p '[{"op":"remove","path":"/data/clearPassword"}]'
  35. {{- end }}
  36. {{- end }}
  37. {{- end }}