Created
June 22, 2015 18:13
-
-
Save bkeroackdsc/c282b8473fd35127eee2 to your computer and use it in GitHub Desktop.
kube-dns controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1beta3 | |
kind: ReplicationController | |
metadata: | |
name: kube-dns-v2 | |
namespace: default | |
labels: | |
k8s-app: kube-dns-v2 | |
kubernetes.io/cluster-service: "true" | |
spec: | |
replicas: 1 | |
selector: | |
k8s-app: kube-dns | |
version: v2 | |
template: | |
metadata: | |
labels: | |
k8s-app: kube-dns | |
version: v2 | |
kubernetes.io/cluster-service: "true" | |
spec: | |
containers: | |
- name: etcd | |
image: gcr.io/google_containers/etcd:2.0.9 | |
command: | |
- /usr/local/bin/etcd | |
- -listen-client-urls | |
- http://127.0.0.1:2379,http://127.0.0.1:4001 | |
- -advertise-client-urls | |
- http://127.0.0.1:2379,http://127.0.0.1:4001 | |
- -initial-cluster-token | |
- skydns-etcd | |
- name: kube2sky | |
image: gcr.io/google_containers/kube2sky:1.8 | |
args: | |
# command = "/kube2sky" | |
- -domain=cluster.local | |
#- -kubecfg_file=/etc/dns_token/kubeconfig | |
- -kube_master_url=http://${KUBERNETES_SERVICE_HOST}:8080 #${KUBERNETES_SERVICE_PORT} | |
# volumeMounts: | |
# - mountPath: /etc/dns_token | |
# name: dns-token | |
# readOnly: true | |
- name: skydns | |
image: gcr.io/google_containers/skydns:2015-03-11-001 | |
args: | |
# command = "/skydns" | |
- -machines=http://localhost:4001 | |
- -addr=0.0.0.0:53 | |
- -domain=dsc-cluster.local. | |
- -nameservers=10.10.0.2:53 | |
ports: | |
- containerPort: 53 | |
name: dns | |
protocol: UDP | |
- containerPort: 53 | |
name: dns-tcp | |
protocol: TCP | |
livenessProbe: | |
exec: | |
command: | |
- /bin/sh | |
- -c | |
- nslookup kubernetes.default.cluster.local localhost >/dev/null | |
initialDelaySeconds: 30 | |
timeoutSeconds: 5 | |
dnsPolicy: Default # Don't use cluster DNS. | |
# volumes: | |
# - name: dns-token | |
# secret: | |
# secretName: token-system-dns |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finally it's working, thank you for sharing!