mirror of https://git.rancher.io/rke2-charts
74 lines
2.1 KiB
Diff
74 lines
2.1 KiB
Diff
--- charts-original/values.yaml
|
|
+++ charts/values.yaml
|
|
@@ -3,8 +3,8 @@
|
|
# Declare variables to be passed into your templates.
|
|
|
|
image:
|
|
- repository: coredns/coredns
|
|
- tag: "1.6.9"
|
|
+ repository: rancher/hardened-coredns
|
|
+ tag: "v1.6.9-build20210223"
|
|
pullPolicy: IfNotPresent
|
|
|
|
replicaCount: 1
|
|
@@ -34,10 +34,10 @@
|
|
prometheus.io/port: "9153"
|
|
|
|
serviceAccount:
|
|
- create: false
|
|
+ create: true
|
|
# The name of the ServiceAccount to use
|
|
# If not set and create is true, a name is generated using the fullname template
|
|
- name:
|
|
+ name: coredns
|
|
|
|
rbac:
|
|
# If true, create & use RBAC resources
|
|
@@ -52,7 +52,7 @@
|
|
isClusterService: true
|
|
|
|
# Optional priority class to be used for the coredns pods. Used for autoscaler if autoscaler.priorityClassName not set.
|
|
-priorityClassName: ""
|
|
+priorityClassName: "system-cluster-critical"
|
|
|
|
# Default zone is what Kubernetes recommends:
|
|
# https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/#coredns-configmap-options
|
|
@@ -126,7 +126,13 @@
|
|
# operator: Equal
|
|
# value: master
|
|
# effect: NoSchedule
|
|
-tolerations: []
|
|
+tolerations:
|
|
+- key: "node-role.kubernetes.io/control-plane"
|
|
+ operator: "Exists"
|
|
+ effect: "NoSchedule"
|
|
+- key: "node-role.kubernetes.io/etcd"
|
|
+ operator: "Exists"
|
|
+ effect: "NoExecute"
|
|
|
|
# https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
|
|
podDisruptionBudget: {}
|
|
@@ -180,7 +186,13 @@
|
|
nodeSelector: {}
|
|
|
|
# expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#toleration-v1-core
|
|
- tolerations: []
|
|
+ tolerations:
|
|
+ - key: "node-role.kubernetes.io/control-plane"
|
|
+ operator: "Exists"
|
|
+ effect: "NoSchedule"
|
|
+ - key: "node-role.kubernetes.io/etcd"
|
|
+ operator: "Exists"
|
|
+ effect: "NoExecute"
|
|
|
|
# resources for autoscaler pod
|
|
resources:
|
|
@@ -196,3 +208,7 @@
|
|
## Annotations for the coredns-autoscaler configmap
|
|
# i.e. strategy.spinnaker.io/versioned: "false" to ensure configmap isn't renamed
|
|
annotations: {}
|
|
+k8sApp : "kube-dns"
|
|
+
|
|
+global:
|
|
+ systemDefaultRegistry: ""
|