登錄到Datadog之後,按照此文檔去安裝Datadog agent。注意其中的datadog-agent.yaml 這個文件,把它copy出備用node
kubectl create -f datadog-agent.yaml
安裝Helmgit
sudo snap install helm
https://kubernetes-charts.storage.googleapis.comgithub
helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.9.1 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
helm search
https://app.datadoghq.com/account/settings#apidocker
helm install --name wbdatadog --set datadog.apiKey=5606443cd7359ac1ba6815**** stable/datadog
helm list
成功後,登錄Datadog,能看到咱們的k8s node list:
shell