1、保证 k8s 服务正常
2、安装golang

# mkdir /home/Go
# cd /home/Go
# wget https://studygolang.com/dl/golang/go1.11.linux-amd64.tar.gz
# tar xzvf  go1.11.linux-amd64.tar.gz 
# vi ~/.bashrc #添加如下环境变量
export GOROOT=/home/Go/go
export PATH=$GOROOT/bin:$PATH
export GOPATH=/home/Go/go-project
export PATH=$PATH:$GOPATH/bin

# source ~/.bashrc

3、参考 https://github.com/Qihoo360/wayne/wiki/Wayne-dev-deploy

go get github.com/Qihoo360/wayne
cd /home/Go/go-project/src/github.com/Qihoo360/wayne/
kubectl apply -f hack/kubernetes/dependency
kubectl apply -f hack/kubernetes/wayne

4 查看 Wayne 服务对应端口
查看Wayne  服务
5、访问 http://ip:31568 用户名密码: admin:admin

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐