Created
April 12, 2017 10:48
-
-
Save arslanbekov/b21db4730f85e04d710e7272d93d665b to your computer and use it in GitHub Desktop.
k8s node-problem-detector
This file contains hidden or 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
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: ${INSTANCE_PREFIX}-master | |
- name: "KUBERNETES_SERVICE_PORT" | |
value: "443" | |
securityContext: | |
privileged: true | |
resources: | |
limits: | |
cpu: "200m" | |
memory: "100Mi" | |
requests: | |
cpu: "20m" | |
memory: "20Mi" | |
volumeMounts: | |
- name: log | |
mountPath: /log | |
readOnly: true | |
volumes: | |
- name: log | |
hostPath: | |
path: /var/log/ | |
securityContext: | |
seLinuxOptions: | |
type: spc_t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment