时间:2023-05-10 21:57:01 | 来源:网站运营
时间:2023-05-10 21:57:01 来源:网站运营
SolarMesh(微服务监管平台)安装教程:wget http://release.solarmesh.cn/solar/v1.11/solar-v1.11.4-linux-amd64.tar.gztar -xvf solar-v1.11.4-linux-amd64.tar.gzexport PATH=$PATH:$PWD/solar/bin/chmod +x $PWD/solar/bin/solarctl
检查~ solarctl versionsolarctl version: v1.11.4solar controller version: unkonwcontrol plane version: 1.11.5
安装架构及术语solarctl install solar-mesh
检查➜ ~ kubectl get po -n service-mesh NAME READY STATUS RESTARTS AGEsolar-controller-6976b7f9fc-jp6p2 2/2 Running 0 91ssolar-controller-6976b7f9fc-w8qq7 2/2 Running 0 90s➜ ~ kubectl get po -n solar-operatorNAME READY STATUS RESTARTS AGEsolar-operator-ccbb5b469-frmrm 1/1 Running 0 51s
配置登录账号➜ ~ kubectl create secret generic admin --from-literal=username=admin --from-literal=password=admin -n service-meshsecret/admin created➜ ~ kubectl label secret admin app=solar-controller -n service-meshsecret/admin labeled
export ISTIOD_REMOTE_EP=$(kubectl get nodes|awk '{print $1}' |awk 'NR==2'|xargs -n 1 kubectl get nodes -o jsonpath='{.status.addresses[0].address}')solarctl operator init --external-ip $ISTIOD_REMOTE_EP --eastwest-external-ip $ISTIOD_REMOTE_EP
安装数据平面kubectl apply -f - <<EOFapiVersion: install.solar.io/v1alpha1kind: SolarOperatormetadata: name: cluster01 namespace: solar-operatorspec: istioVersion: "1.11" ## 对应您Istio的安装版本 profile: defaultEOF
检查➜ ~ kubectl get po -n service-meshNAME READY STATUS RESTARTS AGEnetworking-agent-7587df774-7m96x 3/3 Running 1 91snetworking-agent-7587df774-tbtkg 3/3 Running 1 91ssolar-controller-6976b7f9fc-jp6p2 2/2 Running 0 8m17ssolar-controller-6976b7f9fc-w8qq7 2/2 Running 0 8m16s
solarctl register --name cluster01 # 这里的name需要与您安装的istio集群名称一致
访问kubectl patch svc solar-controller -n service-mesh -p '{ "spec": { "ports": [{ "name": "http-8080", "nodePort": 30880, "port": 8080, "protocol": "TCP", "targetPort": 8080}], "type": "NodePort" }}'
界面如下图:关键词:安装,教程,平台,监管,微服