Merge pull request #12349 from roberthbailey/kubelet-on-master

Register the kubelet on the master node with an apiserver.
This commit is contained in:
Dawn Chen 2015-08-06 15:20:35 -07:00
commit b21de24c4c
3 changed files with 27 additions and 7 deletions

View File

@ -1,7 +1,10 @@
{ {
"apiVersion": "v1", "apiVersion": "v1",
"kind": "Pod", "kind": "Pod",
"metadata": {"name":"kube-apiserver"}, "metadata": {
"name":"kube-apiserver",
"namespace": "kube-system"
},
"spec":{ "spec":{
"hostNetwork": true, "hostNetwork": true,
"containers":[ "containers":[
@ -13,6 +16,15 @@
"-c", "-c",
"/usr/local/bin/kube-apiserver --address=0.0.0.0 --etcd_servers=http://kube0.ha:2379 --service-cluster-ip-range=10.0.0.0/16 --v=4 --allow_privileged=True 1>>/var/log/kube-apiserver.log 2>&1" "/usr/local/bin/kube-apiserver --address=0.0.0.0 --etcd_servers=http://kube0.ha:2379 --service-cluster-ip-range=10.0.0.0/16 --v=4 --allow_privileged=True 1>>/var/log/kube-apiserver.log 2>&1"
], ],
"livenessProbe": {
"httpGet": {
"host": "127.0.0.1",
"port": 8080,
"path": "/healthz"
},
"initialDelaySeconds": 15,
"timeoutSeconds": 15
},
"ports":[ "ports":[
{ "name": "https", { "name": "https",
"containerPort": 443, "containerPort": 443,

View File

@ -1,7 +1,10 @@
{ {
"apiVersion": "v1", "apiVersion": "v1",
"kind": "Pod", "kind": "Pod",
"metadata": {"name":"kube-controller-manager"}, "metadata": {
"name":"kube-controller-manager",
"namespace": "kube-system"
},
"spec":{ "spec":{
"hostNetwork": true, "hostNetwork": true,
"containers":[ "containers":[
@ -15,8 +18,9 @@
], ],
"livenessProbe": { "livenessProbe": {
"httpGet": { "httpGet": {
"path": "/healthz", "host": "127.0.0.1",
"port": 10252 "port": 10252,
"path": "/healthz"
}, },
"initialDelaySeconds": 15, "initialDelaySeconds": 15,
"timeoutSeconds": 1 "timeoutSeconds": 1

View File

@ -1,7 +1,10 @@
{ {
"apiVersion": "v1", "apiVersion": "v1",
"kind": "Pod", "kind": "Pod",
"metadata": {"name":"kube-scheduler"}, "metadata": {
"name":"kube-scheduler",
"namespace": "kube-system"
},
"spec":{ "spec":{
"hostNetwork": true, "hostNetwork": true,
"containers":[ "containers":[
@ -15,8 +18,9 @@
], ],
"livenessProbe": { "livenessProbe": {
"httpGet": { "httpGet": {
"path": "/healthz", "host": "127.0.0.1",
"port": 10251 "port": 10251,
"path": "/healthz"
}, },
"initialDelaySeconds": 15, "initialDelaySeconds": 15,
"timeoutSeconds": 1 "timeoutSeconds": 1