baseline/init.yml
Sebastian Mark 194be3e7ca FEAT!: move to GitOps
* deploy ArgoCD via server-side Helm
* deploy baseline via ArgoCD Application
  * define all baseline tools as Helm Application
* omit ansible playbook
* update README
2022-03-31 21:25:21 +02:00

52 lines
1.2 KiB
YAML

---
apiVersion: v1
kind: Namespace
metadata:
name: argocd
---
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: argocd
namespace: kube-system
spec:
repo: https://argoproj.github.io/argo-helm
chart: argo-cd
targetNamespace: argocd
valuesContent: |-
applicationSet:
enabled: false
notifications:
enabled: false
dex:
enabled: false
server:
replicas: 0
additionalProjects:
- name: baseline
namespace: argocd
sourceRepos:
- '*'
destinations:
- namespace: '*'
server: '*'
clusterResourceWhitelist:
- group: '*'
kind: '*'
additionalApplications:
- name: baseline
namespace: argocd
project: baseline
source:
repoURL: 'https://git.smsvc.net/k8s/pb_baseline.git'
targetRevision: HEAD
path: baseline/
directory:
recurse: true
destination:
server: 'https://kubernetes.default.svc'
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true