From dc7ed6fe06a74a168bab503b0fe2a2c80f54aa9b Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Thu, 9 Jun 2016 15:26:46 -0700 Subject: [PATCH] Remove unnecessary ENV configuration. --- README.md | 11 +---------- node-problem-detector.yaml | 6 ------ 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/README.md b/README.md index c0b04c27..c769c0d1 100644 --- a/README.md +++ b/README.md @@ -71,12 +71,6 @@ spec: - name: node-problem-detector image: gcr.io/google_containers/node-problem-detector:v0.1 imagePullPolicy: Always - env: - # Config `host` and `port` of apiserver. - - name: "KUBERNETES_SERVICE_HOST" - value: "master-node-host-name" - - name: "KUBERNETES_SERVICE_PORT" - value: "443" securityContext: privileged: true volumeMounts: @@ -89,10 +83,7 @@ spec: hostPath: path: /var/log/ ``` -* Edit node-problem-detector.yaml to fit your environment: - * Set environent variables `KUBERNETES_SERVICE_HOST` and `KUBERNETES_SERVICE_PORT` - to apiserver host ip and port. - * Set `log` volueme to your system log diretory. (Used by KernelMonitor) +* Edit node-problem-detector.yaml to fit your environment: Set `log` volueme to your system log diretory. (Used by KernelMonitor) * Create the DaemonSet with `kubectl create -f node-problem-detector.yaml` * If needed, you can use [ConfigMap](http://kubernetes.io/docs/user-guide/configmap/) to overwrite the `config/`. diff --git a/node-problem-detector.yaml b/node-problem-detector.yaml index cd09e792..117c0257 100644 --- a/node-problem-detector.yaml +++ b/node-problem-detector.yaml @@ -16,12 +16,6 @@ spec: - --kernel-monitor=/config/kernel-monitor.json image: gcr.io/google_containers/node-problem-detector:v0.1 imagePullPolicy: Always - env: - # Config `host` and `port` of apiserver. - - name: "KUBERNETES_SERVICE_HOST" - value: "e2e-test-lantaol-master" - - name: "KUBERNETES_SERVICE_PORT" - value: "443" securityContext: privileged: true volumeMounts: