123 lines
3.3 KiB
YAML
123 lines
3.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: coredns
|
|
namespace: kube-system
|
|
uid: 7bf78c83-68ac-4dee-95f6-52964e38e2d3
|
|
resourceVersion: '441765420'
|
|
generation: 37
|
|
creationTimestamp: '2021-01-20T14:55:14Z'
|
|
labels:
|
|
k8s-app: kube-dns
|
|
annotations:
|
|
deployment.kubernetes.io/revision: '34'
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: kube-dns
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
k8s-app: kube-dns
|
|
spec:
|
|
volumes:
|
|
- name: config-volume
|
|
configMap:
|
|
name: coredns
|
|
items:
|
|
- key: Corefile
|
|
path: Corefile
|
|
defaultMode: 420
|
|
containers:
|
|
- name: coredns
|
|
image: registry.k8s.io/coredns/coredns:v1.9.3
|
|
args:
|
|
- '-conf'
|
|
- /etc/coredns/Corefile
|
|
ports:
|
|
- name: dns
|
|
containerPort: 53
|
|
protocol: UDP
|
|
- name: dns-tcp
|
|
containerPort: 53
|
|
protocol: TCP
|
|
- name: metrics
|
|
containerPort: 9153
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
memory: 170Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 70Mi
|
|
volumeMounts:
|
|
- name: config-volume
|
|
readOnly: true
|
|
mountPath: /etc/coredns
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
scheme: HTTP
|
|
initialDelaySeconds: 60
|
|
timeoutSeconds: 5
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
failureThreshold: 5
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /ready
|
|
port: 8181
|
|
scheme: HTTP
|
|
timeoutSeconds: 1
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
failureThreshold: 3
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
imagePullPolicy: IfNotPresent
|
|
securityContext:
|
|
capabilities:
|
|
add:
|
|
- NET_BIND_SERVICE
|
|
drop:
|
|
- all
|
|
readOnlyRootFilesystem: true
|
|
allowPrivilegeEscalation: false
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 30
|
|
dnsPolicy: Default
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|
|
serviceAccountName: coredns
|
|
serviceAccount: coredns
|
|
securityContext: {}
|
|
affinity:
|
|
podAntiAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 100
|
|
podAffinityTerm:
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: k8s-app
|
|
operator: In
|
|
values:
|
|
- kube-dns
|
|
topologyKey: kubernetes.io/hostname
|
|
schedulerName: default-scheduler
|
|
tolerations:
|
|
- key: CriticalAddonsOnly
|
|
operator: Exists
|
|
- key: node-role.kubernetes.io/control-plane
|
|
effect: NoSchedule
|
|
priorityClassName: system-cluster-critical
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|
|
maxSurge: 25%
|
|
revisionHistoryLimit: 10
|
|
progressDeadlineSeconds: 600
|