You are not allowed to add pages
This is an old revision of the document!
On Centos7, RPMs are from Ceontos7 extras repository
1 master, 2 nodes
ETCD_NAME=default ETCD_DATA_DIR="/var/lib/etcd/default.etcd" ETCD_LISTEN_CLIENT_URLS="http://localhost:2379,http://node-1:2379" ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379,http://node-1:2379"
KUBE_LOGTOSTDERR="--logtostderr=true" KUBE_LOG_LEVEL="--v=0" KUBE_ALLOW_PRIV="--allow-privileged=false" KUBE_MASTER="--master=http://node-1:8080"
KUBE_API_ADDRESS="--insecure-bind-address=0.0.0.0" KUBE_ETCD_SERVERS="--etcd-servers=http://node-1:2379" KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16" KUBE_API_ARGS="" KUBE_API_PORT="--port=8080" KUBELET_PORT="--kubelet-port=10250"
KUBE_CONTROLLER_MANAGER_ARGS=""
KUBE_SCHEDULER_ARGS=""
KUBELET_ADDRESS="--address=0.0.0.0" KUBELET_HOSTNAME="--hostname-override=node-2" KUBELET_API_SERVER="--api-servers=http://node-1:8080" KUBELET_ARGS="" KUBELET_PORT="--port=10250"
KUBE_PROXY_ARGS=""
/usr/bin/etcd --name=default --data-dir=/var/lib/etcd/default.etcd --listen-client-urls=http://localhost:2379,http://node-1:2379 usr/bin/kube-apiserver --logtostderr=true --v=0 --etcd-servers=http://node-1:2379 --insecure-bind-address=0.0.0.0 --port=8080 --kubelet-port=10250 --allow-privileged=false --service-cluster-ip-range=10.254.0.0/16 /usr/bin/kube-controller-manager --logtostderr=true --v=0 --master=http://node-1:8080 /usr/bin/kube-scheduler --logtostderr=true --v=0 --master=http://node-1:8080 /usr/bin/flanneld -etcd-endpoints=http://node-1:2379 -etcd-prefix=/kube-centos/network
/usr/bin/kubelet --logtostderr=true --v=0 --api-servers=http://node-1:8080 --address=0.0.0.0 --port=10250 --hostname-override=node-2 --allow-privileged=false /usr/bin/kube-proxy --logtostderr=true --v=0 --master=http://node-1:8080
$ kubectl run hello-node --image=gcr.io/google-samples/node-hello:1.0 --port=8080 $ kubectl get deployment hello-node NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE hello-node 1 1 1 1 2d $ kubectl get pods NAME READY STATUS RESTARTS AGE hello-node-3526609615-5slx8 1/1 Running 0 2d $ kubectl expose deployment hello-node --type=NodePort $ kubectl get service hello-node NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE hello-node 10.254.65.168 <nodes> 8080:32260/TCP 2d $ kubectl get pods --selector="run=hello-node" --output=wide NAME READY STATUS RESTARTS AGE IP NODE hello-node-3526609615-5slx8 1/1 Running 0 2d 172.30.65.2 node-2 $ curl http://node-2:32260 Hello Kubernetes!