Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Deploy as Statefulset Option #99

Merged
merged 2 commits into from
Nov 30, 2020

Conversation

oliverisaac
Copy link
Contributor

What this PR does / why we need it:

If one is deploying more than 5 DB proxies then an internal loadbalancer on google is not supported as they must have at most 5 ports.

To fix this, I added the option to deploy as statefulset which allows you to then access the proxy using the headless service's FQDN to get A records:

# In cluster:
dig cloudsql-proxy-headless.cloudsql-proxy.svc.cluster.local
# Returns multiple A records,  one for each replica

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • [ x ] Chart Version bumped
  • [ x ] Changes are documented in the README.md

@rimusz
Copy link
Owner

rimusz commented Nov 30, 2020

Thanks for the PR 👍

@rimusz rimusz merged commit 6680812 into rimusz:master Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants