update the deployment file and use configmap

This commit is contained in:
Hui Chen
2018-11-12 13:20:47 +08:00
parent 5e56f2bf12
commit 16933f8333
3 changed files with 91 additions and 4 deletions
+2 -2
View File
@@ -103,9 +103,9 @@ to another registry.
## Start DaemonSet
* Edit [node-problem-detector.yaml](https://github.com/kubernetes/node-problem-detector/blob/master/deployment/node-problem-detector.yaml) to fit your environment: Set `log` volume to your system log directory. (Used by SystemLogMonitor). For **kubernetes <1.9** use [node-problem-detector-old.yaml](https://github.com/kubernetes/node-problem-detector/blob/master/deployment/node-problem-detector-old.yaml)
* Create the DaemonSet with `kubectl create -f node-problem-detector.yaml`
* If needed, you can use [ConfigMap](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/)
to overwrite the `config/`.
to overwrite the `config/`, Edit [node-problem-detector-config.yaml](https://github.com/kubernetes/node-problem-detector/blob/master/deployment/node-problem-detector-config.yaml) to fit your environment. and create the ConfigMap with `kubectl create -f node-problem-detector-config.yaml`.
* Create the DaemonSet with `kubectl create -f node-problem-detector.yaml`.
## Start Standalone
To run node-problem-detector standalone, you should set `inClusterConfig` to `false` and