diff --git a/chart/k8gb/README.md b/chart/k8gb/README.md index a4bafac947..80a088edd8 100644 --- a/chart/k8gb/README.md +++ b/chart/k8gb/README.md @@ -89,7 +89,8 @@ For Kubernetes `< 1.19` use this chart and k8gb in version `0.8.8` or lower. | infoblox.wapiVersion | string | `"2.3.1"` | WAPI version | | istio.enabled | bool | `true` | install istio RBAC | | k8gb.clusterGeoTag | string | `"eu"` | used for places where we need to distinguish between different Gslb instances | -| k8gb.coredns | object | `{"extra_plugins":[]}` | Extra CoreDNS plugins to be enabled (yaml object) | +| k8gb.coredns.extraServerBlocks | string | `""` | Extra CoreDNS server blocks | +| k8gb.coredns.extra_plugins | list | `[]` | Extra CoreDNS plugins to be enabled | | k8gb.deployCrds | bool | `true` | whether it should also deploy the gslb and dnsendpoints CRDs | | k8gb.deployRbac | bool | `true` | whether it should also deploy the service account, cluster role and cluster role binding | | k8gb.dnsZone | string | `"cloud.example.com"` | dnsZone controlled by gslb | diff --git a/chart/k8gb/templates/coredns-cm.yaml b/chart/k8gb/templates/coredns-cm.yaml index 6b087ba0dd..b1ffcc6caa 100644 --- a/chart/k8gb/templates/coredns-cm.yaml +++ b/chart/k8gb/templates/coredns-cm.yaml @@ -24,4 +24,7 @@ data: loadbalance weight } } + {{- with .Values.k8gb.coredns.extraServerBlocks -}} + {{- tpl . $ | nindent 4 }} + {{- end }} {{- end }} diff --git a/chart/k8gb/values.schema.json b/chart/k8gb/values.schema.json index c285ffa141..8eec0b7954 100644 --- a/chart/k8gb/values.schema.json +++ b/chart/k8gb/values.schema.json @@ -369,6 +369,9 @@ "array", "null" ] + }, + "extraServerBlocks": { + "type": "string" } }, "title": "k8gbCoredns" diff --git a/chart/k8gb/values.yaml b/chart/k8gb/values.yaml index 90c3818029..6b9d6310d7 100644 --- a/chart/k8gb/values.yaml +++ b/chart/k8gb/values.yaml @@ -29,8 +29,10 @@ k8gb: extGslbClustersGeoTags: "us" # -- Reconcile time in seconds reconcileRequeueSeconds: 30 - # -- Extra CoreDNS plugins to be enabled (yaml object) coredns: + # -- Extra CoreDNS server blocks + extraServerBlocks: "" + # -- Extra CoreDNS plugins to be enabled extra_plugins: [] log: # -- log format (simple,json)