KubeSphere 应用商店
命名空间 | openpitrix-system |
---|---|
CPU 请求 | 0.3 核 |
CPU 限制 | 无 |
内存请求 | 300 MiB |
内存限制 | 无 |
安装 | 可选 |
备注 | 该组件可用于管理应用生命周期。建议安装。 |
KubeSphere DevOps 系统
命名空间 | kubesphere-devops-system | kubesphere-devops-system |
---|---|---|
安装模式 | All-in-One 安装 | 多节点安装 |
CPU 请求 | 34 m | 0.47 核 |
CPU 限制 | 无 | 无 |
内存请求 | 2.69 G | 8.6 G |
内存限制 | 无 | 无 |
安装 | 可选 | 可选 |
备注 | 提供一站式 DevOps 解决方案,包括 Jenkins 流水线、B2I 和 S2I。 | 其中一个节点的内存必须大于 8 G。 |
KubeSphere 监控系统
命名空间 | kubesphere-monitoring-system | kubesphere-monitoring-system | kubesphere-monitoring-system |
---|---|---|---|
子组件 | 2 x Prometheus | 3 x Alertmanager | Notification Manager |
CPU 请求 | 100 m | 10 m | 100 m |
CPU 限制 | 4 core | 无 | 500 m |
内存请求 | 400 MiB | 30 MiB | 20 MiB |
内存限制 | 8 GiB | 1 GiB | |
安装 | 必需 | 必需 | 必需 |
备注 | Prometheus 的内存消耗取决于集群大小。8 GiB 可满足 200 个节点/16,000 个容器组的集群规模。 |
备注:KubeSphere 监控系统不是可插拔组件,会默认安装。它与其他组件(例如日志系统)紧密关联,因此将其资源请求和限制也列在本页中,供您参考。
KubeSphere 日志系统
命名空间 | kubesphere-logging-system | kubesphere-logging-system | kubesphere-logging-system | kubesphere-logging-system |
---|---|---|---|---|
子组件 | 3 x Elasticsearch | fluent bit | kube-events | kube-auditing |
CPU 请求 | 50 m | 20 m | 90 m | 20 m |
CPU 限制 | 1 core | 200 m | 900 m | 200 m |
内存请求 | 2 G | 50 MiB | 120 MiB | 50 MiB |
内存限制 | 无 | 100 MiB | 1200 MiB | 100 MiB |
安装 | 可选 | 必需 | 可选 | 可选 |
备注 | 可选组件,用于存储日志数据。不建议在生产环境中使用内置 Elasticsearch。 | 日志收集代理。启用日志系统后,它是必需组件。 | Kubernetes 事件收集、过滤、导出和告警。 | Kubernetes 和 KubeSphere 审计日志收集、过滤和告警。 |
KubeSphere 告警和通知
命名空间 | kubesphere-alerting-system |
---|---|
CPU 请求 | 0.08 core |
CPU 限制 | 无 |
内存请求 | 80 M |
内存限制 | 无 |
安装 | 可选 |
备注 | 告警和通知需要同时启用。 |
KubeSphere 服务网格
命名空间 | istio-system |
---|---|
CPU 请求 | 1 core |
CPU 限制 | 无 |
内存请求 | 3.5 G |
内存限制 | 无 |
安装 | 可选 |
备注 | 支持灰度发布策略、流量拓扑、流量管理和分布式链路追踪。 |
##启用kubesphere应用商店
##kubesphere devops
##kubesphere日志系统
备注:默认情况下,如果启用了日志系统,将会安装内置 Elasticsearch。对于生产环境,如果您想启用日志系统,强烈建议在该 YAML 文件中设置以下值,尤其是 externalElasticsearchHost 和 externalElasticsearchPort。在文件中提供以下信息后,KubeSphere 将直接对接您的外部 Elasticsearch,不再安装内置 Elasticsearch。
es: # Storage backend for logging, tracing, events and auditing.
elasticsearchMasterReplicas: 1 # The total number of master nodes. Even numbers are not allowed.
elasticsearchDataReplicas: 1 # The total number of data nodes.
elasticsearchMasterVolumeSize: 4Gi # The volume size of Elasticsearch master nodes.
elasticsearchDataVolumeSize: 20Gi # The volume size of Elasticsearch data nodes.
logMaxAge: 7 # Log retention day in built-in Elasticsearch. It is 7 days by default.
elkPrefix: logstash # The string making up index names. The index name will be formatted as ks-<elk_prefix>-log.
externalElasticsearchHost: # The Host of external Elasticsearch.
externalElasticsearchPort: # The port of external Elasticsearch.
##kubesphere事件系统
备注:默认情况下,如果启用了事件系统,将会安装内置 Elasticsearch。对于生产环境,如果您想启用日志系统,强烈建议在该 YAML 文件中设置以下值,尤其是 externalElasticsearchHost 和 externalElasticsearchPort。在文件中提供以下信息后,
KubeSphere 将直接对接您的外部 Elasticsearch,不再安装内置 Elasticsearch。
es: # Storage backend for logging, tracing, events and auditing.
elasticsearchMasterReplicas: 1 # The total number of master nodes. Even numbers are not allowed.
elasticsearchDataReplicas: 1 # The total number of data nodes.
elasticsearchMasterVolumeSize: 4Gi # The volume size of Elasticsearch master nodes.
elasticsearchDataVolumeSize: 20Gi # The volume size of Elasticsearch data nodes.
logMaxAge: 7 # Log retention day in built-in Elasticsearch. It is 7 days by default.
elkPrefix: logstash # The string making up index names. The index name will be formatted as ks-<elk_prefix>-log.
externalElasticsearchHost: # The Host of external Elasticsearch.
externalElasticsearchPort: # The port of external Elasticsearch.
##kubesphere告警系统
##kubesphere审计日志
备注:默认情况下,如果启用了事件系统,将会安装内置 Elasticsearch。对于生产环境,如果您想启用日志系统,强烈建议在该 YAML 文件中设置以下值,尤其是 externalElasticsearchHost 和 externalElasticsearchPort。在文件中提供以下信息后,KubeSphere 将直接对接您的外部 Elasticsearch,不再安装内置 Elasticsearch。
es: # Storage backend for logging, tracing, events and auditing.
elasticsearchMasterReplicas: 1 # The total number of master nodes. Even numbers are not allowed.
elasticsearchDataReplicas: 1 # The total number of data nodes.
elasticsearchMasterVolumeSize: 4Gi # The volume size of Elasticsearch master nodes.
elasticsearchDataVolumeSize: 20Gi # The volume size of Elasticsearch data nodes.
logMaxAge: 7 # Log retention day in built-in Elasticsearch. It is 7 days by default.
elkPrefix: logstash # The string making up index names. The index name will be formatted as ks-<elk_prefix>-log.
externalElasticsearchHost: # The Host of external Elasticsearch.
externalElasticsearchPort: # The port of external Elasticsearch.
##kubesphere服务网格
servicemesh:
enabled: true # 将“false”更改为“true”。
istio: # Customizing the istio installation configuration, refer to https://istio.io/latest/docs/setup/additional-setup/customize-installation/
components:
ingressGateways:
- name: istio-ingressgateway # 将服务暴露至服务网格之外。默认不开启。
enabled: false
cni:
enabled: false # 启用后,会在 Kubernetes pod 生命周期的网络设置阶段完成 Istio 网格的 pod 流量转发设置工作。
##网络策略
##metrics server
##服务拓扑图
##容器组ip池
## kube edge
1.在该配置文件中,搜索 edgeruntime 和 kubeedge,然后将它们 enabled 值从 false 更改为 true 以便开启所有 KubeEdge 组件。完成后保存文件。
2.将 kubeedge.cloudCore.cloudHub.advertiseAddress 的值设置为集群的公共 IP 地址或边缘节点可以访问的 IP 地址。完成后,点击右下角的确定保存配置。
##查看安装进度
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f