mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
** Please be patient while the chart is being deployed **
|
|
|
|
{{- if not .Values.serviceAccountKey }}
|
|
##############################################################################
|
|
#### ERROR: You did not provide Google Cloud Service Account key. ####
|
|
##############################################################################
|
|
|
|
All pods do not go to the running state if the GCP Service Account key was not provided.
|
|
|
|
{{- end }}
|
|
|
|
{{- if eq (index .Values.cloudsql.instances 0).instance "instance" }}
|
|
|
|
##############################################################################
|
|
#### ERROR: You did not provide Google Cloud instances. ####
|
|
##############################################################################
|
|
|
|
All pods do not go to the running state if the instances
|
|
settings were not provided.
|
|
|
|
{{- end }}
|
|
|
|
{{- if and .Values.serviceAccountKey (ne (index .Values.cloudsql.instances 0).instance "instance") }}
|
|
|
|
The SQL server instances can be accessed via ports:
|
|
{{- range .Values.cloudsql.instances }}
|
|
- {{ .port }} ({{ .instance }})
|
|
{{- end }}
|
|
on the following DNS name from within your cluster:
|
|
- {{ template "gcloud-sqlproxy.fullname" . }}.{{ .Release.Namespace }}
|
|
|
|
{{- else -}}
|
|
|
|
This deployment will be incomplete until you provide GCP Service Account key
|
|
and instances settings:
|
|
|
|
helm upgrade {{ .Release.Name }} \
|
|
--set serviceAccountKey="$(cat service-account.json | base64)" \
|
|
--set cloudsql.instances[0].instance=INSTANCE \
|
|
--set cloudsql.instances[0].project=PROJECT \
|
|
--set cloudsql.instances[0].region=REGION \
|
|
--set cloudsql.instances[0].port=5432 \
|
|
stable/gcloud-sqlproxy
|
|
|
|
{{- end }}
|