Created
June 19, 2015 22:41
-
-
Save looprock/a93dea7f1d03551e43e9 to your computer and use it in GitHub Desktop.
This file contains 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
eval `ssh-agent -s` | |
ssh-add ~/.ssh/id_dsa | |
ssh-add -L | |
export PATH=/opt/kubernetes/cluster:$PATH | |
RE: https://github.com/GoogleCloudPlatform/kubernetes/issues/7359 | |
/opt/kubernetes/cluster/ubuntu/token-system-dns.json | |
{ | |
"apiVersion": "v1beta2", | |
"kind": "Secret", | |
"id": "token-system-dns", | |
"data": { | |
} | |
} | |
DOCKER_OPTS="-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock --bip=172.252.34.1/24 --mtu=1472" | |
https://github.com/GoogleCloudPlatform/kubernetes/issues/9040: | |
vi /etc/default/kube-apiserver | |
#KUBE_APISERVER_OPTS="--address=0.0.0.0 --port=8080 --etcd_servers=http://127.0.0.1:4001 --logtostderr=true --service-cluster-ip-range=192.168.3.0/24" | |
KUBE_APISERVER_OPTS="--address=0.0.0.0 --port=8080 --etcd_servers=http://127.0.0.1:4001 --logtostderr=true --portal_net=192.168.3.0/24" | |
chattr +i /etc/default/kube-apiserver | |
on each node I had to (might not be necessary with token-system-dns thing: | |
docker pull gcr.io/google_containers/kube2sky:1.4 | |
docker pull gcr.io/google_containers/skydns:2015-03-11-001 | |
docker pull gcr.io/google_containers/etcd:2.0.9 | |
cd /opt/kubernetes/cluster | |
KUBERNETES_PROVIDER=ubuntu ./kube-down.sh | |
KUBERNETES_PROVIDER=ubuntu ./kube-up.sh | |
cd /opt/kubernetes/cluster/ubuntu | |
kubectl.sh create -f token-system-dns.json | |
KUBERNETES_PROVIDER=ubuntu ./deployAddons.sh | |
kubectl.sh get pods | |
kubectl.sh get services | |
kubectl.sh get rc | |
kubectl.sh get events | |
kubectl log -f kube-dns-e2vx6 kube2sky | |
cat /var/log/upstart/etcd.log | |
kubectl.sh create -f examples/guestbook/redis-master-controller.json | |
kubectl.sh create -f examples/guestbook/redis-master-service.json | |
kubectl.sh create -f examples/guestbook/redis-slave-controller.json | |
kubectl.sh create -f examples/guestbook/redis-slave-service.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment