You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.3 KiB

9 years ago
  1. apiVersion: v1
  2. kind: ReplicationController
  3. metadata:
  4. name: kube-dns-v8
  5. namespace: kube-system
  6. labels:
  7. k8s-app: kube-dns
  8. version: v8
  9. kubernetes.io/cluster-service: "true"
  10. spec:
  11. replicas: {{ dns_replicas }}
  12. selector:
  13. k8s-app: kube-dns
  14. version: v8
  15. template:
  16. metadata:
  17. labels:
  18. k8s-app: kube-dns
  19. version: v8
  20. kubernetes.io/cluster-service: "true"
  21. spec:
  22. containers:
  23. - name: etcd
  24. image: gcr.io/google_containers/etcd:2.0.9
  25. resources:
  26. limits:
  27. cpu: 100m
  28. memory: 50Mi
  29. command:
  30. - /usr/local/bin/etcd
  31. - -data-dir
  32. - /var/etcd/data
  33. - -listen-client-urls
  34. - http://127.0.0.1:2379,http://127.0.0.1:4001
  35. - -advertise-client-urls
  36. - http://127.0.0.1:2379,http://127.0.0.1:4001
  37. - -initial-cluster-token
  38. - skydns-etcd
  39. volumeMounts:
  40. - name: etcd-storage
  41. mountPath: /var/etcd/data
  42. - name: kube2sky
  43. image: gcr.io/google_containers/kube2sky:1.11
  44. resources:
  45. limits:
  46. cpu: 100m
  47. memory: 50Mi
  48. args:
  49. # command = "/kube2sky"
  50. - -domain={{ dns_domain }}
  51. - name: skydns
  52. image: gcr.io/google_containers/skydns:2015-03-11-001
  53. resources:
  54. limits:
  55. cpu: 100m
  56. memory: 50Mi
  57. args:
  58. # command = "/skydns"
  59. - -machines=http://localhost:4001
  60. - -addr=0.0.0.0:53
  61. - -domain={{ dns_domain }}.
  62. ports:
  63. - containerPort: 53
  64. name: dns
  65. protocol: UDP
  66. - containerPort: 53
  67. name: dns-tcp
  68. protocol: TCP
  69. livenessProbe:
  70. httpGet:
  71. path: /healthz
  72. port: 8080
  73. scheme: HTTP
  74. initialDelaySeconds: 30
  75. timeoutSeconds: 5
  76. - name: healthz
  77. image: gcr.io/google_containers/exechealthz:1.0
  78. resources:
  79. limits:
  80. cpu: 10m
  81. memory: 20Mi
  82. args:
  83. - -cmd=nslookup kubernetes.default.svc.{{ dns_domain }} localhost >/dev/null
  84. - -port=8080
  85. ports:
  86. - containerPort: 8080
  87. protocol: TCP
  88. volumes:
  89. - name: etcd-storage
  90. emptyDir: {}
  91. dnsPolicy: Default # Don't use cluster DNS.