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

docs: Add kubernetes job example #1953

Merged
merged 2 commits into from
Sep 20, 2023
Merged

docs: Add kubernetes job example #1953

merged 2 commits into from
Sep 20, 2023

Conversation

hessjcg
Copy link
Collaborator

@hessjcg hessjcg commented Sep 14, 2023

This example demonstrates how to use the /quitquitquit endpoint in a kubernetes job to allow job pods
to exit successfully when the main application container exits.

Fixes #1941

@hessjcg hessjcg requested a review from a team as a code owner September 14, 2023 20:53
- -c
- >
my_batch_job --host=127.0.0.1 --port=<DB_PORT> --username=<DB_USER> --dbname=<DB_NAME>
wget --post-data '' http://localhost:9091/quitquitquit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this have to be --post-data now that we're supporting GET?

Also curl makes this easier:

curl -X POST http://localhost:9091/quitquitquit

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, now that #1947 has merged. I'll update this accordingly.

@hessjcg
Copy link
Collaborator Author

hessjcg commented Sep 20, 2023

#1969 tracks updating the other docs to use the envvar configuration.

@hessjcg hessjcg merged commit 1d93cf3 into main Sep 20, 2023
12 checks passed
@hessjcg hessjcg deleted the gh-1941-job-docs branch September 20, 2023 17:49
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.

Document using cloudsql auth proxy in kubernetes jobs
3 participants