From 98a246c9dc8b3c12c075bfe1bf4624965628c554 Mon Sep 17 00:00:00 2001 From: Arthur Date: Mon, 23 Dec 2024 17:49:15 +0000 Subject: [PATCH] feat(cloudflare-ddns): MicroShift --- .../argocd/applications/kustomization.yaml | 1 + .../microshift/cloudflare-ddns.yaml | 28 +++++++++++++++++++ .../cloudflare-ddns/base/deployment.yaml | 2 ++ .../overlays/microshift/kustomization.yaml | 12 ++++++++ .../components/pg_admin/pg_admin.yaml | 2 +- 5 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 kubernetes/argocd/applications/microshift/cloudflare-ddns.yaml create mode 100644 kubernetes/cloudflare-ddns/overlays/microshift/kustomization.yaml diff --git a/kubernetes/argocd/applications/kustomization.yaml b/kubernetes/argocd/applications/kustomization.yaml index c4018c065..18a00af7c 100644 --- a/kubernetes/argocd/applications/kustomization.yaml +++ b/kubernetes/argocd/applications/kustomization.yaml @@ -73,4 +73,5 @@ resources: - ./microshift/kube-eagle.yaml - ./microshift/external-secrets-operator.yaml - ./microshift/stackrox-secure.yaml + - ./microshift/cloudflare-ddns.yaml # - ./microshift/kyverno.yaml diff --git a/kubernetes/argocd/applications/microshift/cloudflare-ddns.yaml b/kubernetes/argocd/applications/microshift/cloudflare-ddns.yaml new file mode 100644 index 000000000..dc9ee150a --- /dev/null +++ b/kubernetes/argocd/applications/microshift/cloudflare-ddns.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: cloudflare-ddns-microshift + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "1" + argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true + notifications.argoproj.io/subscribe.on-sync-succeeded.gh-cluster: "" + notifications.argoproj.io/subscribe.on-sync-failed.gh-cluster: "" + notifications.argoproj.io/subscribe.on-sync-status-unknown.gh-cluster: "" + notifications.argoproj.io/subscribe.on-health-degraded.gh-cluster: "" + labels: + app.kubernetes.io/instance: argocd +spec: + destination: + namespace: cloudflare-ddns + server: https://microshift.arthurvardevanyan.com:6443 + project: default + source: + path: kubernetes/cloudflare-ddns/overlays/microshift + repoURL: https://git.arthurvardevanyan.com/ArthurVardevanyan/HomeLab + targetRevision: HEAD + plugin: + name: argocd-vault-plugin-kustomize + syncPolicy: + syncOptions: + - CreateNamespace=true diff --git a/kubernetes/cloudflare-ddns/base/deployment.yaml b/kubernetes/cloudflare-ddns/base/deployment.yaml index 1e15bab8d..06e5a0018 100644 --- a/kubernetes/cloudflare-ddns/base/deployment.yaml +++ b/kubernetes/cloudflare-ddns/base/deployment.yaml @@ -78,3 +78,5 @@ spec: value: "" - name: DOMAINS value: "homelab.arthurvardevanyan.com" + - name: IP6_PROVIDER + value: "none" diff --git a/kubernetes/cloudflare-ddns/overlays/microshift/kustomization.yaml b/kubernetes/cloudflare-ddns/overlays/microshift/kustomization.yaml new file mode 100644 index 000000000..8bad06f3e --- /dev/null +++ b/kubernetes/cloudflare-ddns/overlays/microshift/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - ../../base +patches: + - target: + kind: Deployment + name: cloudflare-ddns + patch: |- + - op: replace + path: /spec/replicas + value: 1 diff --git a/kubernetes/postgres/components/pg_admin/pg_admin.yaml b/kubernetes/postgres/components/pg_admin/pg_admin.yaml index fbe8bf0fa..f540d2d96 100644 --- a/kubernetes/postgres/components/pg_admin/pg_admin.yaml +++ b/kubernetes/postgres/components/pg_admin/pg_admin.yaml @@ -9,7 +9,7 @@ spec: - ReadWriteOnce resources: requests: - storage: 1Gi + storage: 5Gi resources: limits: cpu: 250m