业务集群的安装 #
前提条件 #
- 查看安装文档,完成集群所需的环境配置 及要求。
- 管理集群安装完成。
使用 solar-operator 接管集群 #
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}')
安装 solar-operator
solarctl operator init --external-ip $ISTIOD_REMOTE_EP --eastwest-external-ip $ISTIOD_REMOTE_EP
使用operator安装istio,请运行以下命令:
创建namespace
kubectl create ns service-mesh
apply SolarOperator 资源
⚠
mesh
配置指网格名称,服务接入sidecar之后,使用了同一网格名称的网络是互通的,安装后可在SolarOperator
资源中更改⚠
network
网络的名称,详情见 the-kubernetes-network-model
kubectl apply -f - <<EOF
apiVersion: install.solar.io/v1alpha1
kind: SolarOperator
metadata:
namespace: service-mesh
name: cluster01 # 记住这里的集群名称
spec:
namespace: service-mesh
profile: default
mesh: mesh01 # 同一个mesh
network: network1 # 网络的名称
EOF
查看 solar-operator
的日志
kubectl logs -f -n solar-operator -l app=solar-operator
如果看到 install solar mesh : ✔
则代表 SolarMesh 安装完成
not ready :[Deployment/service-mesh/solar-graph]
2021-02-19T08:18:29.848376Z info not ready :[Deployment/service-mesh/solar-graph]
not ready :[Deployment/service-mesh/solar-graph]
2021-02-19T08:18:31.851434Z info not ready :[Deployment/service-mesh/solar-graph]
not ready :[Deployment/service-mesh/solar-graph]
2021-02-19T08:18:33.864782Z info not ready :[Deployment/service-mesh/solar-graph]
not ready :[Deployment/service-mesh/solar-graph]
2021-02-19T08:18:35.858885Z info not ready :[Deployment/service-mesh/solar-graph]
install SolarGraph : ✔
install solar mesh : ✔
如何卸载solarmesh? #
⚠️ uninstall命令会卸载掉整个solarmesh
暂无