我正在尝试将本地Kubernetes Minikube
集群连接到Sysdig。
我已将ACCESS_KEY
导出到环境中,并按照Sysdig文档的要求复制了Yams配置文件:
我启动了Minikube并运行以下命令:
kubectl create ns sysdig-agent
kubectl create secret generic sysdig-agent --from-literal=access-key=${ACCESS_KEY} -n sysdig-agent
kubectl apply -f sysdig/sysdig-agent-clusterrole.yaml -n sysdig-agent
kubectl create serviceaccount sysdig-agent -n sysdig-agent
kubectl create clusterrolebinding sysdig-agent --clusterrole=sysdig-agent --serviceaccount=sysdig-agent:sysdig-agent
kubectl apply -f sysdig/sysdig-agent-configmap.yaml -n sysdig-agent
kubectl apply -f sysdig/sysdig-agent-daemonset-v2.yaml -n sysdig-agent
以下是输出(似乎还可以):
? minikube v1.1.1 on darwin (amd64)
? Creating virtualbox VM CPUs=2, Memory=8192MB, Disk=20000MB) ...
? Configuring environment for Kubernetes v1.14.3 on Docker 18.09.6
? Pulling images ...
? Launching Kubernetes ...
⌛ Verifying: apiserver proxy etcd scheduler controller dns
? Done! kubectl is now configured to use "minikube"
namespace/sysdig-agent created secret/sysdig-agent created
clusterrole.rbac.authorization.k8s.io/sysdig-agent created
serviceaccount/sysdig-agent created
clusterrolebinding.rbac.authorization.k8s.io/sysdig-agent created
configmap/sysdig-agent created daemonset.extensions/sysdig-agent
created persistentvolumeclaim/orientdb-pv-claim created
deployment.extensions/orientdbservice created
在Sysdig Monitor面板中,我仍然看到以下内容: