34 lines
760 B
YAML
34 lines
760 B
YAML
# /kustomization.yaml
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
resources:
|
|
# Load the namespaces first
|
|
- namespaces.yaml
|
|
# - namespaces/infra-ns.yaml
|
|
# - namespaces/db-ns.yaml
|
|
# - namespaces/stream-ns.yaml
|
|
# - namespaces/apps-ns.yaml
|
|
# - namespaces/argocd-ns.yaml # Make sure this exists
|
|
# Then load the application folders
|
|
- longhorn-system/
|
|
- db/
|
|
- infra/
|
|
- argocd/
|
|
- linkerd/
|
|
|
|
# 3. Global settings (Optional)
|
|
commonAnnotations:
|
|
managed-by: kustomize
|
|
owner: invixel
|
|
|
|
# RUN:
|
|
# kubectl apply -k .
|
|
# kubectl delete -k .
|
|
# Check:
|
|
# # Check everything at once
|
|
# kubectl get pods -A # or -n ur_namespace
|
|
|
|
# Run also for files inside folders recursively
|
|
# kustomize build . --enable-helm | kubectl apply -f -
|