方案一、修改代码,引入jar包
方案二、无侵入,使用探针自动注入到pod
以下使用helm安装,提前安装helm环境
1.添加SkyWalking的helm仓库
helm repo add apache-skywalking https://apache.jfrog.io/artifactory/skywalking-helm
2.更新Helm仓库
helm repo update
3.创建一个k8s命令空间
kubectl create namespace skywalking
4.下载skywalking压缩包
helm pull apache-skywalking/skywalking
5.安装skywalking
tar zxvf skywalking-4.3.0.tgz vim my-values.yaml oap: image: tag: 9.2.0 storageType: elasticsearch ui: image: tag: 9.2.0 service: type: NodePort nodePort: 30880 elasticsearch: enabled: false config: host: es-elasticsearch.default port: http: 9200 helm -n skywalking install apache-skywalking -f my-values.yaml skywalking
查看pod状态
kubectl get pods -n skywalking
标签:kubectl,apache,elasticsearch,链路,helm,skywalking,k8s From: https://www.cnblogs.com/yangx124/p/18218588