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-proxy-kubexit image #2

Closed
thr0n opened this issue May 5, 2020 · 3 comments
Closed

cloudsql-proxy-kubexit image #2

thr0n opened this issue May 5, 2020 · 3 comments

Comments

@thr0n
Copy link

thr0n commented May 5, 2020

Hi,
I'm very happy that I found your repo in this discussion.

The scenario that you are describing in this example is exactly what I'm trying to achieve. I've got a pod running consisting of an import job (Kotlin/Spring Boot) as well as a Cloud SQL proxy instance. Since the proxy does not terminate the pod is running forever...

But now I've got a question regarding your sample job specification. Which image are you using for this container? Do I have to build a custom image of Cloud SQL proxy including kubexit?

Thank you in advance,
Hendrik

@karlkfi
Copy link
Owner

karlkfi commented May 5, 2020

There’s 3 options:

  1. build kubexit into a custom image
  2. provision kubexit on every node and use a bind mount volume to access it in the container
  3. use karlkfi/kubexit in an init container and copy kubexit into a shared ephemeral volume that is mounted into your other containers

Personally I think option 3 is the easiest, but ymmv.

@thr0n
Copy link
Author

thr0n commented May 8, 2020

Thanks, after some trial and error option 3 works perfectly in my setup!

@thr0n thr0n closed this as completed May 8, 2020
@colinwilson
Copy link

@thr0n Any chance you could share your solution/manifest? I'm attempting a similar setup.

alessiovolpe referenced this issue in Musixmatchdev/kubexit May 31, 2022
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