KubeZero/charts/kubeadm/templates/patches/coredns0.yaml

25 lines
637 B
YAML
Raw Normal View History

2021-03-18 13:31:10 +00:00
spec:
replicas: {{ ternary 3 1 .Values.clusterHighAvailable }}
template:
spec:
containers:
- name: coredns
resources:
requests:
cpu: 100m
memory: 32Mi
limits:
memory: 128Mi
nodeSelector:
node-role.kubernetes.io/master: ""
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: k8s-app
operator: In
values:
- kube-dns
topologyKey: "kubernetes.io/hostname"