# linkerd
# 介绍
# 安装linkerd
#查看k8s集群
kubectl version
#安装linkerd的CLI工具
curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/install-edge | sh
export PATH=$HOME/.linkerd2/bin:$PATH
#查看linkerd版本
linkerd version
#检查k8s集群是否符合安装linkerd
linkerd check --pre
#验证安装结果
linkerd check
#demo安装 emojivoto
curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/emojivoto.yml \
| kubectl apply -f -
#启动服务
kubectl -n emojivoto port-forward svc/web-svc 8080:80
#将emojivoto添加到服务网格中,linkerd inject -(添加到网格) kubectl apply -f -(应用)
kubectl get -n emojivoto deploy -o yaml \
| linkerd inject - \
| kubectl apply -f -
#验证安装结果
linkerd -n emojivoto check --proxy
#安装viz
linkerd viz install | kubectl apply -f - # install the on-cluster metrics stack
#检查
linkerd check
#启动控制台
linkerd viz dashboard &
← istio