今天参照SkyWalking官方文档https://skywalking.apache.org/docs/skywalking-showcase/latest/readme/ 在centos7使用k8s快速启动一套环境
执行部署安装命令
make deploy.kubernetes
报错如下,应该是个bug
[root@node1 skywalking-showcase]# make deploy.kubernetes FEATURE_FLAGS=single-node
make[1]: 进入目录“/usr/local/src/skywalking-showcase/deploy/platform/kubernetes”
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "sh": executable file not found in $PATH: unknown.
error: no objects passed to apply
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "sh": executable file not found in $PATH: unknown.
error: no objects passed to apply
需要修改文件skywalking-showcase/deploy/platform/kubernetes/Makefile 的36行和62行,将sh改为/bin/sh,改后如下
bhgedigital/envsubst /bin/sh -c "envsubst < /input" | kubectl -n $(NAMESPACE) apply -f - ; \ #36
bhgedigital/envsubst /bin/sh -c "envsubst < /input" | kubectl -n $(NAMESPACE) delete --ignore-not-found -f - ; \ # 62
|