标签:tde png sel export strong ifconf tar.gz local status
系统环境:
Ubuntu 16.04.2 LTS
软件环境:
Docker 1.12.6
Go 1.8.3
Etcd 3.1.8
Flannel 0.7.1
Kubernetes master 1.7.0-alpha
安装步骤:
1) apt-get update
2) apt-get upgrade
3) apt-get install docker.io
4) service docker restart
5) docker run hello-world
6) docker run -it ubuntu bash
package main import "fmt" func main() { fmt.Printf("hello, world\n") }
cd etcd-v3.1.8-linux-amd64
cp etcd etcdctl /usr/bin
tar -xzf flannel-v0.7.1-linux-amd64.tar.gz
cd flannel-v0.7.1-linux-amd64
cp flannelid mk-docker-opts.sh /usr/bin
cd ~/go/src/kubernetes/_output/release-stage/server/linux-amd64/kubernetes/server/bin
cp * /usr/bin
cd ~/go/src/kubernetes/_output/release-stage/client/linux-amd64/kubernetes/client/bin
cp * /usr/bin
注: 下述操作中的10.229.43.237请替换为你安装K8S的主机的IP地址
mk-docker-opts.sh -i
source /run/flannel/subnet.env
rm /var/run/docker.pid
ifconfig docker0 ${FLANNEL_SUBNET}
service docker restart
apiVersion: v1 kind: Service metadata: name: nginx labels: app: nginx spec: ports: - port: 80 targetPort: 9090 selector: name: nginx
标签:tde png sel export strong ifconf tar.gz local status
原文地址:http://www.cnblogs.com/edisonxiang/p/6911994.html