环境
- kubernetes-1.19.x
- helm 3
- skywalking 8.7.0-es7
- elastissearch-7.x集群
安装
export REPO=skywalking
helm repo add ${REPO} https://apache.jfrog.io/artifactory/skywalking-helm
## 获取chart源码方便修改
$ helm search repo skywalking
NAME CHART VERSION APP VERSION DEscriptION
skywalking/skywalking 4.1.0 Apache SkyWalking APM System
$ helm pull ${REPO}/skywalking
$ tar xvf skywalking-4.1.0.tgz
开发版本安装
helm仓库版本更新未必跟得上,所以必要时可以在github直接拉源码
export REPO=chart
git clone https://github.com/apache/skywalking-kubernetes
cd skywalking-kubernetes
helm repo add elastic https://helm.elastic.co
helm dep up ${REPO}/skywalking
配置并启动skywalking
修改配置文件
# 开发版本路径 skywalking-kubernetes-master/chart/skywalking $ tree . ├── Chart.lock ├── charts │ └── elasticsearch-7.5.2.tgz ├── Chart.yaml ├── files │ └── conf.d │ ├── oap │ └── README.md ├── OWNERS ├── README.md ├── templates │ ├── es-init.job.yaml │ ├── _helpers.tpl │ ├── istio-adapter │ │ ├── adapter.yaml │ │ ├── handler.yaml │ │ ├── instance.yaml │ │ └── rule.yaml │ ├── NOTES.txt │ ├── oap-clusterrolebinding.yaml │ ├── oap-clusterrole.yaml │ ├── oap-cm-override.yaml │ ├── oap-configmap.yaml │ ├── oap-deployment.yaml │ ├── oap-rolebinding.yaml │ ├── oap-role.yaml │ ├── oap-serviceaccount.yaml │ ├── oap-svc.yaml │ ├── ui-deployment.yaml │ ├── ui-ingress.yaml │ └── ui-svc.yaml ├── values-es6.yaml ├── values-es7.yaml ├── values-my-es.yaml └── values.yaml
修改 values-my-es.yaml
这里使用的是自建的es集群,所以修改values-my-es.yaml
PS: 注意修改镜像路径,默认仓库国内无法pull下俩
oap:
image:
repository: docker.mirrors.ustc.edu.cn/apache/skywalking-oap-server
tag: 8.7.0-es7 # Set the right tag according to the existing Elasticsearch version
pullPolicy: Always
storageType: elasticsearch7
ports:
# add more ports here if you need, for example
# zabbix: 10051
grpc: 11800
rest: 12800
ui:
image:
repository: docker.mirrors.ustc.edu.cn/apache/skywalking-ui
tag: 8.7.0
pullPolicy: Always
service:
type: NodePort
externalPort: 80
internalPort: 8080
nodePort: 32554
elasticsearch:
enabled: false
config: # For users of an existing elasticsearch cluster,takes effect when `elasticsearch.enabled` is false
host: "your.elastic.host"
port:
http: 9200
user: "elastic" # [optional]
password: "password" # [optional]
启动 skywalking
helm install skywalking -f values-my-es.yaml -n skywalking .
参考:
https://github.com/apache/skywalking-kubernetes


![[skywalking] helm安装部署 [skywalking] helm安装部署](http://www.mshxw.com/aiimages/31/281049.png)
