@@ -64,7 +64,7 @@ We'll deploy the sample application prvided in `helm` folder.
64
64
First create the namespace for the application.
65
65
66
66
``` sh
67
- kubectl create namespace app01
67
+ kubectl create namespace app001
68
68
```
69
69
70
70
Then deploy the app through ArgoCD.
@@ -78,23 +78,31 @@ Here is its configuration.
78
78
apiVersion : argoproj.io/v1alpha1
79
79
kind : Application
80
80
metadata :
81
- name : app01
81
+ name : app001
82
82
namespace : argocd
83
83
spec :
84
- destination :
85
- namespace : app01
86
- server : https://kubernetes.default.svc
84
+ project : project-apps
87
85
source :
88
- path : 291_gitops_argocd_helm /helm
89
- repoURL : https://github.com/HoussemDellai/aks-course
86
+ path : 292_gitops_argocd_helm_multi_apps /helm/
87
+ repoURL : https://github.com/HoussemDellai/aks-course/
90
88
targetRevision : HEAD
91
- project : project-apps
89
+ helm :
90
+ valuesObject :
91
+ env :
92
+ DATABASE_FQDN : " sqlserver-poc-001.database.windows.net"
93
+ DATABASE_NAME : " inspectorgadget"
94
+ DATABASE_USERNAME : " sqladmin"
95
+ DATABASE_PASSWORD : " P@ssw0rd"
96
+ DATABASE_PORT : " 1433"
97
+ destination :
98
+ namespace : app001
99
+ server : https://kubernetes.default.svc
92
100
` ` `
93
101
94
102
Let's deploy it to AKS through ArgoCD server.
95
103
96
104
` ` ` sh
97
- kubectl apply -f app-argocd.yaml
105
+ kubectl apply -f app-argocd-001 .yaml
98
106
```
99
107
100
108
Check the app is installed correctly.
@@ -125,22 +133,22 @@ argocd login 4.178.217.48:80
125
133
```
126
134
127
135
``` sh
128
- argocd app get app01
129
- # Name: argocd/app01
136
+ # argocd app get app001
137
+ # Name: argocd/app001
130
138
# Project: project-apps
131
139
# Server: https://kubernetes.default.svc
132
- # Namespace: app01
133
- # URL: https://4.178.217.48:80/applications/app01
140
+ # Namespace: app001
141
+ # URL: https://4.178.217.48:80/applications/app001
134
142
# Source:
135
- # - Repo: https://github.com/HoussemDellai/aks-course
143
+ # - Repo: https://github.com/HoussemDellai/aks-course/
136
144
# Target: HEAD
137
- # Path: 291_gitops_argocd_helm /helm
145
+ # Path: 292_gitops_argocd_helm_multi_apps /helm/
138
146
# SyncWindow: Sync Allowed
139
147
# Sync Policy: Manual
140
- # Sync Status: Synced to HEAD (d91b8ff )
148
+ # Sync Status: Synced to HEAD (e77dd42 )
141
149
# Health Status: Healthy
142
150
143
151
# GROUP KIND NAMESPACE NAME STATUS HEALTH HOOK MESSAGE
144
- # Service app01 inspectorgadget Synced Healthy service/inspectorgadget created
145
- # apps Deployment app01 inspectorgadget Synced Healthy deployment.apps/inspectorgadget created
152
+ # Service app001 inspectorgadget Synced Healthy service/inspectorgadget created
153
+ # apps Deployment app001 inspectorgadget Synced Healthy deployment.apps/inspectorgadget created
146
154
```
0 commit comments