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
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
-
-
-
-
-
-
-
Enabling the Kubernetes Engine API1m 42s
-
(Locked)
Connecting to a GitHub repo using SSH4m 31s
-
(Locked)
Creating a GKE cluster3m 20s
-
(Locked)
Setting up Argo CD on GKE4m 32s
-
(Locked)
Registering the app image with GCR4m 9s
-
(Locked)
Configuring the image secret with a service account4m 31s
-
(Locked)
Connecting Argo CD to a private Git repo using SSH2m 51s
-
(Locked)
Deploying infrastructure to the GKE cluster2m 59s
-
-