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: |
| 16 | 16 | - name: myapp |
| 17 | 17 | image: nanajanashia/argocd-app:1.0 |
| 18 | 18 | 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: myapp | 16 | - name: myapp |
| 17 | image: nanajanashia/argocd-app:1.0 | 17 | 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 |