Skip to content

Commit

Permalink
Adding ExternalDNS
Browse files Browse the repository at this point in the history
  • Loading branch information
danmanners committed Sep 16, 2023
1 parent 8ac683c commit 8ce2c4f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions manifests/workloads/gitea/external-dns.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions manifests/workloads/gitea/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace: git

resources:
- namespace.yaml
- external-dns.yaml

components:
- database
Expand Down

0 comments on commit 8ce2c4f

Please sign in to comment.