Skip to content

Instantly share code, notes, and snippets.

@arslanbekov
Created April 12, 2017 10:48
Show Gist options
  • Save arslanbekov/b21db4730f85e04d710e7272d93d665b to your computer and use it in GitHub Desktop.
Save arslanbekov/b21db4730f85e04d710e7272d93d665b to your computer and use it in GitHub Desktop.
k8s node-problem-detector
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