diff --git a/k8s/application.yaml b/k8s/application.yaml index 95f68ec5..b94386f5 100644 --- a/k8s/application.yaml +++ b/k8s/application.yaml @@ -7,9 +7,9 @@ spec: destination: namespace: default name: in-cluster - project: default + project: system source: - repoURL: 'https://github.com/gensokyo-zone/infrastructure' + repoURL: "https://github.com/gensokyo-zone/infrastructure" path: k8s/system targetRevision: main syncPolicy: diff --git a/k8s/system/argocd/application.yaml b/k8s/system/argocd/application.yaml new file mode 100644 index 00000000..ec7b69ae --- /dev/null +++ b/k8s/system/argocd/application.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argocd + namespace: argocd +spec: + project: system + source: + repoURL: "https://argoproj.github.io/argo-helm/" + targetRevision: v2.9.3 + chart: argo-cd + helm: + valuesObject: + destination: + namespace: argocd + name: in-cluster + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true \ No newline at end of file diff --git a/k8s/system/argocd/kustomization.yaml b/k8s/system/argocd/kustomization.yaml new file mode 100644 index 00000000..1f43d0d7 --- /dev/null +++ b/k8s/system/argocd/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- application.yaml diff --git a/k8s/system/flannel/application.yaml b/k8s/system/flannel/application.yaml index eea6d123..ca00c501 100644 --- a/k8s/system/flannel/application.yaml +++ b/k8s/system/flannel/application.yaml @@ -6,12 +6,12 @@ metadata: spec: project: system source: - repoURL: 'https://flannel-io.github.io/flannel/' + repoURL: "https://flannel-io.github.io/flannel/" targetRevision: v0.24.x + chart: flannel helm: valuesObject: podCidr: 10.42.0.0/16 - chart: flannel destination: namespace: kube-flannel name: in-cluster diff --git a/k8s/system/kustomization.yaml b/k8s/system/kustomization.yaml index 0ddd83ab..a1fd2163 100644 --- a/k8s/system/kustomization.yaml +++ b/k8s/system/kustomization.yaml @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - project.yaml -- flannel \ No newline at end of file +- flannel +- argocd \ No newline at end of file