sidecar demo in readme

This commit is contained in:
kongfei 2022-06-28 15:49:10 +08:00
parent d26c2aae11
commit 1060a425e7
1 changed files with 4 additions and 2 deletions

View File

@ -52,11 +52,13 @@ nohup ./categraf &> stdout.log &
## Deploy categraf as daemonset
edit k8s/categraf.yaml, replace NSERVER_SERVICE_WITH_PORT with service ip:port of nserver in your cluster, replace CATEGRAF_NAMESPACE with namespace value, then run:
edit k8s/daemonset.yaml, replace NSERVER_SERVICE_WITH_PORT with service ip:port of nserver in your cluster, replace CATEGRAF_NAMESPACE with namespace value, then run:
```shell
kubectl apply -n monitoring -f ks8/categraf.yaml
kubectl apply -n monitoring -f ks8/daemonset.yaml
kubectl apply -n monitoring -f ks8/sidecar.yaml
```
notice: k8s/sidecar.yaml is a demo, replace mock with your own image.
## Plugin