From 700db1be08abd273cb8d2f6ff00a34921f10526b Mon Sep 17 00:00:00 2001 From: Marcel Straub Date: Sun, 7 Sep 2025 16:04:43 +0200 Subject: [PATCH] initial network argocd project (#9) Co-authored-by: Marcel Straub Reviewed-on: https://git.straubintra.net/s5b-public/k8s/pulls/9 --- 02-k8s/infra/network/application-set.yaml | 34 +++++++++++++++++++++++ 02-k8s/infra/network/kustomization.yaml | 9 ++++++ 02-k8s/infra/network/project.yaml | 18 ++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 02-k8s/infra/network/application-set.yaml create mode 100644 02-k8s/infra/network/kustomization.yaml create mode 100644 02-k8s/infra/network/project.yaml diff --git a/02-k8s/infra/network/application-set.yaml b/02-k8s/infra/network/application-set.yaml new file mode 100644 index 0000000..049ce1b --- /dev/null +++ b/02-k8s/infra/network/application-set.yaml @@ -0,0 +1,34 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: network + namespace: argocd + labels: + s5b.org: network +spec: + generators: + - git: + repoURL: https://git.straubintra.net/s5b-public/k8s.git + revision: HEAD + directories: + - path: 02-k8s/infra/network/* + template: + metadata: + name: '{{ path.basename }}' + labels: + s5b.org: network + spec: + project: network + source: + repoURL: https://git.straubintra.net/s5b-public/k8s.git + targetRevision: HEAD + path: '{{ path }}' + destination: + name: in-cluster + namespace: argocd + syncPolicy: + automated: + selfHeal: true + prune: true + syncOptions: + - ServerSideApply=true \ No newline at end of file diff --git a/02-k8s/infra/network/kustomization.yaml b/02-k8s/infra/network/kustomization.yaml new file mode 100644 index 0000000..f60ff1b --- /dev/null +++ b/02-k8s/infra/network/kustomization.yaml @@ -0,0 +1,9 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +commonLabels: + s5b.org: network + app.kubernetes.io/managed-by: argocd + +resources: + - project.yaml + - application-set.yaml \ No newline at end of file diff --git a/02-k8s/infra/network/project.yaml b/02-k8s/infra/network/project.yaml new file mode 100644 index 0000000..7ba7da5 --- /dev/null +++ b/02-k8s/infra/network/project.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: network + namespace: argocd +spec: + sourceRepos: + - 'https://git.straubintra.net/s5b-public/k8s.git' + destinations: + - namespace: 'argocd' + server: '*' + - namespace: 'kube-system' + server: '*' + - namespace: 'cilium-secrets' + server: '*' + clusterResourceWhitelist: + - group: '*' + kind: '*' \ No newline at end of file