Initial commit
This commit is contained in:
commit
bc0e97dfbe
33
applicationSet.yaml
Normal file
33
applicationSet.yaml
Normal file
@ -0,0 +1,33 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: net-envs-appset
|
||||
namespace: argocd
|
||||
spec:
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://git.dvirlabs.com/app-definition.git
|
||||
revision: HEAD
|
||||
files:
|
||||
- path: net-envs/*/metadata.yaml
|
||||
extract:
|
||||
env: '{{.env}}'
|
||||
project: '{{.project}}'
|
||||
namespace: '{{.namespace}}'
|
||||
template:
|
||||
metadata:
|
||||
name: net-env-{{env}}
|
||||
spec:
|
||||
project: '{{project}}'
|
||||
source:
|
||||
repoURL: https://git.dvirlabs.com/app-definition.git
|
||||
path: env-sets
|
||||
directory:
|
||||
recurse: true
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: '{{namespace}}'
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
prune: true
|
||||
31
env-sets/dev/applicationSet.yaml
Normal file
31
env-sets/dev/applicationSet.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: dev-ms-apps
|
||||
namespace: argocd
|
||||
spec:
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://github.com/your-org/apps-config.git
|
||||
revision: HEAD
|
||||
files:
|
||||
- path: net-envs/dev/*.yaml
|
||||
template:
|
||||
metadata:
|
||||
name: dev-{{basenameNormalized}}
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://git.dvirlabs.com/dvirlabs/app-provision.git
|
||||
targetRevision: HEAD
|
||||
chart: charts/nginx-message
|
||||
helm:
|
||||
valueFiles:
|
||||
- env-sets/dev/values.yaml
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: dev
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
prune: true
|
||||
0
env-sets/dev/metadata.yaml
Normal file
0
env-sets/dev/metadata.yaml
Normal file
0
env-sets/int/applicationSet.yaml
Normal file
0
env-sets/int/applicationSet.yaml
Normal file
0
env-sets/int/metadata.yaml
Normal file
0
env-sets/int/metadata.yaml
Normal file
0
env-sets/prod/applicationSet.yaml
Normal file
0
env-sets/prod/applicationSet.yaml
Normal file
0
env-sets/prod/metadata.yaml
Normal file
0
env-sets/prod/metadata.yaml
Normal file
Loading…
x
Reference in New Issue
Block a user