README.md 2.8 KB
Newer Older
G
Gao Hongtao 已提交
1 2 3 4
Apache SkyWalking Kubernetes
==========

# Deploy SkyWalking backend to Kubernetes cluster
G
Gao Hongtao 已提交
5 6 7

To install and configure skywalking in a Kubernetes cluster, follow these instructions.

wu-sheng's avatar
wu-sheng 已提交
8
## Documentation
G
Gao Hongtao 已提交
9
#### Deploy SkyWalking and Elasticsearch 7 (default)
wu-sheng's avatar
wu-sheng 已提交
10 11 12 13

```shell script
$ cd chart

G
Gao Hongtao 已提交
14
$ helm repo add elastic https://helm.elastic.co
wu-sheng's avatar
wu-sheng 已提交
15

J
JaredTan95 已提交
16
$ helm dep up skywalking
wu-sheng's avatar
wu-sheng 已提交
17 18

$ helm install <release_name> skywalking -n <namespace>
G
Gao Hongtao 已提交
19 20 21 22 23 24 25 26
``` 

**Note**: If you want to deploy Elasticsearch 6, execute the following command

```shell script
$ helm dep up skywalking

$ helm install <release_name> skywalking -n <namespace> --values ./skywalking/values-es6.yaml
wu-sheng's avatar
wu-sheng 已提交
27 28 29 30 31 32 33 34 35 36
```

#### Only deploy SkyWalking ,and use existing Elasticsearch
If not want to deploy a new elasticsearch cluster, this way can be solved.

Only need to close the elasticsearch deployed by chart default and configure the existing elasticsearch connection method.

```shell script
$ cd chart

G
Gao Hongtao 已提交
37 38 39
$ helm repo add elastic https://helm.elastic.co

$ helm dep up skywalking
wu-sheng's avatar
wu-sheng 已提交
40

G
Gao Hongtao 已提交
41 42 43 44 45 46 47 48 49
$ helm install <release_name> skywalking -n <namespace> \
        --set elasticsearch.enabled=false \
        --set elasticsearch.config.host=<es_host> \
        --set elasticsearch.config.port.http=<es_port>
```

**Note**: You need to make sure your ES cluster version is 7.x , If your cluster version is 6.x, execute the following command

```shell script
J
JaredTan95 已提交
50
$ helm dep up skywalking
wu-sheng's avatar
wu-sheng 已提交
51 52

$ helm install <release_name> skywalking -n <namespace> \
G
Gao Hongtao 已提交
53
        --values ./skywalking/values-es6.yaml
wu-sheng's avatar
wu-sheng 已提交
54 55 56 57 58
        --set elasticsearch.enabled=false \
        --set elasticsearch.config.host=<es_host> \
        --set elasticsearch.config.port.http=<es_port>
```

G
Gao Hongtao 已提交
59
## Structure of repository
G
Gao Hongtao 已提交
60

G
Gao Hongtao 已提交
61
### helm-chart 
G
Gao Hongtao 已提交
62

I
innerpeacez 已提交
63 64
This is recommended as the best practice to deploy SkyWalking backend stack into kubernetes cluster. 

wu-sheng's avatar
wu-sheng 已提交
65 66 67 68
#### release chart table 
| SkyWalking version | Chart version |
| ------------------ | ------------- |
| 6.5.0              | 1.0.0         |
G
Gao Hongtao 已提交
69
| 6.6.0              | 1.1.0         | 
wu-sheng's avatar
wu-sheng 已提交
70 71 72

Note:  The source code for the release chart is located in the chart folder in the master branch.

I
innerpeacez 已提交
73 74 75 76 77 78 79 80 81 82 83
#### old chart position table

| SkyWalking version | Chart position                                               |
| ------------------ | ------------------------------------------------------------ |
| 6.0.0-GA           | [6.0.0-GA](https://github.com/apache/skywalking-kubernetes/tree/legacy-helm-chart/helm-chart/helm2/6.0.0-GA) |
| 6.1.0              | [6.1.0](https://github.com/apache/skywalking-kubernetes/tree/legacy-helm-chart/helm-chart/helm2/6.1.0) |
| 6.3.0              | [6.3.0](https://github.com/apache/skywalking-kubernetes/tree/legacy-helm-chart/helm-chart/helm3/6.3.0) |
| 6.4.0              | [6.4.0](https://github.com/apache/skywalking-kubernetes/tree/legacy-helm-chart/helm-chart/helm3/6.4.0) |

Note:  The source code for old charts are in the **legacy-helm-chart** branch.

wu-sheng's avatar
wu-sheng 已提交
84 85
# LICENSE
Apache 2.0