k8s 安装skywalking OAP
时间: 2023-12-10 17:34:51 浏览: 163
以下是在k8s上安装SkyWalking OAP的步骤:
1. 添加SkyWalking Helm Chart仓库
```shell
helm repo add skywalking https://apache.skywalking.apache.org/charts
helm repo update
```
2. 创建SkyWalking命名空间
```shell
kubectl create namespace skywalking
```
3. 安装SkyWalking OAP
```shell
helm install skywalking skywalking/skywalking-oap \
--namespace=skywalking \
--set oap.imageTag=8.7.0-es7 \
--set elasticsearch.enabled=true \
--set elasticsearch.imageTag=7.10.2 \
--set elasticsearch.esJavaOpts="-Xms512m -Xmx512m" \
--set elasticsearch.resources.requests.cpu=0.5 \
--set elasticsearch.resources.requests.memory=1Gi \
--set elasticsearch.resources.limits.cpu=1 \
--set elasticsearch.resources.limits.memory=2Gi \
--set service.type=ClusterIP \
--set ingress.enabled=true \
--set ingress.hosts[0].name=skywalking.example.com \
--set ingress.hosts[0].paths[0]="/" \
--set ingress.annotations."nginx\.ingress\.kubernetes\.io/proxy-body-size"="50m"
```
4. 等待SkyWalking OAP部署完成
```shell
kubectl rollout status deployment/skywalking-skywalking-oap-server -n skywalking
```
5. 访问SkyWalking UI
在浏览器中输入SkyWalking UI的地址,例如:http://skywalking.example.com