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

[cloudsql] need to set 0.0.0.0 address on container command #84

Closed
bokuo-okubo opened this issue Nov 27, 2018 · 1 comment
Closed

[cloudsql] need to set 0.0.0.0 address on container command #84

bokuo-okubo opened this issue Nov 27, 2018 · 1 comment

Comments

@bokuo-okubo
Copy link

This page says like below.

The "0.0.0.0" in the instances parameter is required to make the port accessible from outside of the Docker container.

https://github.com/GoogleCloudPlatform/kubernetes-engine-samples/blob/master/cloudsql/mysql_wordpress_deployment.yaml#L45

The line should be "-instances=<INSTANCE_CONNECTION_NAME>=tcp:0.0.0.0:3306"

@ahmetb
Copy link
Contributor

ahmetb commented Nov 27, 2018

That’s only the case of you’re exposing proxy port to outside the Pod I believe.

If you’re using a sidecar container (which is more secure and recommended), you should not use 0.0.0.0 as it will accept connections from outside the Pod.

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

No branches or pull requests

3 participants