yaml下载地址: https://cloud.weave.works/k8s/scope.yaml?k8s-version=?
目前有以下几个版本:
["v1.4","v1.5","v1.6","v1.7","v1.8","v1.9","v1.10"]
修改yaml中的Service为NodePort
- apiVersion: v1 ???kind: Service ???metadata: ?????name: weave-scope-app ?????annotations: ???????cloud.weave.works/launcher-info: |- ?????????{ ???????????"original-request": { ?????????????"url": "/k8s/scope.yaml?k8s-version=v1.10", ?????????????"date": "Mon Aug 27 2018 09:45:08 GMT+0000 (UTC)" ???????????}, ???????????"email-address": "support@weave.works" ?????????} ?????labels: ???????name: weave-scope-app ???????app: weave-scope ???????weave-cloud-component: scope ???????weave-scope-component: app ?????namespace: weave ???spec: ?????type: NodePort ?????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
效果图:
Kubernetes 部署Weave Scope监控
原文地址:https://www.cnblogs.com/vincenshen/p/9543774.html