github.com/cloudposse/helm@v2.2.3+incompatible/scripts/cluster/skydns.yaml (about) 1 apiVersion: v1 2 kind: ReplicationController 3 metadata: 4 name: kube-dns-v10 5 namespace: kube-system 6 labels: 7 k8s-app: kube-dns 8 version: v10 9 kubernetes.io/cluster-service: "true" 10 spec: 11 replicas: 1 12 selector: 13 k8s-app: kube-dns 14 version: v10 15 template: 16 metadata: 17 labels: 18 k8s-app: kube-dns 19 version: v10 20 kubernetes.io/cluster-service: "true" 21 spec: 22 containers: 23 - name: etcd 24 image: gcr.io/google_containers/etcd-amd64:2.2.1 25 resources: 26 # keep request = limit to keep this container in guaranteed class 27 limits: 28 cpu: 100m 29 memory: 50Mi 30 requests: 31 cpu: 100m 32 memory: 50Mi 33 command: 34 - /usr/local/bin/etcd 35 - -data-dir 36 - /var/etcd/data 37 - -listen-client-urls 38 - http://127.0.0.1:2379,http://127.0.0.1:4001 39 - -advertise-client-urls 40 - http://127.0.0.1:2379,http://127.0.0.1:4001 41 - -initial-cluster-token 42 - skydns-etcd 43 volumeMounts: 44 - name: etcd-storage 45 mountPath: /var/etcd/data 46 - name: kube2sky 47 image: gcr.io/google_containers/kube2sky:1.12 48 resources: 49 # keep request = limit to keep this container in guaranteed class 50 limits: 51 cpu: 100m 52 memory: 50Mi 53 requests: 54 cpu: 100m 55 memory: 50Mi 56 args: 57 # command = "/kube2sky" 58 - --domain=cluster.local 59 - name: skydns 60 image: gcr.io/google_containers/skydns:2015-10-13-8c72f8c 61 resources: 62 # keep request = limit to keep this container in guaranteed class 63 limits: 64 cpu: 100m 65 memory: 50Mi 66 requests: 67 cpu: 100m 68 memory: 50Mi 69 args: 70 # command = "/skydns" 71 - -machines=http://127.0.0.1:4001 72 - -addr=0.0.0.0:53 73 - -ns-rotate=false 74 - -domain=cluster.local. 75 ports: 76 - containerPort: 53 77 name: dns 78 protocol: UDP 79 - containerPort: 53 80 name: dns-tcp 81 protocol: TCP 82 livenessProbe: 83 httpGet: 84 path: /healthz 85 port: 8080 86 scheme: HTTP 87 initialDelaySeconds: 30 88 timeoutSeconds: 5 89 readinessProbe: 90 httpGet: 91 path: /healthz 92 port: 8080 93 scheme: HTTP 94 initialDelaySeconds: 1 95 timeoutSeconds: 5 96 - name: healthz 97 image: gcr.io/google_containers/exechealthz:1.0 98 resources: 99 # keep request = limit to keep this container in guaranteed class 100 limits: 101 cpu: 10m 102 memory: 20Mi 103 requests: 104 cpu: 10m 105 memory: 20Mi 106 args: 107 - -cmd=nslookup kubernetes.default.svc.cluster.local 127.0.0.1 >/dev/null 108 - -port=8080 109 ports: 110 - containerPort: 8080 111 protocol: TCP 112 volumes: 113 - name: etcd-storage 114 emptyDir: {} 115 dnsPolicy: Default # Don't use cluster DNS. 116 --- 117 apiVersion: v1 118 kind: Service 119 metadata: 120 name: kube-dns 121 namespace: kube-system 122 labels: 123 k8s-app: kube-dns 124 kubernetes.io/cluster-service: "true" 125 kubernetes.io/name: "KubeDNS" 126 spec: 127 selector: 128 k8s-app: kube-dns 129 clusterIP: 10.0.0.10 130 ports: 131 - name: dns 132 port: 53 133 protocol: UDP 134 - name: dns-tcp 135 port: 53 136 protocol: TCP 137