-
Notifications
You must be signed in to change notification settings - Fork 40k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add node problem detector as an addon pod.
- Loading branch information
1 parent
9625926
commit 195e249
Showing
9 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Maintainers | ||
|
||
Lantao Liu <lantaol@google.com> | ||
|
||
|
||
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/cluster/addons/node-problem-detector/MAINTAINERS.md?pixel)]() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Node Problem Detector | ||
============== | ||
|
||
Node Problem Detector is a DaemonSet running on each node, detecting node | ||
problems. | ||
|
||
Learn more at: https://github.com/kubernetes/node-problem-detector | ||
|
||
|
||
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/cluster/addons/node-problem-detector/README.md?pixel)]() |
44 changes: 44 additions & 0 deletions
44
cluster/addons/node-problem-detector/node-problem-detector.yaml.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: DaemonSet | ||
metadata: | ||
name: node-problem-detector-v0.1 | ||
namespace: kube-system | ||
labels: | ||
k8s-app: node-problem-detector | ||
version: v0.1 | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: node-problem-detector | ||
version: v0.1 | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
hostNetwork: true | ||
containers: | ||
- name: node-problem-detector | ||
image: gcr.io/google_containers/node-problem-detector:v0.1 | ||
env: | ||
# Config the host ip and port of apiserver. | ||
- name: "KUBERNETES_SERVICE_HOST" | ||
value: "{{ pillar['master_node'] }}" | ||
- name: "KUBERNETES_SERVICE_PORT" | ||
value: "443" | ||
securityContext: | ||
privileged: true | ||
resources: | ||
limits: | ||
cpu: "200m" | ||
memory: "100Mi" | ||
requests: | ||
cpu: "50m" | ||
memory: "20Mi" | ||
volumeMounts: | ||
- name: log | ||
mountPath: /log | ||
readOnly: true | ||
volumes: | ||
- name: log | ||
hostPath: | ||
path: /var/log/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters