diff --git a/infra/argocd/infrastructure.yaml b/infra/argocd/infrastructure.yaml index 3fcc46d..8cb527a 100644 --- a/infra/argocd/infrastructure.yaml +++ b/infra/argocd/infrastructure.yaml @@ -5,8 +5,9 @@ metadata: namespace: argocd spec: sourceRepos: - - 'https://github.com/vehagn/*' + - 'https://github.com/vehagn/homelab' - 'https://helm.traefik.io/*' + - 'https://helm.cilium.io/*' destinations: - namespace: 'argocd' server: '*' @@ -16,6 +17,8 @@ spec: server: '*' - namespace: 'traefik-system' server: '*' + - namespace: 'kube-system' + server: '*' clusterResourceWhitelist: - group: '*' kind: '*' diff --git a/infra/cilium.yaml b/infra/cilium.yaml new file mode 100644 index 0000000..6984109 --- /dev/null +++ b/infra/cilium.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: cilium + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: infrastructure + source: + plugin: + name: kustomize-build-with-helm + path: infra/cilium + repoURL: https://github.com/vehagn/homelab + targetRevision: HEAD + destination: + namespace: kube-system + name: in-cluster + syncPolicy: + automated: + selfHeal: true + prune: true \ No newline at end of file diff --git a/infra/cilium/kustomization.yaml b/infra/cilium/kustomization.yaml new file mode 100644 index 0000000..0155ae5 --- /dev/null +++ b/infra/cilium/kustomization.yaml @@ -0,0 +1,10 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: kube-system + +helmCharts: + - name: cilium + repo: https://helm.cilium.io + version: 1.12.2 + releaseName: "cilium" + valuesFile: values.yaml \ No newline at end of file diff --git a/infra/cilium/values.yaml b/infra/cilium/values.yaml new file mode 100644 index 0000000..763aab2 --- /dev/null +++ b/infra/cilium/values.yaml @@ -0,0 +1,19 @@ +cluster: + id: 0 + name: kubernetes + +encryption: + nodeEncryption: false + +kubeProxyReplacement: disabled + +operator: + replicas: 1 + +serviceAccounts: + cilium: + name: cilium + operator: + name: cilium-operator + +tunnel: vxlan \ No newline at end of file diff --git a/infra/traefikApp.yaml b/infra/traefik.yaml similarity index 100% rename from infra/traefikApp.yaml rename to infra/traefik.yaml