Skip to content

Commit 3a7e9b2

Browse files
committed
feat: add application configuration for guestbook in ArgoCD
Signed-off-by: jiwlee <ddazi9576@gmail.com>
1 parent 0659592 commit 3a7e9b2

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: {{ .Values.application.metadata.name | default "guestbook" }}
5+
namespace: {{ .Values.application.metadata.namespace | default "argocd-apps-dev" }}
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: {{ .Values.project.name | default "guestbook-project" }}
10+
source:
11+
repoURL: {{ .Values.application.spec.source.repoURL | default "https://github.com/argoproj/argocd-example-apps.git" }}
12+
targetRevision: {{ .Values.application.spec.source.targetRevision | default "HEAD" }}
13+
path: {{ .Values.application.spec.source.path | default "helm-guestbook" }}
14+
destination:
15+
server: {{ .Values.application.spec.destination.server | default "https://kubernetes.default.svc" }}
16+
namespace: {{ .Values.application.spec.destination.namespace | default "guestbook" }}
17+
syncPolicy:
18+
automated:
19+
prune: true
20+
selfHeal: true
21+
revisionHistoryLimit: 10

2025/argo-cd/jiwlee97/values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,18 @@ project:
1515
kind: Deployment
1616
- group: ""
1717
kind: Service
18+
19+
# guestbook 애플리케이션 설정
20+
application:
21+
metadata:
22+
name: guestbook
23+
namespace: argocd
24+
spec:
25+
project: guestbook-project
26+
source:
27+
repoURL: https://github.com/argoproj/argocd-example-apps.git
28+
targetRevision: HEAD
29+
path: helm-guestbook
30+
destination:
31+
server: https://kubernetes.default.svc
32+
namespace: guestbook

0 commit comments

Comments
 (0)