You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/argo-cd-gcp/argocd-gitops-workflow.md
+51-49Lines changed: 51 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
---
2
-
title: Deploy Applications using GitOps with Argo CD
2
+
title: Deploy applications using GitOps with Argo CD
3
3
weight: 6
4
4
5
-
### FIXED, DO NOT MODIFY
6
5
layout: learningpathall
7
6
---
8
7
@@ -21,27 +20,22 @@ Ensure the following prerequisites are met before proceeding:
21
20
*`kubectl` is configured for the cluster
22
21
* A GitHub repository to store GitOps manifests (an empty repo is sufficient)
23
22
24
-
## Create GitOps Repository
23
+
## Create a GitOps repository
25
24
26
-
Create a local Git repository that acts as the **single source of truth** for application configuration.
25
+
Create a local Git repository that acts as the **single source of truth** for application configuration:
27
26
28
27
```console
29
28
mkdir -p argocd-arm-gitops/apps/nginx
30
29
cd argocd-arm-gitops
31
30
git init
32
31
```
33
32
34
-
What this does:
33
+
This creates a GitOps-compliant directory structure for managing Kubernetes applications and initializes a local Git repository that you'll push to GitHub. This establishes Git as the only place where application state is defined (no manual `kubectl apply`).
35
34
36
-
* Creates a GitOps-compliant directory structure for managing Kubernetes applications
37
-
* Initializes a local Git repository that will later be pushed to GitHub
38
-
* Establishes Git as the only place where application state is defined (no manual kubectl apply)
39
35
40
-
41
-
**Repository structure:**
36
+
Repository structure:
42
37
43
38
```text
44
-
Copy code
45
39
argocd-arm-gitops/
46
40
└── apps/
47
41
└── nginx/
@@ -50,10 +44,11 @@ argocd-arm-gitops/
50
44
└── service.yaml
51
45
```
52
46
53
-
## Kubernetes Manifests
47
+
## Create Kubernetes manifests
48
+
54
49
Create declarative Kubernetes manifests that define the desired state of the application.
55
50
56
-
Creates an isolated production namespace (`apps/nginx/namespace.yaml`):
51
+
Create a namespace manifest (`apps/nginx/namespace.yaml`):
* Any future Git change automatically triggers reconciliation
126
-
* Replace <YOUR_GITHUB_USERNAME> with your own GitHub username or organization name.
119
+
Replace `<YOUR_GITHUB_USERNAME>` with your GitHub username or organization name. These commits define the desired cluster state, and any future Git change automatically triggers reconciliation.
120
+
121
+
## Register the application in Argo CD
127
122
128
-
## Register Application in Argo CD
129
123
Create an Argo CD Application resource to link GitHub manifests with the GKE cluster.
130
124
131
-
Create **argo-app.yaml**:
125
+
Create `argo-app.yaml` and replace `<YOUR_GITHUB_USERNAME>` with your GitHub username or organization:
0 commit comments