roozeec/argocd-app-configpublic Fork 0
5c0c4f2
Commits
Clone
git clone https://git.rickub.com/roozeec/argocd-app-config.git
git clone ssh://git@rickub.com/roozeec/argocd-app-config.git

Test

Nana Janashia committed 2021-10-10T18:13:23+02:00 Browse files
5c0c4f2 parent: 84bc7be
added app.yaml +16 -0
new file mode 100644
@@ -0,0 +1,16 @@
1+apiVersion: argoproj.io/v1alpha1
2+kind: Application
3+metadata:
4+ name: myapp
5+ namespace: argocd
6+spec:
7+ project: default
8+
9+ # repository, revision, path, environment
10+ source:
11+ repoURL: https://gitlab.com/nanuchi/argocd-app-config.git
12+ targetRevision: HEAD
13+ path: dev
14+ destination:
15+ server: https://kubernetes.default.svc
16+ namespace: default
\ No newline at end of file
new file mode 100644
@@ -0,0 +1,16 @@
1+apiVersion: argoproj.io/v1alpha1
2+kind: Application
3+metadata:
4+ name: myapp
5+ namespace: argocd
6+spec:
7+ project: default
8+
9+ # repository, revision, path, environment
10+ source:
11+ repoURL: https://gitlab.com/nanuchi/argocd-app-config.git
12+ targetRevision: HEAD
13+ path: dev
14+ destination:
15+ server: https://kubernetes.default.svc
16+ namespace: default
\ No newline at end of file\ No newline at end of file
added dev/configmap.yaml +8 -0
new file mode 100644
@@ -0,0 +1,8 @@
1+apiVersion: v1
2+kind: ConfigMap
3+metadata:
4+ name: myapp-config
5+ # annotation needed for configMaps, so ArgoCD will use them
6+ app.kubernetes.io/part-of: argocd
7+data:
8+ log_level: INFO
\ No newline at end of file
new file mode 100644
@@ -0,0 +1,8 @@
1+apiVersion: v1
2+kind: ConfigMap
3+metadata:
4+ name: myapp-config
5+ # annotation needed for configMaps, so ArgoCD will use them
6+ app.kubernetes.io/part-of: argocd
7+data:
8+ log_level: INFO
\ No newline at end of file\ No newline at end of file
renamed dev/deployment.yaml +7 -1
similarity index 61%
rename from deployment.yaml
rename to dev/deployment.yaml
@@ -16,4 +16,10 @@ spec:
1616 - name: myapp
1717 image: nanajanashia/argocd-app:1.0
1818 ports:
19- - containerPort: 8080
\ No newline at end of file
19+ - containerPort: 8080
20+ env:
21+ - name: LOG_LEVEL
22+ valueFrom:
23+ configMapKeyRef:
24+ - name: myapp-config
25+ key: log_level
\ No newline at end of file
similarity index 61%
rename from deployment.yaml
rename to dev/deployment.yaml
@@ -16,4 +16,10 @@ spec:
16 - name: myapp16 - name: myapp
17 image: nanajanashia/argocd-app:1.017 image: nanajanashia/argocd-app:1.0
18 ports:18 ports:
19- - containerPort: 8080
\ No newline at end of file\ No newline at end of file
19+ - containerPort: 8080
20+ env:
21+ - name: LOG_LEVEL
22+ valueFrom:
23+ configMapKeyRef:
24+ - name: myapp-config
25+ key: log_level
\ No newline at end of file\ No newline at end of file
renamed dev/service.yaml +0 -0
similarity index 100%
rename from service.yaml
rename to dev/service.yaml
similarity index 100%
rename from service.yaml
rename to dev/service.yaml