helm3 install skywalking 笔记
1、下载 skywalking 的 chart 包
down https://github.com/apache/skywalking-kubernetes/releases/tag/v3.0.0
解压 tar -zxvf xxx.tgz
2、变更 values.yaml(可选)
若 k8s 不是完整的集群(本机),可变更副本数 es replicas=1
3、自行拉镜像(可选)
(我在 install 时,拉镜像超时整体起不来)
apache/skywalking-oap-server:8.0.1-es7
apache/skywalking-ui:8.0.1
docker.elastic.co/elasticsearch/elasticsearch:7.5.1
4、执行 helm install (记得先升级到 helm3, brew upgrade helm
)
helm install -f values.yaml skywalking .
注意 最后有个 ‘.’
NAME: skywalking
LAST DEPLOYED: Sun Jul 5 15:58:07 2020
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
************************************************************************
* *
* SkyWalking Helm Chart by SkyWalking Team *
* *
************************************************************************
Thank you for installing skywalking.
Your release is named skywalking.
Learn more, please visit https://skywalking.apache.org/
Get the UI URL by running these commands:
export POD_NAME=$(kubectl get pods --namespace default -l "app=skywalking,release=skywalking,component=ui" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl port-forward $POD_NAME 8080:8080 --namespace default
#################################################################################
###### WARNING: Persistence is disabled!!! You will lose your data when #####
###### the SkyWalking's storage ES pod is terminated. #####
#################################################################################
5、暴露 pod 的端口(若给本机外调用 ‘–address 0.0.0.0’ )
export POD_UI=$(kubectl get pods --namespace default -l "app=skywalking,release=skywalking,component=ui" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward $POD_UI 8080:8080 --namespace default --address 0.0.0.0
export POD_OAP=$(kubectl get pods --namespace default -l "app=skywalking,release=skywalking,component=oap" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward $POD_OAP 11800:11800 --namespace default --address 0.0.0.0