Last active
February 25, 2025 14:34
-
-
Save initcron/a5928b1fc4fad138045d88135faf0e44 to your computer and use it in GitHub Desktop.
Create only vote app in Prod
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
apiVersion: argoproj.io/v1alpha1 | |
kind: ApplicationSet | |
metadata: | |
name: instavote | |
namespace: argocd | |
spec: | |
generators: | |
- matrix: | |
generators: | |
- git: | |
repoURL: https://github.com/xxxxxx/intstavote-gitops.git | |
revision: HEAD | |
directories: | |
- path: "charts/vote" | |
- list: | |
elements: | |
- environment: prod | |
namespace: instavote-prod | |
template: | |
metadata: | |
name: '{{path.basename}}-{{environment}}' | |
annotations: | |
debug.path: '{{path}}' | |
spec: | |
project: instavote-{{environment}} | |
source: | |
repoURL: https://github.com/xxxxxx/intstavote-gitops.git | |
targetRevision: release | |
path: '{{path}}' | |
helm: | |
valueFiles: | |
- env/{{environment}}.yaml | |
destination: | |
server: https://kubernetes.default.svc | |
namespace: '{{namespace}}' | |
syncPolicy: | |
automated: | |
prune: true | |
selfHeal: true | |
syncOptions: | |
- CreateNamespace=true | |
# Using templatePatch for conditional annotations | |
templatePatch: |- | |
metadata: | |
annotations: | |
special.annotation/staging-only: "true" | |
special.annotation/deployment-type: "staging" | |
special.annotation/auto-scale: "true" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment