helm安装 stable/weave-scope
安装Helm
wget https://get.helm.sh/helm-v3.4.2-linux-amd64.tar.gz tar zxvf helm-v3.4.2-linux-amd64.tar.gz mv linux-amd64/helm /usr/bin/ helm version
# 设置国内源 kubernetes helm 国内镜像 https://github.com/burdenbear/kube-charts-mirror
helm repo add stable https://burdenbear.github.io/kube-charts-mirror/
# 添加微软Chart仓库
helm repo add stable http://mirror.azure.cn/kubernetes/charts
# 添加阿里Chart仓库
helm repo add aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
# 更新Chart仓库
helm repo update
# 查看仓库列表
helm repo list
#删除仓库
helm repo remove aliyun
使用Helm安装K8S应用
Weave Scope 是一款 Docker 和 Kubernetes 可视化监控工具,可以监控 Kubernetes 集群中的一系列资源的状态、资源使用情况、应用拓扑、scale、还提供通过浏览器进入容器内部调试等功能。Helm 仓库提供了 Weave Scope 编写好的 Chart,使用 Helm 安装 Weave Scope 非常方便。
# 在chart仓库中查找weave helm search repo weave # 安装stable/weave-scope。注意 helm install 后面接的第一个参数叫做Release,名字可以随意取,我们起名为ui helm install ui stable/weave-scope # 查看所有Release helm list # 查看单个Release状态 helm status ui
vim ingress-weave.yaml
apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: ingress-my annotations: kubernetes.io/ingress.class: "nginx" spec: rules: - host: weave.demo.com http: paths: - path: / backend: serviceName: ui-weave-scope servicePort: 80
vim /etc/hosts
127.0.0.1 weave.demo.com
修改 本地 host
http://weave.demo.com:30080/
之后再详细介绍 weave-scope 吧
Nice to see you all!