我正在尝试将我的本地 KubernetesMinikube
集群连接到 Sysdig。
我已ACCESS_KEY
按照 Sysdig 文档的要求将 yams 导出到环境并复制了 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 面板中,我仍然看到以下内容: