kustomize
This commit is contained in:
@@ -1,43 +1,37 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: ApplicationSet
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: infrastructure-apps
|
name: infrastructure-app-of-apps
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: infrastructure-app-of-apps
|
||||||
|
app.kubernetes.io/part-of: platform
|
||||||
|
app.kubernetes.io/managed-by: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "-1"
|
||||||
spec:
|
spec:
|
||||||
goTemplate: true
|
project: default
|
||||||
generators:
|
source:
|
||||||
- git:
|
repoURL: https://github.com/fortedigital/sturdy-adventure.git
|
||||||
repoURL: https://github.com/snothub/sturdy-adventure.git
|
targetRevision: HEAD
|
||||||
revision: HEAD
|
path: argocd
|
||||||
directories:
|
kustomize:
|
||||||
- path: argocd/infra/*.yaml
|
enable: true
|
||||||
template:
|
destination:
|
||||||
metadata:
|
server: https://kubernetes.default.svc
|
||||||
name: "{{ .path.basenameNormalized }}"
|
namespace: argocd
|
||||||
labels:
|
syncPolicy:
|
||||||
app.kubernetes.io/name: "{{ .path.basenameNormalized }}"
|
automated:
|
||||||
app.kubernetes.io/part-of: platform
|
prune: true
|
||||||
app.kubernetes.io/managed-by: argocd
|
selfHeal: true
|
||||||
spec:
|
syncOptions:
|
||||||
project: default
|
- CreateNamespace=true
|
||||||
source:
|
- Validate=true
|
||||||
repoURL: https://github.com/snothub/sturdy-adventure.git
|
- ServerSideApply=true
|
||||||
targetRevision: HEAD
|
timeout: 300s
|
||||||
path: "{{ .path.dir }}"
|
retry:
|
||||||
destination:
|
limit: 5
|
||||||
server: https://kubernetes.default.svc
|
backoff:
|
||||||
namespace: argocd
|
duration: 5s
|
||||||
syncPolicy:
|
factor: 2
|
||||||
automated:
|
maxDuration: 3m
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
- Validate=true
|
|
||||||
- ServerSideApply=true
|
|
||||||
retry:
|
|
||||||
limit: 5
|
|
||||||
backoff:
|
|
||||||
duration: 5s
|
|
||||||
factor: 2
|
|
||||||
maxDuration: 3m
|
|
||||||
|
|||||||
23
argocd/kustomization.yaml
Normal file
23
argocd/kustomization.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: infrastructure
|
||||||
|
|
||||||
|
# Include all infrastructure Application manifests as-is (no templating or modification)
|
||||||
|
resources:
|
||||||
|
# Platform components
|
||||||
|
- infra/traefik-application.yaml
|
||||||
|
- infra/cert-manager-application.yaml
|
||||||
|
- infra/cluster-resources-application.yaml
|
||||||
|
- infra/kyverno.yaml
|
||||||
|
- infra/sealedsecrets.yaml
|
||||||
|
- infra/trivy.yaml
|
||||||
|
|
||||||
|
# Monitoring stack
|
||||||
|
- infra/prometheus.yaml
|
||||||
|
- infra/grafana.yaml
|
||||||
|
- infra/loki.yaml
|
||||||
|
- infra/fluent-bit.yaml
|
||||||
|
|
||||||
|
# Business applications (currently empty, will auto-include any YAML files added)
|
||||||
|
- apps/
|
||||||
Reference in New Issue
Block a user