From the course: Kubernetes: GitOps with Argo CD
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Registering the app image with Google Artifact Registry
From the course: Kubernetes: GitOps with Argo CD
Registering the app image with Google Artifact Registry
It's time for us to set up our simple Python application, which we'll set up as an image and reference when we deploy our infrastructure using Argo CD. We'll write the code and build the image manually. This will of course, in the real world, be done by our continuous integration pipeline. So CD into the Argo CD private repo that we cloned earlier onto Cloud Shell. Create a new subfolder called birthday app and CD into that subfolder. birthday app, 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 app's image using a docker file. So create a new docker file 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. The app itself is very straightforward. There's a default route at the forward slash path, which renders out a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Connecting to a GitHub repo using SSH5m 38s
-
(Locked)
Enabling the Kubernetes API and the Artifact Registry API1m 30s
-
(Locked)
Creating a GKE cluster3m 29s
-
(Locked)
Setting up Argo CD on GKE5m 26s
-
(Locked)
Registering the app image with Google Artifact Registry6m
-
(Locked)
Configuring a service account to access images in the Artifact Registry4m 50s
-
(Locked)
Connecting Argo CD to a private Git repo using SSH2m 55s
-
(Locked)
Deploying infrastructure to the GKE cluster3m 32s
-
(Locked)
-