1. apiVersion: apps/v1
    2. kind: Deployment
    3. metadata:
    4. annotations:
    5. deployment.kubernetes.io/revision: "1"
    6. creationTimestamp: "2020-10-26T10:14:29Z"
    7. generation: 1
    8. labels:
    9. k8s-app: kube-dns
    10. managedFields:
    11. - apiVersion: apps/v1
    12. fieldsType: FieldsV1
    13. fieldsV1:
    14. f:metadata:
    15. f:labels:
    16. .: {}
    17. f:k8s-app: {}
    18. f:spec:
    19. f:progressDeadlineSeconds: {}
    20. f:replicas: {}
    21. f:revisionHistoryLimit: {}
    22. f:selector:
    23. f:matchLabels:
    24. .: {}
    25. f:k8s-app: {}
    26. f:strategy:
    27. f:rollingUpdate:
    28. .: {}
    29. f:maxSurge: {}
    30. f:maxUnavailable: {}
    31. f:type: {}
    32. f:template:
    33. f:metadata:
    34. f:labels:
    35. .: {}
    36. f:k8s-app: {}
    37. f:spec:
    38. f:containers:
    39. k:{"name":"coredns"}:
    40. .: {}
    41. f:args: {}
    42. f:image: {}
    43. f:imagePullPolicy: {}
    44. f:livenessProbe:
    45. .: {}
    46. f:failureThreshold: {}
    47. f:httpGet:
    48. .: {}
    49. f:path: {}
    50. f:port: {}
    51. f:scheme: {}
    52. f:initialDelaySeconds: {}
    53. f:periodSeconds: {}
    54. f:successThreshold: {}
    55. f:timeoutSeconds: {}
    56. f:name: {}
    57. f:ports:
    58. .: {}
    59. k:{"containerPort":53,"protocol":"TCP"}:
    60. .: {}
    61. f:containerPort: {}
    62. f:name: {}
    63. f:protocol: {}
    64. k:{"containerPort":53,"protocol":"UDP"}:
    65. .: {}
    66. f:containerPort: {}
    67. f:name: {}
    68. f:protocol: {}
    69. k:{"containerPort":9153,"protocol":"TCP"}:
    70. .: {}
    71. f:containerPort: {}
    72. f:name: {}
    73. f:protocol: {}
    74. f:readinessProbe:
    75. .: {}
    76. f:failureThreshold: {}
    77. f:httpGet:
    78. .: {}
    79. f:path: {}
    80. f:port: {}
    81. f:scheme: {}
    82. f:periodSeconds: {}
    83. f:successThreshold: {}
    84. f:timeoutSeconds: {}
    85. f:resources:
    86. .: {}
    87. f:limits:
    88. .: {}
    89. f:memory: {}
    90. f:requests:
    91. .: {}
    92. f:cpu: {}
    93. f:memory: {}
    94. f:securityContext:
    95. .: {}
    96. f:allowPrivilegeEscalation: {}
    97. f:capabilities:
    98. .: {}
    99. f:add: {}
    100. f:drop: {}
    101. f:readOnlyRootFilesystem: {}
    102. f:terminationMessagePath: {}
    103. f:terminationMessagePolicy: {}
    104. f:volumeMounts:
    105. .: {}
    106. k:{"mountPath":"/etc/coredns"}:
    107. .: {}
    108. f:mountPath: {}
    109. f:name: {}
    110. f:readOnly: {}
    111. f:dnsPolicy: {}
    112. f:nodeSelector:
    113. .: {}
    114. f:kubernetes.io/os: {}
    115. f:priorityClassName: {}
    116. f:restartPolicy: {}
    117. f:schedulerName: {}
    118. f:securityContext: {}
    119. f:serviceAccount: {}
    120. f:serviceAccountName: {}
    121. f:terminationGracePeriodSeconds: {}
    122. f:tolerations: {}
    123. f:volumes:
    124. .: {}
    125. k:{"name":"config-volume"}:
    126. .: {}
    127. f:configMap:
    128. .: {}
    129. f:defaultMode: {}
    130. f:items: {}
    131. f:name: {}
    132. f:name: {}
    133. manager: kubeadm
    134. operation: Update
    135. time: "2020-10-26T10:14:29Z"
    136. - apiVersion: apps/v1
    137. fieldsType: FieldsV1
    138. fieldsV1:
    139. f:metadata:
    140. f:annotations:
    141. .: {}
    142. f:deployment.kubernetes.io/revision: {}
    143. f:status:
    144. f:conditions:
    145. .: {}
    146. k:{"type":"Available"}:
    147. .: {}
    148. f:lastTransitionTime: {}
    149. f:lastUpdateTime: {}
    150. f:message: {}
    151. f:reason: {}
    152. f:status: {}
    153. f:type: {}
    154. k:{"type":"Progressing"}:
    155. .: {}
    156. f:lastTransitionTime: {}
    157. f:lastUpdateTime: {}
    158. f:message: {}
    159. f:reason: {}
    160. f:status: {}
    161. f:type: {}
    162. f:observedGeneration: {}
    163. f:replicas: {}
    164. f:unavailableReplicas: {}
    165. f:updatedReplicas: {}
    166. manager: kube-controller-manager
    167. operation: Update
    168. time: "2020-10-26T12:00:01Z"
    169. name: coredns
    170. namespace: kube-system
    171. resourceVersion: "1340"
    172. selfLink: /apis/apps/v1/namespaces/kube-system/deployments/coredns
    173. uid: a6fefce8-aca3-45e4-ae2b-7b887c1d3a40
    174. spec:
    175. progressDeadlineSeconds: 600
    176. replicas: 1
    177. revisionHistoryLimit: 10
    178. selector:
    179. matchLabels:
    180. k8s-app: kube-dns
    181. strategy:
    182. rollingUpdate:
    183. maxSurge: 25%
    184. maxUnavailable: 1
    185. type: RollingUpdate
    186. template:
    187. metadata:
    188. creationTimestamp: null
    189. labels:
    190. k8s-app: kube-dns
    191. spec:
    192. containers:
    193. - args:
    194. - -conf
    195. - /etc/coredns/Corefile
    196. image: registry.aliyuncs.com/google_containers/coredns:1.7.0
    197. imagePullPolicy: IfNotPresent
    198. livenessProbe:
    199. failureThreshold: 5
    200. httpGet:
    201. path: /health
    202. port: 8080
    203. scheme: HTTP
    204. initialDelaySeconds: 60
    205. periodSeconds: 10
    206. successThreshold: 1
    207. timeoutSeconds: 20
    208. name: coredns
    209. ports:
    210. - containerPort: 53
    211. name: dns
    212. protocol: UDP
    213. - containerPort: 53
    214. name: dns-tcp
    215. protocol: TCP
    216. - containerPort: 9153
    217. name: metrics
    218. protocol: TCP
    219. readinessProbe:
    220. failureThreshold: 3
    221. httpGet:
    222. path: /ready
    223. port: 8181
    224. scheme: HTTP
    225. periodSeconds: 10
    226. successThreshold: 1
    227. timeoutSeconds: 1
    228. resources:
    229. limits:
    230. memory: 170Mi
    231. requests:
    232. cpu: 100m
    233. memory: 70Mi
    234. securityContext:
    235. allowPrivilegeEscalation: false
    236. capabilities:
    237. add:
    238. - NET_BIND_SERVICE
    239. drop:
    240. - all
    241. readOnlyRootFilesystem: true
    242. terminationMessagePath: /dev/termination-log
    243. terminationMessagePolicy: File
    244. volumeMounts:
    245. - mountPath: /etc/coredns
    246. name: config-volume
    247. readOnly: true
    248. dnsPolicy: Default
    249. nodeSelector:
    250. kubernetes.io/os: linux
    251. priorityClassName: system-cluster-critical
    252. restartPolicy: Always
    253. schedulerName: default-scheduler
    254. securityContext: {}
    255. serviceAccount: coredns
    256. serviceAccountName: coredns
    257. terminationGracePeriodSeconds: 30
    258. tolerations:
    259. - key: CriticalAddonsOnly
    260. operator: Exists
    261. - effect: NoSchedule
    262. key: node-role.kubernetes.io/master
    263. volumes:
    264. - configMap:
    265. defaultMode: 420
    266. items:
    267. - key: Corefile
    268. path: Corefile
    269. name: coredns
    270. name: config-volume
    271. status:
    272. conditions:
    273. - lastTransitionTime: "2020-10-26T10:14:46Z"
    274. lastUpdateTime: "2020-10-26T10:14:46Z"
    275. message: Deployment does not have minimum availability.
    276. reason: MinimumReplicasUnavailable
    277. status: "False"
    278. type: Available
    279. - lastTransitionTime: "2020-10-26T12:00:01Z"
    280. lastUpdateTime: "2020-10-26T12:00:01Z"
    281. message: ReplicaSet "coredns-6d56c8448f" has timed out progressing.
    282. reason: ProgressDeadlineExceeded
    283. status: "False"
    284. type: Progressing
    285. observedGeneration: 1
    286. replicas: 1
    287. unavailableReplicas: 1
    288. updatedReplicas: 1