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.
Connecting Argo CD to a private Git repo using SSH
From the course: Kubernetes: GitOps with Argo CD
Connecting Argo CD to a private Git repo using SSH
Time to set up the specifications of the infrastructure that we want to deploy on Kubernetes. Head over to the birthday app folder and create a new deployment.yaml file. This will be the deployment for our very simple birthday app. Now, all of these should be familiar to you. We'll run this on one replica. Notice the specification here where we've used the reg cred secret in order to access the birthday app v1 image registered with artifact registry. Save this file. This completes our deployment. Let's take a look at our service specification in service.yaml. The service specification is straightforward. We have a simple service which is exposed on port 5000. This service will be exposed behind an IP of type load balancer. Let's Let's go one level up to the main private repo folder. Now we'll add all of the files that we've created here in Cloud Shell to Git. All of these steps should be very familiar to you. So I'm going to run through them quickly. Git status shows us that we've…
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)
-