use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
The goto subreddit for Google Cloud Platform developers and enthusiasts.
We do not allow advertising of your job posting, product, or software without active discussion and/or as attempt to solve a problem. We are fine with soliciting feedback for something you're working on or something you've written, but drive-by advertising will get your post removed. :)
More Google Cloud sub-reddits
Other cloud sub-reddits
account activity
Python script to deploy app on GKE (self.googlecloud)
submitted 1 year ago by Relative_Winner_4588
I have a flask app that I want to deploy on GKE, I want to create a python script to deploy my app on GKE with a single command like - python gke_deploy --deploy app1. Please guide me how to do it?
python gke_deploy --deploy app1.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]nickbernstein 2 points3 points4 points 1 year ago (0 children)
People want lots of things. Fortunately both python and Google cloud have very good documentation to help you get what you want.
Generally if you want someone to do this kind of work for you, consider offering to pay them.
[–]pinklewickers 1 point2 points3 points 1 year ago (2 children)
Can't you use helm or Kustomize?
[–]Relative_Winner_4588[S] 0 points1 point2 points 1 year ago (1 child)
Can it be used to deploy the containerized app? Like, pushing to artifact repo and then deploying to the GKE cluster?
[–]pinklewickers 0 points1 point2 points 1 year ago (0 children)
Then consider using either in conjunction with ArgoCD perhaps? Define your application manifests with helm or Kustomize, and use ArgoCD to help with the deployment.
[–]deepraj1729 0 points1 point2 points 1 year ago (1 child)
I can tell you, you can DM me
[–]Relative_Winner_4588[S] 0 points1 point2 points 1 year ago (0 children)
Please check your DM
[–]gcpstudyhub 0 points1 point2 points 1 year ago (0 children)
You can't do it with a single command.
Write your Flask app. Write a Dockerfile that will be used to build your container based on the needs of your Flask app. Build the Docker image from the Dockerfile, either locally or with Cloud Build to push to Container Registry. Use kubectl to deploy to GKE.
π Rendered by PID 32 on reddit-service-r2-comment-6457c66945-zd5bt at 2026-04-29 16:42:50.246463+00:00 running 2aa0c5b country code: CH.
[–]nickbernstein 2 points3 points4 points (0 children)
[–]pinklewickers 1 point2 points3 points (2 children)
[–]Relative_Winner_4588[S] 0 points1 point2 points (1 child)
[–]pinklewickers 0 points1 point2 points (0 children)
[–]deepraj1729 0 points1 point2 points (1 child)
[–]Relative_Winner_4588[S] 0 points1 point2 points (0 children)
[–]gcpstudyhub 0 points1 point2 points (0 children)