Skip to content

Commit cf49f17

Browse files
committed
refactor: App of Apps 패턴 적용- 서비스 매니페스트 제거 및 ArgoCD Application 추가
1 parent d5bf468 commit cf49f17

8 files changed

Lines changed: 232 additions & 0 deletions

k8s/argocd/auth-service-app.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: opentraum-auth-service
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: default
10+
source:
11+
repoURL: git@github.com:OpenTraum/OpenTraum-auth-service.git
12+
targetRevision: main
13+
path: k8s
14+
destination:
15+
server: https://kubernetes.default.svc
16+
namespace: opentraum
17+
syncPolicy:
18+
automated:
19+
prune: true
20+
selfHeal: true
21+
syncOptions:
22+
- CreateNamespace=true
23+
- PruneLast=true
24+
retry:
25+
limit: 3
26+
backoff:
27+
duration: 10s
28+
maxDuration: 3m
29+
factor: 2

k8s/argocd/event-service-app.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: opentraum-event-service
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: default
10+
source:
11+
repoURL: git@github.com:OpenTraum/OpenTraum-event-service.git
12+
targetRevision: main
13+
path: k8s
14+
destination:
15+
server: https://kubernetes.default.svc
16+
namespace: opentraum
17+
syncPolicy:
18+
automated:
19+
prune: true
20+
selfHeal: true
21+
syncOptions:
22+
- CreateNamespace=true
23+
- PruneLast=true
24+
retry:
25+
limit: 3
26+
backoff:
27+
duration: 10s
28+
maxDuration: 3m
29+
factor: 2

k8s/argocd/gateway-app.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: opentraum-gateway
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: default
10+
source:
11+
repoURL: git@github.com:OpenTraum/OpenTraum-gateway.git
12+
targetRevision: main
13+
path: k8s
14+
destination:
15+
server: https://kubernetes.default.svc
16+
namespace: opentraum
17+
syncPolicy:
18+
automated:
19+
prune: true
20+
selfHeal: true
21+
syncOptions:
22+
- CreateNamespace=true
23+
- PruneLast=true
24+
retry:
25+
limit: 3
26+
backoff:
27+
duration: 10s
28+
maxDuration: 3m
29+
factor: 2

k8s/argocd/infra-app.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: opentraum-infra
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: default
10+
source:
11+
repoURL: git@github.com:OpenTraum/OpenTraum-Infra.git
12+
targetRevision: main
13+
path: k8s
14+
destination:
15+
server: https://kubernetes.default.svc
16+
namespace: opentraum
17+
syncPolicy:
18+
automated:
19+
prune: true
20+
selfHeal: true
21+
syncOptions:
22+
- CreateNamespace=true
23+
- PruneLast=true
24+
retry:
25+
limit: 3
26+
backoff:
27+
duration: 10s
28+
maxDuration: 3m
29+
factor: 2

k8s/argocd/payment-service-app.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: opentraum-payment-service
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: default
10+
source:
11+
repoURL: git@github.com:OpenTraum/OpenTraum-payment-service.git
12+
targetRevision: main
13+
path: k8s
14+
destination:
15+
server: https://kubernetes.default.svc
16+
namespace: opentraum
17+
syncPolicy:
18+
automated:
19+
prune: true
20+
selfHeal: true
21+
syncOptions:
22+
- CreateNamespace=true
23+
- PruneLast=true
24+
retry:
25+
limit: 3
26+
backoff:
27+
duration: 10s
28+
maxDuration: 3m
29+
factor: 2
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: opentraum-reservation-service
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: default
10+
source:
11+
repoURL: git@github.com:OpenTraum/OpenTraum-reservation-service.git
12+
targetRevision: main
13+
path: k8s
14+
destination:
15+
server: https://kubernetes.default.svc
16+
namespace: opentraum
17+
syncPolicy:
18+
automated:
19+
prune: true
20+
selfHeal: true
21+
syncOptions:
22+
- CreateNamespace=true
23+
- PruneLast=true
24+
retry:
25+
limit: 3
26+
backoff:
27+
duration: 10s
28+
maxDuration: 3m
29+
factor: 2

k8s/argocd/user-service-app.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: opentraum-user-service
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: default
10+
source:
11+
repoURL: git@github.com:OpenTraum/OpenTraum-user-service.git
12+
targetRevision: main
13+
path: k8s
14+
destination:
15+
server: https://kubernetes.default.svc
16+
namespace: opentraum
17+
syncPolicy:
18+
automated:
19+
prune: true
20+
selfHeal: true
21+
syncOptions:
22+
- CreateNamespace=true
23+
- PruneLast=true
24+
retry:
25+
limit: 3
26+
backoff:
27+
duration: 10s
28+
maxDuration: 3m
29+
factor: 2

k8s/argocd/web-app.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: opentraum-web
5+
namespace: argocd
6+
finalizers:
7+
- resources-finalizer.argocd.argoproj.io
8+
spec:
9+
project: default
10+
source:
11+
repoURL: git@github.com:OpenTraum/OpenTraum-Web.git
12+
targetRevision: main
13+
path: k8s
14+
destination:
15+
server: https://kubernetes.default.svc
16+
namespace: opentraum
17+
syncPolicy:
18+
automated:
19+
prune: true
20+
selfHeal: true
21+
syncOptions:
22+
- CreateNamespace=true
23+
- PruneLast=true
24+
retry:
25+
limit: 3
26+
backoff:
27+
duration: 10s
28+
maxDuration: 3m
29+
factor: 2

0 commit comments

Comments
 (0)