forked from aws-samples/eks-blueprints-workloads
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Carlos Santana <[email protected]>
1 parent
c6e5141
commit 2b70117
Showing
4 changed files
with
67 additions
and
51 deletions.
There are no files selected for viewing
24 changes: 12 additions & 12 deletions
24
multi-repo/argo-app-of-apps/dev/templates/ecsdemo-crystal.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 12 additions & 11 deletions
23
multi-repo/argo-app-of-apps/dev/templates/ecsdemo-frontend.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,42 @@ | ||
{{- if .Values.spec.apps.ecsdemoFrontend.createProject -}} | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: ecsdemo-frontend | ||
namespace: argocd | ||
name: {{ .Values.spec.apps.ecsdemoFrontend.project | default "ecsdemo-frontend" }} | ||
namespace: {{ .Values.argoNamespace | default "argocd" }} | ||
# Finalizer that ensures that project is not deleted until it is not referenced by any application | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
destinations: | ||
- namespace: ecsdemo-frontend | ||
server: https://kubernetes.default.svc | ||
- namespace: {{ .Values.spec.apps.ecsdemoFrontend.namespace | default "ecsdemo-frontend" }} | ||
server: {{ .Values.spec.destination.server }} | ||
sourceRepos: | ||
- {{ .Values.spec.apps.ecsdemoFrontend.repoURL }} | ||
{{- end }} | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: ecsdemo-frontend | ||
namespace: argocd | ||
name: {{ .Values.spec.apps.ecsdemoFrontend.name | default "ecsdemo-frontend" }} | ||
namespace: {{ .Values.argoNamespace | default "argocd" }} | ||
labels: | ||
{{- toYaml .Values.labels | nindent 4 }} | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: ecsdemo-frontend | ||
project: {{ .Values.spec.apps.ecsdemoFrontend.project | default "ecsdemo-frontend" }} | ||
destination: | ||
namespace: ecsdemo-frontend | ||
namespace: {{ .Values.spec.apps.ecsdemoFrontend.namespace | default "ecsdemo-frontend" }} | ||
server: {{ .Values.spec.destination.server }} | ||
source: | ||
repoURL: {{ .Values.spec.apps.ecsdemoFrontend.repoURL }} | ||
targetRevision: {{ .Values.spec.apps.ecsdemoFrontend.targetRevision }} | ||
path: {{ .Values.spec.apps.ecsdemoFrontend.path }} | ||
helm: | ||
values: |- | ||
{{ toYaml .Values.spec.apps.ecsdemoFrontend | nindent 8 }} | ||
{{- toYaml .Values.spec.apps.ecsdemoFrontend.helm | nindent 6 }} | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
syncOptions: | ||
- CreateNamespace=false # Created with IaC - https://github.com/argoproj/argo-cd/issues/7799 | ||
- CreateNamespace=false # Created with IaC - # https://github.com/argoproj/argo-cd/issues/7799 |
22 changes: 11 additions & 11 deletions
22
multi-repo/argo-app-of-apps/dev/templates/ecsdemo-nodejs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,49 @@ | ||
argoNamespace: '' | ||
|
||
labels: | ||
env: dev | ||
spec: | ||
destination: | ||
server: https://kubernetes.default.svc | ||
# All helm parameters can be sent by IaC code (Terraform or CDK) | ||
# All helm parameters can be sent by IaC code (Terraform or CDK) | ||
apps: | ||
ecsdemoFrontend: | ||
createProject: true | ||
#repoURL: [email protected]:aws-containers/ecsdemo-frontend.git | ||
repoURL: https://github.com/aws-containers/ecsdemo-frontend.git | ||
repoURL: https://github.com/aws-containers/ecsdemo-frontend.git | ||
targetRevision: main | ||
path: kubernetes/helm/ecsdemo-frontend | ||
ingress: | ||
enabled: true | ||
annotations: | ||
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}]' | ||
alb.ingress.kubernetes.io/scheme: internet-facing | ||
alb.ingress.kubernetes.io/tags: Environment=dev,Team=ecsdemo-frontend | ||
alb.ingress.kubernetes.io/target-type: ip | ||
className: alb | ||
hosts: | ||
- paths: | ||
- path: / | ||
pathType: Prefix | ||
helm: | ||
values: |- | ||
ingress: | ||
enabled: true | ||
annotations: | ||
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}]' | ||
alb.ingress.kubernetes.io/scheme: internet-facing | ||
alb.ingress.kubernetes.io/tags: Environment=dev,Team=ecsdemo-frontend | ||
alb.ingress.kubernetes.io/target-type: ip | ||
className: alb | ||
hosts: | ||
- paths: | ||
- path: / | ||
pathType: Prefix | ||
ecsdemoNodejs: | ||
repoURL: https://github.com/aws-containers/ecsdemo-nodejs.git | ||
createProject: true | ||
repoURL: https://github.com/aws-containers/ecsdemo-nodejs.git | ||
#repoURL: [email protected]:aws-containers/ecsdemo-nodejs.git | ||
targetRevision: main | ||
path: kubernetes/helm/ecsdemo-nodejs | ||
helm: | ||
parameters: | ||
- name: replicaCount | ||
value: '3' | ||
ecsdemoCrystal: | ||
repoURL: https://github.com/aws-containers/ecsdemo-crystal.git | ||
createProject: true | ||
repoURL: https://github.com/aws-containers/ecsdemo-crystal.git | ||
#repoURL: [email protected]:aws-containers/ecsdemo-crystal.git | ||
targetRevision: main | ||
path: kubernetes/helm/ecsdemo-crystal | ||
path: kubernetes/helm/ecsdemo-crystal | ||
helm: | ||
parameters: | ||
- name: replicaCount | ||
value: '3' |