mirror of https://github.com/k3s-io/k3s
Added 'hollow'-node-problem-detector to hollow-nodes in kubemark
parent
149bb3059f
commit
7e12fd4bfd
|
@ -26,11 +26,23 @@
|
|||
"secretName": "kubeconfig"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "npdconfig-volume",
|
||||
"configMap": {
|
||||
"name": "node-problem-detector-config"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "logs-volume",
|
||||
"hostPath": {
|
||||
"path": "/var/logs"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kernellog-volume",
|
||||
"hostPath": {
|
||||
"path": "/var/log"
|
||||
}
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
|
@ -130,6 +142,41 @@
|
|||
"memory": "100M"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "hollow-node-problem-detector",
|
||||
"image": "gcr.io/google_containers/node-problem-detector:v0.2",
|
||||
"env": [
|
||||
{
|
||||
"name": "NODE_NAME",
|
||||
"valueFrom": {
|
||||
"fieldRef": {
|
||||
"fieldPath": "spec.nodeName"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "npdconfig-volume",
|
||||
"mountPath": "/config",
|
||||
"readOnly": true
|
||||
},
|
||||
{
|
||||
"name": "kernellog-volume",
|
||||
"mountPath": "/log",
|
||||
"readOnly": true
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"requests": {
|
||||
"cpu": "20m",
|
||||
"memory": "20Mi"
|
||||
}
|
||||
},
|
||||
"securityContext": {
|
||||
"privileged": true
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"logPath": "/log/faillog",
|
||||
"lookback": "10m",
|
||||
"startPattern": "Initializing cgroup subsys cpuset",
|
||||
"bufferSize": 10,
|
||||
"source": "kernel-monitor",
|
||||
"conditions": [],
|
||||
"rules": []
|
||||
}
|
|
@ -264,6 +264,7 @@ sed -i'' -e "s/{{EVENTER_MEM}}/${eventer_mem}/g" "${RESOURCE_DIRECTORY}/addons/h
|
|||
"${KUBECTL}" create -f "${KUBECONFIG_SECRET}" --namespace="kubemark"
|
||||
"${KUBECTL}" create -f "${NODE_CONFIGMAP}" --namespace="kubemark"
|
||||
"${KUBECTL}" create -f "${RESOURCE_DIRECTORY}/addons" --namespace="kubemark"
|
||||
"${KUBECTL}" create configmap node-problem-detector-config --from-file="${RESOURCE_DIRECTORY}/kernel-monitor.json" --namespace="kubemark"
|
||||
"${KUBECTL}" create -f "${RESOURCE_DIRECTORY}/hollow-node.json" --namespace="kubemark"
|
||||
|
||||
rm "${KUBECONFIG_SECRET}"
|
||||
|
|
Loading…
Reference in New Issue