当前位置: 首页 > 工具软件 > Weave > 使用案例 >

weave scope在k8s环境安装

步建茗
2023-12-01

下载安装包:

https://github.com/weaveworks/scope/releases

解压缩之后,进入example/k8s目录,执行:

kubectl create -f deploy.yaml

并修改svc.yaml如下:

apiVersion: v1
kind: Service
metadata:
  name: weave-scope-app
  labels:
    name: weave-scope-app
    app: weave-scope
    weave-cloud-component: scope
    weave-scope-component: app
  namespace: weave
spec:
  ports:
    - name: app
      port: 80
      protocol: TCP
      targetPort: 4040
      nodePort: 30088
  selector:
    name: weave-scope-app
    app: weave-scope
    weave-cloud-component: scope
    weave-scope-component: app
    type: NodePort

执行:

kubectl apply -f svc.yaml

既可以通过结点30088端口进行访问

 类似资料: