Skip to content

Commit dcd3f79

Browse files
author
Houssem Dellai
committed
work in progress
1 parent 48df7f3 commit dcd3f79

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

292_gitops_argocd_helm_multi_apps/Readme.md

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ We'll deploy the sample application prvided in `helm` folder.
6464
First create the namespace for the application.
6565

6666
```sh
67-
kubectl create namespace app01
67+
kubectl create namespace app001
6868
```
6969

7070
Then deploy the app through ArgoCD.
@@ -78,23 +78,31 @@ Here is its configuration.
7878
apiVersion: argoproj.io/v1alpha1
7979
kind: Application
8080
metadata:
81-
name: app01
81+
name: app001
8282
namespace: argocd
8383
spec:
84-
destination:
85-
namespace: app01
86-
server: https://kubernetes.default.svc
84+
project: project-apps
8785
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/
9088
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
92100
```
93101
94102
Let's deploy it to AKS through ArgoCD server.
95103
96104
```sh
97-
kubectl apply -f app-argocd.yaml
105+
kubectl apply -f app-argocd-001.yaml
98106
```
99107

100108
Check the app is installed correctly.
@@ -125,22 +133,22 @@ argocd login 4.178.217.48:80
125133
```
126134

127135
```sh
128-
argocd app get app01
129-
# Name: argocd/app01
136+
# argocd app get app001
137+
# Name: argocd/app001
130138
# Project: project-apps
131139
# 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
134142
# Source:
135-
# - Repo: https://github.com/HoussemDellai/aks-course
143+
# - Repo: https://github.com/HoussemDellai/aks-course/
136144
# Target: HEAD
137-
# Path: 291_gitops_argocd_helm/helm
145+
# Path: 292_gitops_argocd_helm_multi_apps/helm/
138146
# SyncWindow: Sync Allowed
139147
# Sync Policy: Manual
140-
# Sync Status: Synced to HEAD (d91b8ff)
148+
# Sync Status: Synced to HEAD (e77dd42)
141149
# Health Status: Healthy
142150

143151
# 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
146154
```

0 commit comments

Comments
 (0)