mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-26 07:29:32 +01:00
38 lines
528 B
Terraform
38 lines
528 B
Terraform
|
resource "kubernetes_cluster_role" "coredns" {
|
||
|
metadata {
|
||
|
name = "system:coredns"
|
||
|
}
|
||
|
rule {
|
||
|
api_groups = [""]
|
||
|
resources = [
|
||
|
"endpoints",
|
||
|
"services",
|
||
|
"pods",
|
||
|
"namespaces",
|
||
|
]
|
||
|
verbs = [
|
||
|
"list",
|
||
|
"watch",
|
||
|
]
|
||
|
}
|
||
|
rule {
|
||
|
api_groups = [""]
|
||
|
resources = [
|
||
|
"nodes",
|
||
|
]
|
||
|
verbs = [
|
||
|
"get",
|
||
|
]
|
||
|
}
|
||
|
rule {
|
||
|
api_groups = ["discovery.k8s.io"]
|
||
|
resources = [
|
||
|
"endpointslices",
|
||
|
]
|
||
|
verbs = [
|
||
|
"list",
|
||
|
"watch",
|
||
|
]
|
||
|
}
|
||
|
}
|