Weave Scope

Weave Scope
Weave Scope 是 Docker 和 Kubernetes 可视化监控工具。

https://www.weave.works/docs/scope/latest/installing/
在这里插入图片描述

安装

  • 单个节点上
sudo curl -L git.io/scope -o /usr/local/bin/scope
sudo chmod a+x /usr/local/bin/scope
scope launch
  • kubernetes集群
kubectl apply -f "https://cloud.weave.works/k8s/scope.yaml?k8s-version=$(kubectl version | base64 | tr -d '\n')"

kubectl patch svc $(kubectl get svc -n weave |grep weave-scope-app |awk '{print $1}') -p '{"spec":{"type": "NodePort"}}' -n weave

$ kubectl get svc -n weave |grep weave-scope-app 
weave-scope-app   NodePort   10.100.31.87   <none>        80:32605/TCP   14m

$ kubectl get pod -n weave -o wide
NAME                               READY   STATUS    RESTARTS   AGE   IP                NODE                NOMINATED NODE   READINESS GATES
weave-scope-agent-86d9g            1/1     Running   0          25m   192.168.255.121   slave1.hanli.com    <none>           <none>
weave-scope-agent-g9k75            1/1     Running   0          25m   192.168.255.131   master1.hanli.com   <none>           <none>
weave-scope-agent-gvggr            1/1     Running   0          25m   192.168.255.133   master3.hanli.com   <none>           <none>
weave-scope-agent-w5m6z            1/1     Running   0          25m   192.168.255.132   master2.hanli.com   <none>           <none>
weave-scope-agent-w79lr            1/1     Running   0          25m   192.168.255.122   slave2.hanli.com    <none>           <none>
weave-scope-app-6979884cc6-b4v4b   1/1     Running   0          25m   10.244.1.4        master2.hanli.com   <none>           <none>

浏览器访问nodeip:32605,报错:nothing to show
在这里插入图片描述
查看日志:

[root@master1] ~$ kubectl logs weave-scope-app-6979884cc6-b4v4b -n weave
<app> INFO: 2019/01/31 12:45:37.706006 app starting, version 1.10.1, ID 63991406a746579
<app> INFO: 2019/01/31 12:45:37.706080 command line args: --mode=app
<app> INFO: 2019/01/31 12:45:37.706462 Basic authentication disabled
<app> INFO: 2019/01/31 12:45:37.738316 listening on :4040
<app> WARN: 2019/01/31 12:45:37.738548 Error updating weaveDNS, backing off 20s: Error running weave ps: exit status 1: "Link not found\n". If you are not running Weave Net, you may wish to suppress this warning by launching scope with the `--weave=false` option.
<app> WARN: 2019/01/31 12:45:57.751731 Error updating weaveDNS, backing off 40s: Error running weave ps: exit status 1: "Link not found\n". If you are not running Weave Net, you may wish to suppress this warning by launching scope with the `--weave=false` option.
<app> ERRO: 2019/01/31 12:46:07.833845 Error checking version: Get https://checkpoint-api.weave.works/v1/check/scope-app?arch=amd64&flag_kernel-version=3.10.0-514.el7.x86_64&flag_os=linux&os=linux&signature=HO4hZfOzh5aEt7am%2BE00tWrk%2BaK7HONG8TKibRYLlcY%3D&version=1.10.1: dial tcp: i/o timeout

没有更多推荐了,返回首页