Skip to content

Commit

Permalink
docs: refine karpor install (#537)
Browse files Browse the repository at this point in the history
* docs: refine karpor install

* docs: add registryProxy usage
  • Loading branch information
elliotxx authored Jul 25, 2024
1 parent 87fdeee commit 911afde
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 44 deletions.
14 changes: 12 additions & 2 deletions docs/karpor/1-getting-started/2-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ helm install karpor-release kusionstack/karpor

You may have to set your specific configurations if it is deployed into a production cluster, or you want to customize the chart configuration, such as `resources`, `replicas`, `port` etc.

All configurable parameters of the Karpor chart are detailed [here](#chart-configuration).
All configurable parameters of the Karpor chart are detailed [here](#chart-parameters).

```shell
helm install karpor-release kusionstack/karpor --set server.replicas=3 --set syncer.port=7654
Expand Down Expand Up @@ -79,7 +79,17 @@ To uninstall/delete the `karpor-release` helm release in namespace `karpor`:
helm uninstall karpor-release
```

### Chart Configuration
### Image Registry Proxy for China

If you are in China and have problem to pull image from official DockerHub, you can use the registry proxy:

```shell
helm install karpor-release kusionstack/karpor --set registryProxy=docker.m.daocloud.io
```

**NOTE**: The above is just an example, you can replace the value of `registryProxy` as needed.

### Chart Parameters

The following table lists the configurable parameters of the chart and their default values.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ helm install karpor-release kusionstack/karpor

![安装](./assets/2-installation/install.gif)

**注意**:直接安装此 Chart 意味着它将使用 Karpor 的[默认模板值](https://github.com/KusionStack/charts/blob/master/charts/karpor/values.yaml)
**注意**:直接安装此 Chart 意味着它将使用 Karpor 的 [默认模板值](https://github.com/KusionStack/charts/blob/master/charts/karpor/values.yaml)

如果将其部署到生产集群中,或者您想要自定义 Chart 配置,如 `resources``replicas``port` 等,您可以通过 `--set` 参数覆盖默认值。

Karpor Chart 的所有可配置参数都详细说明在[这里](#Chart配置)
Karpor Chart 的所有可配置参数都详细说明在 [这里](#chart-参数)

```shell
helm install karpor-release kusionstack/karpor --set server.replicas=3 --set syncer.port=7654
Expand Down Expand Up @@ -63,7 +63,7 @@ helm upgrade karpor-release kusionstack/karpor --version 1.2.3

### 本地安装

如果您在生产中连接 [https://kusionstack.github.io/charts/](https://kusionstack.github.io/charts/) 有问题,您可能需要从 [这里](https://github.com/KusionStack/charts) 手动下载 Chart,并使用它来安装或升级版本
如果您在生产中连接 [https://kusionstack.github.io/charts/](https://kusionstack.github.io/charts/) 有问题,您可能需要从 [这里](https://github.com/KusionStack/charts) 手动下载 Chart,并在本地使用它来安装或升级 Karpor 版本

```shell
git clone https://github.com/KusionStack/charts.git
Expand All @@ -79,82 +79,92 @@ helm upgrade karpor-release charts/karpor
helm uninstall karpor-release
```

### Chart配置
### 中国镜像代理

以下表格列出了Chart的可配置参数及其默认值。
如果你在中国、并且从官方 DockerHub 上拉取镜像时遇到困难,那么你可以使用第三方的镜像代理服务:

```shell
helm install karpor-release kusionstack/karpor --set registryProxy=docker.m.daocloud.io
```

**注意**: 以上只是一个样例,你可以根据需要替换 `registryProxy` 的值。

### Chart 参数

以下表格列出了 Chart 的所有可配置参数及其默认值。

#### 通用参数

|| 类型 | 默认值 | 描述 |
|-----|------|---------|-------------|
| namespace | string | `"karpor"` | 部署的命名空间。 |
| namespaceEnabled | bool | `true` | 是否生成命名空间 |
| registryProxy | string | `""` | 镜像注册表代理将作为所有组件镜像的前缀。 |
| namespace | string | `"karpor"` | 部署的目标命名空间 |
| namespaceEnabled | bool | `true` | 是否生成命名空间 |
| registryProxy | string | `""` | 镜像代理地址,配置后将作为所有组件镜像的前缀。 比如,`golang:latest` 将替换为 `<registryProxy>/golang:latest` |

#### 全局参数

|| 类型 | 默认值 | 描述 |
|-----|------|---------|-------------|
| global.image.imagePullPolicy | string | `"IfNotPresent"` | 应用于所有 Karpor 组件的镜像拉取策略 |
| global.image.imagePullPolicy | string | `"IfNotPresent"` | 应用于所有 Karpor 组件的镜像拉取策略 |

#### Karpor 服务器
#### Karpor Server

Karpor 服务器组件是主要的后端服务器。它本身就是一个 `apiserver`,也提供 `/rest-api` 来服务 Web UI
Karpor Server 组件是主要的后端服务。它本身就是一个 `apiserver`,也提供 `/rest-api` 来服务 Web UI

|| 类型 | 默认值 | 描述 |
|-----|------|---------|-------------|
| server.image.repo | string | `"kusionstack/karpor"` | Karpor 服务器镜像的仓库。 |
| server.image.tag | string | `""` | Karpor 服务器镜像的标签。如果未指定,则默认为 Chart 的 appVersion |
| server.name | string | `"karpor-server"` | karpor 服务器的组件名称。 |
| server.port | int | `7443` | karpor 服务器的端口。 |
| server.replicas | int | `1` | 要运行的 karpor 服务器 pod 的数量 |
| server.resources | object | `{"limits":{"cpu":"500m","ephemeral-storage":"10Gi","memory":"1Gi"},"requests":{"cpu":"250m","ephemeral-storage":"2Gi","memory":"256Mi"}}` | karpor 服务器 pod 的资源限制和请求。 |
| server.image.repo | string | `"kusionstack/karpor"` | Karpor Server 镜像的仓库 |
| server.image.tag | string | `""` | Karpor Server 镜像的标签。如果未指定,则默认为 Chart 的 appVersion |
| server.name | string | `"karpor-server"` | Karpor Server 的组件名称 |
| server.port | int | `7443` | Karpor Server 的端口 |
| server.replicas | int | `1` | 要运行的 Karpor Server pod 的数量 |
| server.resources | object | `{"limits":{"cpu":"500m","ephemeral-storage":"10Gi","memory":"1Gi"},"requests":{"cpu":"250m","ephemeral-storage":"2Gi","memory":"256Mi"}}` | Karpor Server pod 的资源规格 |

#### Karpor 同步器
#### Karpor Syncer

Karpor 同步器组件是独立的服务器,用于实时同步集群资源。
Karpor Syncer 组件是独立的服务,用于实时同步集群资源。

|| 类型 | 默认值 | 描述 |
|-----|------|---------|-------------|
| syncer.image.repo | string | `"kusionstack/karpor"` | Karpor 同步器镜像的仓库。 |
| syncer.image.tag | string | `""` | Karpor 同步器镜像的标签。如果未指定,则默认为Chart的 appVersion |
| syncer.name | string | `"karpor-syncer"` | karpor 同步器的组件名称。 |
| syncer.port | int | `7443` | karpor 同步器的端口。 |
| syncer.replicas | int | `1` | 要运行的 karpor 同步器 pod 的数量 |
| syncer.resources | object | `{"limits":{"cpu":"500m","ephemeral-storage":"10Gi","memory":"1Gi"},"requests":{"cpu":"250m","ephemeral-storage":"2Gi","memory":"256Mi"}}` | karpor 同步器 pod 的资源限制和请求。 |
| syncer.image.repo | string | `"kusionstack/karpor"` | Karpor Syncer 镜像的仓库 |
| syncer.image.tag | string | `""` | Karpor Syncer 镜像的标签。如果未指定,则默认为 Chart 的 appVersion |
| syncer.name | string | `"karpor-syncer"` | karpor Syncer 的组件名称 |
| syncer.port | int | `7443` | karpor Syncer 的端口 |
| syncer.replicas | int | `1` | 要运行的 karpor Syncer pod 的数量 |
| syncer.resources | object | `{"limits":{"cpu":"500m","ephemeral-storage":"10Gi","memory":"1Gi"},"requests":{"cpu":"250m","ephemeral-storage":"2Gi","memory":"256Mi"}}` | karpor Syncer pod 的资源规格 |

#### ElasticSearch

ElasticSearch 组件用于存储同步的资源和用户数据。

|| 类型 | 默认值 | 描述 |
|-----|------|---------|-------------|
| elasticsearch.image.repo | string | `"docker.elastic.co/elasticsearch/elasticsearch"` | ElasticSearch 镜像的仓库 |
| elasticsearch.image.tag | string | `"8.6.2"` | ElasticSearch 镜像的特定标签 |
| elasticsearch.name | string | `"elasticsearch"` | ElasticSearch 的组件名称 |
| elasticsearch.port | int | `9200` | ElasticSearch 的端口 |
| elasticsearch.replicas | int | `1` | 要运行的 ElasticSearch pod 的数量 |
| elasticsearch.resources | object | `{"limits":{"cpu":"2","ephemeral-storage":"10Gi","memory":"4Gi"},"requests":{"cpu":"2","ephemeral-storage":"10Gi","memory":"4Gi"}}` | karpor elasticsearch pod 的资源限制和请求。 |
| elasticsearch.image.repo | string | `"docker.elastic.co/elasticsearch/elasticsearch"` | ElasticSearch 镜像的仓库 |
| elasticsearch.image.tag | string | `"8.6.2"` | ElasticSearch 镜像的特定标签 |
| elasticsearch.name | string | `"elasticsearch"` | ElasticSearch 的组件名称 |
| elasticsearch.port | int | `9200` | ElasticSearch 的端口 |
| elasticsearch.replicas | int | `1` | 要运行的 ElasticSearch pod 的数量 |
| elasticsearch.resources | object | `{"limits":{"cpu":"2","ephemeral-storage":"10Gi","memory":"4Gi"},"requests":{"cpu":"2","ephemeral-storage":"10Gi","memory":"4Gi"}}` | karpor elasticsearch pod 的资源规格 |

#### ETCD

ETCD 组件是 Karpor 服务器的存储 `apiserver`
ETCD 组件是 Karpor Server 作为 `apiserver` 背后的存储

|| 类型 | 默认值 | 描述 |
|-----|------|---------|-------------|
| etcd.image.repo | string | `"quay.io/coreos/etcd"` | ETCD 镜像的仓库 |
| etcd.image.tag | string | `"v3.5.11"` | ETCD 镜像的特定标签。 |
| etcd.name | string | `"etcd"` | ETCD 的组件名称 |
| etcd.port | int | `2379` | ETCD 的端口 |
| etcd.replicas | int | `1` | 要运行的 etcd pod 的数量 |
| etcd.resources | object | `{"limits":{"cpu":"500m","ephemeral-storage":"10Gi","memory":"1Gi"},"requests":{"cpu":"250m","ephemeral-storage":"2Gi","memory":"256Mi"}}` | karpor etcd pod 的资源限制和请求。 |
| etcd.image.repo | string | `"quay.io/coreos/etcd"` | ETCD 镜像的仓库 |
| etcd.image.tag | string | `"v3.5.11"` | ETCD 镜像的标签 |
| etcd.name | string | `"etcd"` | ETCD 的组件名称 |
| etcd.port | int | `2379` | ETCD 的端口 |
| etcd.replicas | int | `1` | 要运行的 etcd pod 的数量 |
| etcd.resources | object | `{"limits":{"cpu":"500m","ephemeral-storage":"10Gi","memory":"1Gi"},"requests":{"cpu":"250m","ephemeral-storage":"2Gi","memory":"256Mi"}}` | karpor etcd pod 的资源规格 |

#### 作业
#### Job

这是一个一次性作业,用于生成根证书和一些初步工作
这是一个一次性 Kubernetes Job,用于生成根证书和一些前置工作。Karpor Server 和 Karpor Syncer 都需要依赖它完成才能正常启动

|| 类型 | 默认值 | 描述 |
|-----|------|---------|-------------|
| job.image.repo | string | `"golang"` | 作业镜像的仓库。 |
| job.image.tag | string | `"1.19"` | 作业镜像的特定标签。 |
| job.image.repo | string | `"golang"` | Job 镜像的仓库 |
| job.image.tag | string | `"1.19"` | Job 镜像的标签 |

0 comments on commit 911afde

Please sign in to comment.