Files
deprecated-helm-charts/stable/gcloud-sqlproxy/values.yaml
T
Aaron Taylor 0978b8bc6c stable/gcloud-sqlproxy: handle longer instance names (#5664)
This commit fixes an issue where the chart woud not install for
instances that had a name longer than the current max length of port
names that k8s allows, which is 15 characters [1]. We allow users of the
chart to override the default configuration for this shortened port name
for cases where the prefix on the instance names may not be unique.

[1] The field is defined as an IANA_SVC_NAME, which is at most 15 chars:
    https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.10/#serviceport-v1-core
2018-05-25 05:00:53 -07:00

58 lines
1.7 KiB
YAML

## Google Cloud SQL Proxy image
## ref: https://cloud.google.com/sql/docs/mysql/sql-proxy
## ref: https://cloud.google.com/sql/docs/postgres/sql-proxy
image: b.gcr.io/cloudsql-docker/gce-proxy
imageTag: "1.11"
## Specify a imagePullPolicy
## 'Always' if imageTag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
imagePullPolicy: IfNotPresent
## Replicas Set count
replicasCount: 1
## Set the GCP service account key JSON file.
## Service account has access be set to Cloud SQL instances
## the key must be encoded with base64
## e.g. `cat service-account.json | base64`
##
serviceAccountKey: ""
## SQL connection settings
##
cloudsql:
## PostgreSQL/MySQL instances:
## update with your GCP project, the region of your Cloud SQL instance
## and the name of your Cloud SQL instance
## PostgreSQL port 5432 or MySQL port 3306, or other port you set for your SQL instance.
## Use different ports for different instances.
instances:
# GCP instance name.
- instance: "instance"
# Optional abbreviation used to override the truncated instance name if the
# 15 character instance name prefix is not unique for use as a port
# identifier.
instanceShortName: ""
# GCP project where the instance exists.
project: "project"
# GCP region where the instance exists.
region: "region"
# Port number for the proxy to expose for this instance.
port: 5432
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
memory: 150Mi
cpu: 150m
## Node selector
nodeSelector: {}