mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 15:10:15 +08:00
98 lines
4.5 KiB
Plaintext
98 lines
4.5 KiB
Plaintext
|
|
******************************************************************
|
|
*** PLEASE BE PATIENT: Parse may take a few minutes to install ***
|
|
******************************************************************
|
|
|
|
Parse Server
|
|
------------
|
|
|
|
1. Get your Parse Server URL:
|
|
|
|
{{- if .Values.ingress.enabled }}
|
|
{{ $ingressHost := first .Values.ingress.server.hosts }}
|
|
|
|
You should be able to access Parse Server through: {{- range .Values.ingress.server.hosts }} {{ if .tls }}https{{ else }}http{{ end }}://{{ .name }} {{- end }}
|
|
For instance:
|
|
|
|
export SERVICE_HOST={{ $ingressHost.name }}
|
|
|
|
{{- else if contains "NodePort" .Values.service.type }}
|
|
|
|
export NODE_PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" {{ template "parse.fullname" . }})
|
|
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
|
|
export SERVICE_HOST=$NODE_IP:$NODE_PORT
|
|
|
|
{{- else if contains "LoadBalancer" .Values.service.type }}
|
|
|
|
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
|
|
Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "parse.fullname" . }}'
|
|
|
|
export SERVICE_HOST=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "parse.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}"):{{ .Values.server.port }}
|
|
|
|
{{- else if contains "ClusterIP" .Values.service.type }}
|
|
|
|
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "parse.fullname" . }} 1337:{{ .Values.server.port }} &
|
|
export SERVICE_HOST=127.0.0.1:1337
|
|
|
|
{{- end }}
|
|
|
|
Example Usage:
|
|
|
|
curl -X POST \
|
|
-H "X-Parse-Application-Id: {{ .Values.server.appId }}" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}' \
|
|
http://$SERVICE_HOST{{ .Values.server.mountPath }}/classes/GameScore
|
|
|
|
{{ if .Values.dashboard.enabled -}}
|
|
Parse Dashboard
|
|
---------------
|
|
{{- if empty (include "parse.host" .) }}
|
|
###############################################################################
|
|
### ERROR: You did not provide an external host in your 'helm install' call ###
|
|
###############################################################################
|
|
|
|
Your Parse Dashboard deployment will be incomplete until you configure your
|
|
Parse Server with a resolvable host. To configure Parse with the URL of your
|
|
service:
|
|
|
|
1. Get the Parse Server URL by running:
|
|
|
|
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
|
|
Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "parse.fullname" . }}'
|
|
|
|
export APP_HOST=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "parse.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
|
|
|
|
2. Complete your Parse Dashboard deployment by running:
|
|
|
|
helm upgrade {{ .Release.Name }} stable/{{ .Chart.Name }} \
|
|
--set server.host=$APP_HOST,server.port={{ .Values.server.port }},server.masterKey=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "parse.fullname" . }} -o jsonpath="{.data.master-key}" | base64 --decode),dashboard.username={{ .Values.dashboard.username }},dashboard.password=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "parse.fullname" . }} -o jsonpath="{.data.parse-dashboard-password}" | base64 --decode){{- if .Values.global }}{{- if .Values.global.imagePullSecrets }},global.imagePullSecrets={{ .Values.global.imagePullSecrets }}{{- end }}{{- end }}
|
|
|
|
{{- else }}
|
|
|
|
1. Get the Parse Dashboard URL:
|
|
|
|
{{- if .Values.ingress.enabled }}
|
|
|
|
You should be able to access Parse Dashboard through: {{- range .Values.ingress.dashboard.hosts }} {{ if .tls }}https{{ else }}http{{ end }}://{{ .name }} {{- end }}
|
|
|
|
{{- else if eq .Values.service.type "ClusterIP" }}
|
|
|
|
echo "Parse Dashboard URL: http://127.0.0.1:4040/"
|
|
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "parse.fullname" . }} 4040:{{ .Values.service.port }} &
|
|
|
|
{{- else }}
|
|
|
|
echo "Parse Dashboard URL: http://{{ include "parse.host" . }}/"
|
|
|
|
{{- end }}
|
|
|
|
2. Get your Parsh Dashboard login credentials by running:
|
|
|
|
echo Username: {{ .Values.dashboard.username }}
|
|
echo Password: $(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "parse.fullname" . }} -o jsonpath="{.data.parse-dashboard-password}" | base64 --decode)
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{ include "parse.checkRollingTags" . }}
|