K8S wayne Bashboard
K8S wayne Bashboard
wayne的安装
备注:采用docker-compose安装成功,用k8s安装有点问题
git clone https://github.com/Qihoo360/wayne.git
cd wayne/hack/docker-compose/
务必修改
vim conf/config.js
URL: 'http://localhostip:8080',
为新的机器网卡IP
URL: 'http://123.xxx.205.xxx:8080'
docker-compose up -d
然后访问
机器网卡IP:4200即可,打开wayne登录页面
首次登陆默认用户名和密码:admin admin
wayne的配置
点击管理员–》进入后台–》集群–》列表–》关联集群 输入集群的config即可。 config一般位于 ./kube/config的位置
填入名称,master,config内容即可
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: >-
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5akNDQWJLZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQ0FYRFRFNU1UQXlPVEEzTURFME9Wb1lEekl4TVRneE1EQTFNRGN3TVRRNVdqQVZNUk13RVFZRApWUVFERXdwcmRXSmxjbTVsZEdWek1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBCnhWTjBBMUNYVXRhNURIMmZzNkpNUUthSW5SK0pCQXhMNkwwWlVSN2lQTG9GOFZNclIzeWpwQjI3UkxsZ01VeU4KVFdydlVVVmtRc0pCeHl3ckFDbFhuS0lhOWk1RkpQdDloNlpHTDhVSHhjZE0zaXlSMStobGVzamxwNlp1OU1FdAptQ0NiNWN6THN5K1Q2UWNqUFA5OENuZVRhanBua09raDdEYUExb2ZGSXY2bFNCRjd3cFlhcEdoNTh3NE1UdmV6CkJwMldhWHMxY1Z2R2cyUXVXYk0yRUlwMW5qellSM25heFVsbUh2WXk4dVdIVEx3TWttTjlEUWlIeWpZN1pqZi8KVXZUVlZ6Tzd3bEkxVVpyZHRiSkpUWG5hdXB4VHdTV1VqTHE1cjFSMkxMdFhuZkQxVFFvM0ZsaUM5dVZZQi93cwpTY1VvdmwzSU5hKzA1Si9VY1lYa05RSURBUUFCb3lNd0lUQU9CZ05WSFE4QkFmOEVCQU1DQXFRd0R3WURWUjBUCkFRSC9CQVV3QXdFQi96QU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUF1QlVQRmhlNk1DdFFKQ3piVHFobE9ET1QKaVdNQng1QmFPM3ZBNDZvMEdxdHdlcFhKa2IzU0dEb2VkTjhvZzBONUttRnFRenlqWXlhSmZ6SW5ydkpaY2hkQwo0c0w2bDZvZjRqWUJ5UTRBNlhMK0srdlBJUmxjb2t6WFF1bVI3aEpCQTh2am9qNGhBZTE1cTM2UlRTcHRkOEtkCnJuOWFWZU94elpVSlFDK0xpZDU2T3doWWhBVmoxUHdDUG4xYytGK1VRSEt1TVBJMzhuNlczUHFiUUF6WDRyZE0KSFE5MnNEaWc1SmlwYVFrVE1pLzBGK01pdUNQaU9KVXJlNjVYSnNuNXpTbnNOWEU4KzBrVjNZTHdDaG1KeFRQMAprbDhQOVNSR3dyekc4MnlEUURUT1dJSzJaVjZ4bzhxR3dxcHFnRUV0YUppeHRCbHVzSDVxZSthWjlHVXRVZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: 'https://[your apiserver ip]:6443'
name: kubernetes
contexts:
- context:
cluster: kubernetes
namespace: development
user: kubernetes-admin
name: dev
- context:
cluster: kubernetes
user: kubernetes-admin
name: kubernetes-admin@kubernetes
- context:
cluster: kubernetes
namespace: production
user: kubernetes-admin
name: prod
current-context: prod
kind: Config
preferences: {}
users:
- name: kubernetes-admin
user:
client-certificate-data: >-
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM5RENDQWR5Z0F3SUJBZ0lJSkZvY05qb203T0l3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWdGdzB4T1RFd01qa3dOekF4TkRsYUdBOHlNVEU0TVRBd05UQTNNREUxTTFvdwpOREVYTUJ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