2021-03-18 13:31:10 +00:00
|
|
|
spec:
|
2022-09-11 11:54:56 +00:00
|
|
|
replicas: {{ ternary 3 1 .Values.global.highAvailable }}
|
2021-03-18 13:31:10 +00:00
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: coredns
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 32Mi
|
|
|
|
limits:
|
|
|
|
memory: 128Mi
|
|
|
|
nodeSelector:
|
2021-11-27 13:02:23 +00:00
|
|
|
node-role.kubernetes.io/control-plane: ""
|
2021-03-18 13:31:10 +00:00
|
|
|
affinity:
|
|
|
|
podAntiAffinity:
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- labelSelector:
|
|
|
|
matchExpressions:
|
|
|
|
- key: k8s-app
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- kube-dns
|
|
|
|
topologyKey: "kubernetes.io/hostname"
|