SolarOperator 配置详解
#
在默认情况下,solarmesh只会安装自己的服务,即 networking-agent、solar-operator以及solar-controller。
istio、kiali需要用户自行安装。 prometheus、grafana、jaeger、aAlertManager可以用户自行安装,也可以通过配置solaroperator或使用solarctl命令去安装。
以下是solarmesh安装业务集群时,所用到的默认配置。
apiVersion: install.solar.io/v1alpha1
kind: SolarOperator
metadata:
namespace: service-mesh
name: example
spec:
istioVersion: 1.9
profile: default
hub: registry.cn-shenzhen.aliyuncs.com/solarmesh
addonComponents:
prometheusOperator:
enabled: false
tag: v0.38.1
namespace: monitoring
version: v0.38.1
configReloaderImage: registry.cn-shenzhen.aliyuncs.com/solarmesh/configmap-reload:v0.0.1
prometheusConfigReloader: registry.cn-shenzhen.aliyuncs.com/solarmesh/prometheus-config-reloader:v0.38.1
prometheusSpec:
tag: v2.17.2
version: v2.17.2
clusterrole: solarmesh:istio-prometheus-role
app: istio-prometheus
clusterrolebinding: solarmesh:istio-prometheus-role-binding
serviceAccountName: istio-prometheus-service-account
grafana:
enabled: false
namespace: monitoring
alertmanager:
enabled: false
configReloaderImage: registry.cn-shenzhen.aliyuncs.com/solarmesh/configmap-reload:v0.0.1
tag: v0.18.0
namespace: monitoring
jaeger:
enabled: false
components:
networking-agent:
enabled: true
prometheusNamespace: monitoring
namespace: service-mesh
solarGraph:
prometheusNamespace: istio-system
enabled: true
namespace: istio-system
prometheusUrl: http://prometheus.monitoring:9090
SolarMesh相关组件说明
#
name |
说明 |
安装方式 |
是否必须 |
istio |
istio相关组件,solarmesh的基石 |
用户自行安装,保持1.9版本及以上 |
true |
kiali |
solarmesh流量视图的后台实现 |
用户自行安装,适配istio即可 |
true |
prometheus |
告警指标的来源、kiali数据源 |
用户自行安装或solarmesh指定安装 |
true |
grafana |
solarmesh中监控相关的组件 |
用户自行安装或solarmesh指定安装 |
false |
jaeger |
solarmesh中链路追踪相关组件 |
用户自行安装或solarmesh指定安装 |
false |
alertManager |
solarmesh中告警相关的组件 |
用户自行安装或solarmesh指定安装 |
false |
solar-operator |
集群安装、集群状态管理组件 |
solarmesh指定安装 |
true |
solar-controller |
核心控制组件 |
solarmesh指定安装 |
true |
networking-agent |
指令完成、日志处理组件 |
solarmesh指定安装 |
true |
SolarOperator 字段说明
#
字段说明
name |
类型 |
描述 |
是否必须 |
istioVersion |
string |
istio的版本 |
true |
namespace |
string |
要将控制平面资源安装到的命名空间。如果未设置,则solar mesher将安装到与则Solar OperatorCR相同的名称空间中。 |
false |
profile |
string |
默认为default |
true |
addonComponents |
addonComponents |
附加组件 |
false |
components |
components |
组件 |
false |
hub |
string |
镜像hub地址 |
false |
addonComponents 字段说明
#
附加组件
name |
类型 |
描述 |
是否必须 |
prometheusOperator |
prometheusOperator |
prometheus的安装 |
false |
grafana |
grafana |
grafana的安装 |
false |
alertmanager |
alertmanager |
alertmanager的安装 |
false |
jaeger |
jaeger |
jaeger的安装 |
false |
prometheusOperator 字段说明
#
name |
类型 |
描述 |
是否必须 |
enabled |
bool |
选择是否安装此组件。 |
false |
hub |
string |
组件的集线器(覆盖顶级集线器设置) |
false |
tag |
string |
组件的标签(覆盖顶级标签设置)。 |
false |
namespace |
string |
prometheusOperator所在命名空间的位置 |
false |
grafana 字段说明
#
name |
类型 |
描述 |
是否必须 |
enabled |
bool |
选择是否安装此组件。 |
false |
namespace |
string |
prometheus所在命名空间的位置 |
false |
components
#
name |
类型 |
描述 |
是否必须 |
networking-agent |
networking-agent |
networking-agent组件说明如下 |
true |
solarGraph |
solarGraph |
kiali组件说明如下 |
true |
networking-agent
#
name |
类型 |
描述 |
是否必须 |
enabled |
bool |
是否安装此组件 |
true |
namespace |
string |
安装命名空间 |
true |
prometheusNamespace |
string |
promethues的命名空间 |
true |
solarGraph
#
name |
类型 |
描述 |
是否必须 |
enabled |
bool |
选择是否安装此组件 |
true |
namespace |
string |
kiali的安装命名空间 |
true |
prometheusUrl |
string |
promethues的访问地址 |
true |
prometheusNamespace |
string |
promethues的命名空间 |
true |