infrastructure/k8s.tjo.cloud/modules/cluster-components/external-dns.tf
Tine cc12c5d30d
Some checks failed
/ lint (push) Failing after 2m28s
feat: wip
2024-08-04 19:50:50 +02:00

48 lines
1.2 KiB
HCL

resource "helm_release" "external-dns-privileged" {
name = "external-dns-privileged"
chart = "external-dns"
repository = "https://kubernetes-sigs.github.io/external-dns/"
version = "v1.14.5"
namespace = kubernetes_namespace.tjo-cloud.metadata[0].name
values = [<<-EOF
provider: digitalocean
env:
- name: DO_TOKEN
valueFrom:
secretKeyRef:
name: ${kubernetes_secret.digitalocean-token.metadata[0].name}
key: token
sources:
- ingress
- service
domainFilters:
- k8s.tjo.cloud
- internal.k8s.tjo.cloud
EOF
]
}
resource "helm_release" "external-dns-user-content" {
name = "external-dns-user-content"
chart = "external-dns"
repository = "https://kubernetes-sigs.github.io/external-dns/"
version = "v1.14.5"
namespace = kubernetes_namespace.tjo-cloud.metadata[0].name
values = [<<-EOF
provider: digitalocean
env:
- name: DO_TOKEN
valueFrom:
secretKeyRef:
name: ${kubernetes_secret.digitalocean-token.metadata[0].name}
key: token
sources:
- ingress
- service
domainFilters:
- user-content.tjo.cloud
EOF
]
}