From the course: Kubernetes: GitOps with ArgoCD

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Registering the app image with GCR

Registering the app image with GCR

From the course: Kubernetes: GitOps with ArgoCD

Registering the app image with GCR

- It's now time for us to create our simple Python application that will deploy using Argo CD. So cd into the "loony-argocd-private-repo" that we cloned earlier onto Cloud Shell. Let's create a new subfolder called "summer_trip" and cd into that subfolder. Within "summer_trip", we'll create a new subfolder called "app", which will contain the code for our application. I'll specify the commands that we'll use to build our apps image, using a Dockerfile. So create a new Dockerfile here. And here are the commands. Observe that the commands are almost exactly the same as the previous app that we built. So hopefully all of these commands are very familiar to you. Let's set up the main.py for our application. Once again, this is going to be a Flask application, but we'll render our homepage using an HTML template. So the template folder is going to be called "template", and we haven't created that yet. So the template…

Contents