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

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…

Contents