Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ ALLOW_SECURITY_CONTEXT=true LOG_LEVEL=5 hack/local-up-cluster.sh -O
WARNING : This script MAY be run as root for docker socket / iptables functionality; if failures occur, retry as root.
skipped the build.
WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
Kubelet cgroup driver defaulted to use: systemd
API SERVER insecure port is free, proceeding...
API SERVER secure port is free, proceeding...
Detected host and ready to start services. Doing some housekeeping first...
Using GO_OUT /home/jpeeler/src/go/src/k8s.io/kubernetes/_output/bin
Starting services now!
Starting etcd
etcd --advertise-client-urls http://127.0.0.1:2379 --data-dir /tmp/tmp.x8zpGl7vqa --listen-client-urls http://127.0.0.1:2379 --debug > "/dev/null" 2>/dev/null
Waiting for etcd to come up.
+++ [0227 13:16:29] On try 2, etcd: : http://127.0.0.1:2379
{"action":"set","node":{"key":"/_test","value":"","modifiedIndex":4,"createdIndex":4}}
Generating a 2048 bit RSA private key
................+++
........................................+++
writing new private key to '/var/run/kubernetes/server-ca.key'
-----
Generating a 2048 bit RSA private key
......................................................................................+++
.............................+++
writing new private key to '/var/run/kubernetes/client-ca.key'
-----
Generating a 2048 bit RSA private key
................................................................+++
...........+++
writing new private key to '/var/run/kubernetes/request-header-ca.key'
-----
2017/02/27 13:16:29 [INFO] generate received request
2017/02/27 13:16:29 [INFO] received CSR
2017/02/27 13:16:29 [INFO] generating key: rsa-2048
2017/02/27 13:16:30 [INFO] encoded CSR
2017/02/27 13:16:30 [INFO] signed certificate with serial number 254142338464704792996837851305111378141968228775
2017/02/27 13:16:30 [INFO] generate received request
2017/02/27 13:16:30 [INFO] received CSR
2017/02/27 13:16:30 [INFO] generating key: rsa-2048
2017/02/27 13:16:31 [INFO] encoded CSR
2017/02/27 13:16:31 [INFO] signed certificate with serial number 415358709222100937157456506462994641504980080467
2017/02/27 13:16:31 [INFO] generate received request
2017/02/27 13:16:31 [INFO] received CSR
2017/02/27 13:16:31 [INFO] generating key: rsa-2048
2017/02/27 13:16:31 [INFO] encoded CSR
2017/02/27 13:16:31 [INFO] signed certificate with serial number 619735697821227463306607968464818698904553816229
2017/02/27 13:16:31 [INFO] generate received request
2017/02/27 13:16:31 [INFO] received CSR
2017/02/27 13:16:31 [INFO] generating key: rsa-2048
2017/02/27 13:16:31 [INFO] encoded CSR
2017/02/27 13:16:31 [INFO] signed certificate with serial number 580624819951132197562825893176520336423454852767
2017/02/27 13:16:31 [INFO] generate received request
2017/02/27 13:16:31 [INFO] received CSR
2017/02/27 13:16:31 [INFO] generating key: rsa-2048
2017/02/27 13:16:32 [INFO] encoded CSR
2017/02/27 13:16:32 [INFO] signed certificate with serial number 410934359457269893355932263692433071053395381680
2017/02/27 13:16:32 [INFO] generate received request
2017/02/27 13:16:32 [INFO] received CSR
2017/02/27 13:16:32 [INFO] generating key: rsa-2048
2017/02/27 13:16:32 [INFO] encoded CSR
2017/02/27 13:16:32 [INFO] signed certificate with serial number 426652838395791078711597144796127781702094232748
2017/02/27 13:16:32 [INFO] generate received request
2017/02/27 13:16:32 [INFO] received CSR
2017/02/27 13:16:32 [INFO] generating key: rsa-2048
2017/02/27 13:16:33 [INFO] encoded CSR
2017/02/27 13:16:33 [INFO] signed certificate with serial number 217852102825317402448091583867907988833369438031
2017/02/27 13:16:33 [INFO] generate received request
2017/02/27 13:16:33 [INFO] received CSR
2017/02/27 13:16:33 [INFO] generating key: rsa-2048
2017/02/27 13:16:33 [INFO] encoded CSR
2017/02/27 13:16:33 [INFO] signed certificate with serial number 228258075839241015899030109585261446805463317788
2017/02/27 13:16:33 [INFO] generate received request
2017/02/27 13:16:33 [INFO] received CSR
2017/02/27 13:16:33 [INFO] generating key: rsa-2048
2017/02/27 13:16:33 [INFO] encoded CSR
2017/02/27 13:16:33 [INFO] signed certificate with serial number 392400031473889144586090528831557580708666260478
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/kube-aggregator.kubeconfig: No such file or directory
Waiting for apiserver to come up
+++ [0227 13:16:34] On try 2, apiserver: : {
"major": "1",
"minor": "6+",
"gitVersion": "v1.6.0-alpha.3.263+8fb1b71c6670b1-dirty",
"gitCommit": "8fb1b71c6670b13669c365058546c9671c81b0c9",
"gitTreeState": "dirty",
"buildDate": "2017-02-20T18:07:33Z",
"goVersion": "go1.7.5",
"compiler": "gc",
"platform": "linux/amd64"
}
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/admin.kubeconfig: No such file or directory
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/kubelet.kubeconfig: No such file or directory
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/kube-proxy.kubeconfig: No such file or directory
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/controller.kubeconfig: No such file or directory
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/scheduler.kubeconfig: No such file or directory
It looks as if you don't have a compiled kubectl binary
If you are running from a clone of the git repo, please run
'./build/run.sh make cross'. Note that this requires having
Docker installed.
If you are running from a binary release tarball, something is wrong.
Look at http://kubernetes.io/ for information on how to contact the
development team for help.
It looks as if you don't have a compiled kubectl binary
If you are running from a clone of the git repo, please run
'./build/run.sh make cross'. Note that this requires having
Docker installed.
If you are running from a binary release tarball, something is wrong.
Look at http://kubernetes.io/ for information on how to contact the
development team for help.
use 'kubectl --kubeconfig=/var/run/kubernetes/admin-kube-aggregator.kubeconfig' to use the aggregated API server
mkdir: cannot create directory ‘/var/run/kubernetes/static-pods’: Permission denied
kubelet ( 32179 ) is running.
Local Kubernetes cluster is running. Press Ctrl-C to shut it down.
Logs:
/tmp/kube-apiserver.log
/tmp/kube-controller-manager.log
/tmp/kube-proxy.log
/tmp/kube-scheduler.log
/tmp/kubelet.log
To start using your cluster, you can open up another terminal/tab and run:
export KUBECONFIG=/var/run/kubernetes/admin.kubeconfig
cluster/kubectl.sh
Alternatively, you can write to the default kubeconfig:
export KUBERNETES_PROVIDER=local
cluster/kubectl.sh config set-cluster local --server=https://localhost:6443 --certificate-authority=/var/run/kubernetes/server-ca.crt
cluster/kubectl.sh config set-credentials myself --client-key=/var/run/kubernetes/client-admin.key --client-certificate=/var/run/kubernetes/client-admin.crt
cluster/kubectl.sh config set-context local --cluster=local --user=myself
cluster/kubectl.sh config use-context local
cluster/kubectl.sh
WARNING : This script MAY be run as root for docker socket / iptables functionality; if failures occur, retry as root.
skipped the build.
WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
Kubelet cgroup driver defaulted to use: systemd
API SERVER insecure port is free, proceeding...
API SERVER secure port is free, proceeding...
Detected host and ready to start services. Doing some housekeeping first...
Using GO_OUT /home/jpeeler/src/go/src/k8s.io/kubernetes/_output/bin
Starting services now!
Starting etcd
etcd --advertise-client-urls http://127.0.0.1:2379 --data-dir /tmp/tmp.x8zpGl7vqa --listen-client-urls http://127.0.0.1:2379 --debug > "/dev/null" 2>/dev/null
Waiting for etcd to come up.
+++ [0227 13:16:29] On try 2, etcd: : http://127.0.0.1:2379
{"action":"set","node":{"key":"/_test","value":"","modifiedIndex":4,"createdIndex":4}}
Generating a 2048 bit RSA private key
................+++
........................................+++
writing new private key to '/var/run/kubernetes/server-ca.key'
-----
Generating a 2048 bit RSA private key
......................................................................................+++
.............................+++
writing new private key to '/var/run/kubernetes/client-ca.key'
-----
Generating a 2048 bit RSA private key
................................................................+++
...........+++
writing new private key to '/var/run/kubernetes/request-header-ca.key'
-----
2017/02/27 13:16:29 [INFO] generate received request
2017/02/27 13:16:29 [INFO] received CSR
2017/02/27 13:16:29 [INFO] generating key: rsa-2048
2017/02/27 13:16:30 [INFO] encoded CSR
2017/02/27 13:16:30 [INFO] signed certificate with serial number 254142338464704792996837851305111378141968228775
2017/02/27 13:16:30 [INFO] generate received request
2017/02/27 13:16:30 [INFO] received CSR
2017/02/27 13:16:30 [INFO] generating key: rsa-2048
2017/02/27 13:16:31 [INFO] encoded CSR
2017/02/27 13:16:31 [INFO] signed certificate with serial number 415358709222100937157456506462994641504980080467
2017/02/27 13:16:31 [INFO] generate received request
2017/02/27 13:16:31 [INFO] received CSR
2017/02/27 13:16:31 [INFO] generating key: rsa-2048
2017/02/27 13:16:31 [INFO] encoded CSR
2017/02/27 13:16:31 [INFO] signed certificate with serial number 619735697821227463306607968464818698904553816229
2017/02/27 13:16:31 [INFO] generate received request
2017/02/27 13:16:31 [INFO] received CSR
2017/02/27 13:16:31 [INFO] generating key: rsa-2048
2017/02/27 13:16:31 [INFO] encoded CSR
2017/02/27 13:16:31 [INFO] signed certificate with serial number 580624819951132197562825893176520336423454852767
2017/02/27 13:16:31 [INFO] generate received request
2017/02/27 13:16:31 [INFO] received CSR
2017/02/27 13:16:31 [INFO] generating key: rsa-2048
2017/02/27 13:16:32 [INFO] encoded CSR
2017/02/27 13:16:32 [INFO] signed certificate with serial number 410934359457269893355932263692433071053395381680
2017/02/27 13:16:32 [INFO] generate received request
2017/02/27 13:16:32 [INFO] received CSR
2017/02/27 13:16:32 [INFO] generating key: rsa-2048
2017/02/27 13:16:32 [INFO] encoded CSR
2017/02/27 13:16:32 [INFO] signed certificate with serial number 426652838395791078711597144796127781702094232748
2017/02/27 13:16:32 [INFO] generate received request
2017/02/27 13:16:32 [INFO] received CSR
2017/02/27 13:16:32 [INFO] generating key: rsa-2048
2017/02/27 13:16:33 [INFO] encoded CSR
2017/02/27 13:16:33 [INFO] signed certificate with serial number 217852102825317402448091583867907988833369438031
2017/02/27 13:16:33 [INFO] generate received request
2017/02/27 13:16:33 [INFO] received CSR
2017/02/27 13:16:33 [INFO] generating key: rsa-2048
2017/02/27 13:16:33 [INFO] encoded CSR
2017/02/27 13:16:33 [INFO] signed certificate with serial number 228258075839241015899030109585261446805463317788
2017/02/27 13:16:33 [INFO] generate received request
2017/02/27 13:16:33 [INFO] received CSR
2017/02/27 13:16:33 [INFO] generating key: rsa-2048
2017/02/27 13:16:33 [INFO] encoded CSR
2017/02/27 13:16:33 [INFO] signed certificate with serial number 392400031473889144586090528831557580708666260478
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/kube-aggregator.kubeconfig: No such file or directory
Waiting for apiserver to come up
+++ [0227 13:16:34] On try 2, apiserver: : {
"major": "1",
"minor": "6+",
"gitVersion": "v1.6.0-alpha.3.263+8fb1b71c6670b1-dirty",
"gitCommit": "8fb1b71c6670b13669c365058546c9671c81b0c9",
"gitTreeState": "dirty",
"buildDate": "2017-02-20T18:07:33Z",
"goVersion": "go1.7.5",
"compiler": "gc",
"platform": "linux/amd64"
}
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/admin.kubeconfig: No such file or directory
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/kubelet.kubeconfig: No such file or directory
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/kube-proxy.kubeconfig: No such file or directory
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/controller.kubeconfig: No such file or directory
/bin/bash: line 1: --kubeconfig=/var/run/kubernetes/scheduler.kubeconfig: No such file or directory
It looks as if you don't have a compiled kubectl binary
If you are running from a clone of the git repo, please run
'./build/run.sh make cross'. Note that this requires having
Docker installed.
If you are running from a binary release tarball, something is wrong.
Look at http://kubernetes.io/ for information on how to contact the
development team for help.
It looks as if you don't have a compiled kubectl binary
If you are running from a clone of the git repo, please run
'./build/run.sh make cross'. Note that this requires having
Docker installed.
If you are running from a binary release tarball, something is wrong.
Look at http://kubernetes.io/ for information on how to contact the
development team for help.
use 'kubectl --kubeconfig=/var/run/kubernetes/admin-kube-aggregator.kubeconfig' to use the aggregated API server
mkdir: cannot create directory ‘/var/run/kubernetes/static-pods’: Permission denied
kubelet ( 32179 ) is running.
Local Kubernetes cluster is running. Press Ctrl-C to shut it down.
Logs:
/tmp/kube-apiserver.log
/tmp/kube-controller-manager.log
/tmp/kube-proxy.log
/tmp/kube-scheduler.log
/tmp/kubelet.log
To start using your cluster, you can open up another terminal/tab and run:
export KUBECONFIG=/var/run/kubernetes/admin.kubeconfig
cluster/kubectl.sh
Alternatively, you can write to the default kubeconfig:
export KUBERNETES_PROVIDER=local
cluster/kubectl.sh config set-cluster local --server=https://localhost:6443 --certificate-authority=/var/run/kubernetes/server-ca.crt
cluster/kubectl.sh config set-credentials myself --client-key=/var/run/kubernetes/client-admin.key --client-certificate=/var/run/kubernetes/client-admin.crt
cluster/kubectl.sh config set-context local --cluster=local --user=myself
cluster/kubectl.sh config use-context local
cluster/kubectl.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment