Skip to content

Commit 797c783

Browse files
authored
Merge pull request #18 from Random-Liu/remove-unnecessary-config
Remove unnecessary ENV configuration.
2 parents f13ef43 + dc7ed6f commit 797c783

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ spec:
7171
- name: node-problem-detector
7272
image: gcr.io/google_containers/node-problem-detector:v0.1
7373
imagePullPolicy: Always
74-
env:
75-
# Config `host` and `port` of apiserver.
76-
- name: "KUBERNETES_SERVICE_HOST"
77-
value: "master-node-host-name"
78-
- name: "KUBERNETES_SERVICE_PORT"
79-
value: "443"
8074
securityContext:
8175
privileged: true
8276
volumeMounts:
@@ -89,10 +83,7 @@ spec:
8983
hostPath:
9084
path: /var/log/
9185
```
92-
* Edit node-problem-detector.yaml to fit your environment:
93-
* Set environent variables `KUBERNETES_SERVICE_HOST` and `KUBERNETES_SERVICE_PORT`
94-
to apiserver host ip and port.
95-
* Set `log` volueme to your system log diretory. (Used by KernelMonitor)
86+
* Edit node-problem-detector.yaml to fit your environment: Set `log` volueme to your system log diretory. (Used by KernelMonitor)
9687
* Create the DaemonSet with `kubectl create -f node-problem-detector.yaml`
9788
* If needed, you can use [ConfigMap](http://kubernetes.io/docs/user-guide/configmap/)
9889
to overwrite the `config/`.

node-problem-detector.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ spec:
1616
- --kernel-monitor=/config/kernel-monitor.json
1717
image: gcr.io/google_containers/node-problem-detector:v0.1
1818
imagePullPolicy: Always
19-
env:
20-
# Config `host` and `port` of apiserver.
21-
- name: "KUBERNETES_SERVICE_HOST"
22-
value: "e2e-test-lantaol-master"
23-
- name: "KUBERNETES_SERVICE_PORT"
24-
value: "443"
2519
securityContext:
2620
privileged: true
2721
volumeMounts:

0 commit comments

Comments
 (0)