标签:net http started wal drs local sse tmm qml
use kubeadm in lab only,,, do not use it in production
install docker 1.12.6 ….. please noted not install the lasted version.
wget https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_1.12.6-0~ubuntu-xenial_amd64.deb
export K8S_VERSION=$(curl -sS https://storage.googleapis.com/kubernetes-release/release/stable.txt)
wget https://storage.googleapis.com/kubernetes-release/release/v1.6.3/bin/linux/amd64/kubectl
wget https://storage.googleapis.com/kubernetes-release/release/v1.6.3/bin/linux/amd64/kubeadm
wget https://storage.googleapis.com/kubernetes-release/release/v1.6.3/bin/linux/amd64/kubelet
wget https://storage.googleapis.com/kubernetes-release/release/v1.6.3/bin/linux/amd64/kubernetes-cni
sudo dpkg -i kubelet kubeadm kubectl kubernetes-cni
sudo apt-get install -f #install missed dependency
install from apt repository
switch to root
apt-get update && apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
# Install docker if you don‘t have it already.
apt-get install -y docker-engine
apt-get install -y kubelet kubeadm kubectl kubernetes-cni
wget http://docs.projectcalico.org/v2.2/getting-started/kubernetes/installation/hosted/kubeadm/1.6/calico.yaml
modify calico.yaml to change following
change __ETCD_ENDPOINTS__ to http://192.168.30.131:6666
change __KUBERNETES_SERVICE_HOST__:__KUBERNETES_SERVICE_PORT__ to https://192.168.30.131:6443
change __SERVICEACCOUNT_TOKEN__ to "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRFM01EVXhOakF5TURRek0xb1hEVEkzTURVeE5EQXlNRFF6TTFvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BU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YUU5OWZmdGZ6N0pNYz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="
and then apply the yaml
kubectl apply -f calico.yaml
install weave_net
kubectl apply -f https://git.io/weave-kube-1.6
or install calico
kubectl apply -f http://docs.projectcalico.org/v2.2/getting-started/kubernetes/installation/hosted/kubeadm/1.6/calico.yaml
if you have forgotten the token, can use following command to get token
sudo kubeadm token list
join node into cluster
sudo kubeadm join --token=604eff.a6a6b84b09e7682f 192.168.30.131:6443
使用上步骤取得的令牌
install dashboard
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml
install heapter
clone heapster project into local dir, such as /opt/go/src/k8s.io/heapster/
go into heapster dirctory deploy
and run
bash kube.sh start # install heapster pod and service, and others.
testing
kubectl cluster-info
标签:net http started wal drs local sse tmm qml
原文地址:http://www.cnblogs.com/odoouse/p/6877766.html