From 8ce2c4f034d106826db04f2d134d236abc0bbee9 Mon Sep 17 00:00:00 2001 From: Dan Manners Date: Sat, 16 Sep 2023 02:07:45 -0400 Subject: [PATCH] Adding ExternalDNS --- manifests/workloads/gitea/external-dns.yaml | 13 +++++++++++++ manifests/workloads/gitea/kustomization.yaml | 1 + 2 files changed, 14 insertions(+) create mode 100644 manifests/workloads/gitea/external-dns.yaml diff --git a/manifests/workloads/gitea/external-dns.yaml b/manifests/workloads/gitea/external-dns.yaml new file mode 100644 index 00000000..2703c888 --- /dev/null +++ b/manifests/workloads/gitea/external-dns.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: gitea-extname + annotations: + external-dns.alpha.kubernetes.io/hostname: git.homelab.danmanners.com + external-dns.alpha.kubernetes.io/ttl: "300" + labels: + app.kubernetes.io/name: gitea +spec: + type: ExternalName + externalName: nginx.homelab.danmanners.com + sessionAffinity: None diff --git a/manifests/workloads/gitea/kustomization.yaml b/manifests/workloads/gitea/kustomization.yaml index 18e4ecb1..63e7d45f 100644 --- a/manifests/workloads/gitea/kustomization.yaml +++ b/manifests/workloads/gitea/kustomization.yaml @@ -4,6 +4,7 @@ namespace: git resources: - namespace.yaml +- external-dns.yaml components: - database