Guest User

kubeDNS Controller

a guest
Oct 23rd, 2017
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. apiVersion: v1
  2. kind: ReplicationController
  3. metadata:
  4. name: kube-dns-v20
  5. namespace: kube-system
  6. labels:
  7. k8s-app: kube-dns
  8. version: v20
  9. kubernetes.io/cluster-service: "true"
  10. spec:
  11. replicas: 1
  12. selector:
  13. k8s-app: kube-dns
  14. version: v20
  15. template:
  16. metadata:
  17. labels:
  18. k8s-app: kube-dns
  19. version: v20
  20. annotations:
  21. scheduler.alpha.kubernetes.io/critical-pod: ''
  22. scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
  23. spec:
  24. containers:
  25. - name: kubedns
  26. image: gcr.io/google_containers/kubedns-amd64:1.8
  27. resources:
  28. # TODO: Set memory limits when we've profiled the container for large
  29. # clusters, then set request = limit to keep this container in
  30. # guaranteed class. Currently, this container falls into the
  31. # "burstable" category so the kubelet doesn't backoff from restarting it.
  32. limits:
  33. memory: 170Mi
  34. requests:
  35. cpu: 100m
  36. memory: 70Mi
  37. livenessProbe:
  38. httpGet:
  39. path: /healthz-kubedns
  40. port: 8080
  41. scheme: HTTP
  42. initialDelaySeconds: 60
  43. timeoutSeconds: 5
  44. successThreshold: 1
  45. failureThreshold: 5
  46. readinessProbe:
  47. httpGet:
  48. path: /readiness
  49. port: 8081
  50. scheme: HTTP
  51. # we poll on pod startup for the Kubernetes master service and
  52. # only setup the /readiness HTTP server once that's available.
  53. initialDelaySeconds: 3
  54. timeoutSeconds: 5
  55. args:
  56. # command = "/kube-dns"
  57. - --domain=cluster.local.
  58. - --dns-port=10053
  59. # __PILLAR__FEDERATIONS__DOMAIN__MAP__
  60. ports:
  61. - containerPort: 10053
  62. name: dns-local
  63. protocol: UDP
  64. - containerPort: 10053
  65. name: dns-tcp-local
  66. protocol: TCP
  67. - name: dnsmasq
  68. image: gcr.io/google_containers/kube-dnsmasq-amd64:1.4
  69. livenessProbe:
  70. httpGet:
  71. path: /healthz-dnsmasq
  72. port: 8080
  73. scheme: HTTP
  74. initialDelaySeconds: 60
  75. timeoutSeconds: 5
  76. successThreshold: 1
  77. failureThreshold: 5
  78. args:
  79. - --cache-size=1000
  80. - --no-resolv
  81. - --server=127.0.0.1#10053
  82. - --log-facility=-
  83. ports:
  84. - containerPort: 53
  85. name: dns
  86. protocol: UDP
  87. - containerPort: 53
  88. name: dns-tcp
  89. protocol: TCP
  90. - name: healthz
  91. image: gcr.io/google_containers/exechealthz-amd64:1.2
  92. resources:
  93. limits:
  94. memory: 50Mi
  95. requests:
  96. cpu: 10m
  97. # Note that this container shouldn't really need 50Mi of memory. The
  98. # limits are set higher than expected pending investigation on #29688.
  99. # The extra memory was stolen from the kubedns container to keep the
  100. # net memory requested by the pod constant.
  101. memory: 50Mi
  102. args:
  103. - --cmd=nslookup kubernetes.default.svc.cluster.local 127.0.0.1 >/dev/null
  104. - --url=/healthz-dnsmasq
  105. - --cmd=nslookup kubernetes.default.svc.cluster.local 127.0.0.1:10053 >/dev/null
  106. - --url=/healthz-kubedns
  107. - --port=8080
  108. - --quiet
  109. ports:
  110. - containerPort: 8080
  111. protocol: TCP
  112. dnsPolicy: Default # Don't use cluster DNS.
  113. securityContext:
  114. seLinuxOptions:
  115. type: spc_t
Advertisement
Add Comment
Please, Sign In to add comment