Skip to content

Commit 30d37fe

Browse files
authored
docs: update kusion installation instruction (#98)
1 parent 4a868a2 commit 30d37fe

File tree

3 files changed

+107
-19
lines changed

3 files changed

+107
-19
lines changed

charts/kusion/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: kusion
3-
version: 0.14.0
3+
version: 0.14.1
44
type: application
55
appVersion: 0.14.0
66
description: Kusion - An Intent-Driven Platform Orchestrator

charts/kusion/README.md

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,71 @@ Kusion - An Intent-Driven Platform Orchestrator
2222

2323
## Installing the Chart
2424

25-
First, add the Kusion chart repo to your local repository.
25+
> Note: A valid kubeconfig configuration is required for Kusion to function properly. You must either use the installation script, provide your own kubeconfig in values.yaml, or set it through the --set parameter
26+
27+
To install Kusion, you have the following options:
28+
29+
### 1. Use the installation script (recommended)
2630

2731
```shell
28-
helm repo add kusionstack https://kusionstack.github.io/charts
29-
helm repo update
32+
./scripts/install-kusion-server.sh <kubeconfig_key1=kubeconfig_path1> <kubeconfig_key2=kubeconfig_path2> ...
3033
```
3134

32-
Then you can use the following command to install the latest version of Kusion.
35+
**Parameters:**
36+
37+
- **kubeconfig_key**: The key for the kubeconfig file. It should be unique and not contain spaces.
38+
39+
- **kubeconfig_path**: The path to the kubeconfig file.
40+
41+
### 2. Manual installation with your own kubeconfig
42+
43+
Edit the [values file](values.yaml) to add your kubeconfig content
44+
45+
```yaml
46+
# Replace the content below with your actual kubeconfig
47+
kubeconfig:
48+
kubeConfigs:
49+
kubeconfig0: |
50+
Please fill in your KubeConfig contents here.
51+
kubeconfig1: |
52+
Please fill in your KubeConfig contents here.
53+
```
54+
55+
Then install the chart with the custom values file:
3356
3457
```shell
35-
helm install kusion-release kusionstack/kusion
58+
helm install kusion-release ./kusion
3659
```
3760

38-
> Note that installing this chart directly means it will use the [default template values](./values.yaml) for Kusion.
61+
### 3. Install with specific configurations
62+
63+
First, you need to base64 encode your kubeconfig files.
64+
65+
```shell
66+
KUBECONFIG_CONTENT1=$(base64 -w 0 /path/to/your/kubeconfig1)
67+
KUBECONFIG_CONTENT2=$(base64 -w 0 /path/to/your/kubeconfig2)
68+
```
69+
70+
Then you can use the following command to install the latest version of Kusion.
71+
72+
```shell
73+
helm install kusion-release kusionstack/kusion \
74+
--set kubeconfig.kubeConfigs.kubeconfig0="$KUBECONFIG_CONTENT1" \
75+
--set kubeconfig.kubeConfigs.kubeconfig1="$KUBECONFIG_CONTENT2"
76+
```
3977

40-
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.
78+
You may also have to set your specific configurations if it is deployed into a production cluster, or you want to customize the chart configuration, such as `port`, `replicas`, `database` etc.
4179

42-
All configurable parameters of the Kusion chart are detailed [here](#chart-parameters).
80+
> All configurable parameters of the Kusion chart are detailed [here](#chart-parameters).
4381
4482
```shell
45-
helm install kusion-release kusionstack/kusion --set server.port=8080 --set mysql.enabled=true --set mysql.database=kusion
83+
helm install kusion-release kusionstack/kusion \
84+
--set server.port=8080 \
85+
--set server.replicas=3 \
86+
--set mysql.enabled=true \
87+
--set mysql.database=kusion \
88+
--set kubeconfig.kubeConfigs.kubeconfig0="$KUBECONFIG_CONTENT1" \
89+
--set kubeconfig.kubeConfigs.kubeconfig1="$KUBECONFIG_CONTENT2"
4690
```
4791

4892
## Chart Parameters

charts/kusion/README.md.gotmpl

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,71 @@
1616

1717
## Installing the Chart
1818

19-
First, add the Kusion chart repo to your local repository.
19+
> Note: A valid kubeconfig configuration is required for Kusion to function properly. You must either use the installation script, provide your own kubeconfig in values.yaml, or set it through the --set parameter
20+
21+
To install Kusion, you have the following options:
22+
23+
### 1. Use the installation script (recommended)
2024

2125
```shell
22-
helm repo add kusionstack https://kusionstack.github.io/charts
23-
helm repo update
26+
./scripts/install-kusion-server.sh <kubeconfig_key1=kubeconfig_path1> <kubeconfig_key2=kubeconfig_path2> ...
2427
```
2528

26-
Then you can use the following command to install the latest version of Kusion.
29+
**Parameters:**
30+
31+
- **kubeconfig_key**: The key for the kubeconfig file. It should be unique and not contain spaces.
32+
33+
- **kubeconfig_path**: The path to the kubeconfig file.
34+
35+
### 2. Manual installation with your own kubeconfig
36+
37+
Edit the [values file](values.yaml) to add your kubeconfig content
38+
39+
```yaml
40+
# Replace the content below with your actual kubeconfig
41+
kubeconfig:
42+
kubeConfigs:
43+
kubeconfig0: |
44+
Please fill in your KubeConfig contents here.
45+
kubeconfig1: |
46+
Please fill in your KubeConfig contents here.
47+
```
48+
49+
Then install the chart with the custom values file:
2750

2851
```shell
29-
helm install kusion-release kusionstack/kusion
52+
helm install kusion-release ./kusion
3053
```
3154

32-
> Note that installing this chart directly means it will use the [default template values](./values.yaml) for Kusion.
55+
### 3. Install with specific configurations
56+
57+
First, you need to base64 encode your kubeconfig files.
58+
59+
```shell
60+
KUBECONFIG_CONTENT1=$(base64 -w 0 /path/to/your/kubeconfig1)
61+
KUBECONFIG_CONTENT2=$(base64 -w 0 /path/to/your/kubeconfig2)
62+
```
63+
64+
Then you can use the following command to install the latest version of Kusion.
65+
66+
```shell
67+
helm install kusion-release kusionstack/kusion \
68+
--set kubeconfig.kubeConfigs.kubeconfig0="$KUBECONFIG_CONTENT1" \
69+
--set kubeconfig.kubeConfigs.kubeconfig1="$KUBECONFIG_CONTENT2"
70+
```
3371

34-
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.
72+
You may also have to set your specific configurations if it is deployed into a production cluster, or you want to customize the chart configuration, such as `port`, `replicas`, `database` etc.
3573

36-
All configurable parameters of the Kusion chart are detailed [here](#chart-parameters).
74+
> All configurable parameters of the Kusion chart are detailed [here](#chart-parameters).
3775

3876
```shell
39-
helm install kusion-release kusionstack/kusion --set server.port=8080 --set mysql.enabled=true --set mysql.database=kusion
77+
helm install kusion-release kusionstack/kusion \
78+
--set server.port=8080 \
79+
--set server.replicas=3 \
80+
--set mysql.enabled=true \
81+
--set mysql.database=kusion \
82+
--set kubeconfig.kubeConfigs.kubeconfig0="$KUBECONFIG_CONTENT1" \
83+
--set kubeconfig.kubeConfigs.kubeconfig1="$KUBECONFIG_CONTENT2"
4084
```
4185

4286
## Chart Parameters

0 commit comments

Comments
 (0)