mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-25 19:59:34 +01:00
7b8a51070f
* With the new component system, these components can be managed independent from the cluster and rolled or edited in advanced ways
32 lines
623 B
HCL
32 lines
623 B
HCL
resource "kubernetes_service" "coredns" {
|
|
metadata {
|
|
name = "coredns"
|
|
namespace = "kube-system"
|
|
labels = {
|
|
"k8s-app" = "coredns"
|
|
"kubernetes.io/name" = "CoreDNS"
|
|
}
|
|
annotations = {
|
|
"prometheus.io/scrape" = "true"
|
|
"prometheus.io/port" = "9153"
|
|
}
|
|
}
|
|
spec {
|
|
type = "ClusterIP"
|
|
cluster_ip = var.cluster_dns_service_ip
|
|
selector = {
|
|
k8s-app = "coredns"
|
|
}
|
|
port {
|
|
name = "dns"
|
|
protocol = "UDP"
|
|
port = 53
|
|
}
|
|
port {
|
|
name = "dns-tcp"
|
|
protocol = "TCP"
|
|
port = 53
|
|
}
|
|
}
|
|
}
|