2 # Custom monitor definitions to add to Node Problem Detector - to be
3 # mounted at /custom-config. These are in addition to pre-packaged monitor
4 # definitions provided within the default docker image available at /config:
5 # https://github.com/kubernetes/node-problem-detector/tree/master/config
6 # settings.custom_monitor_definitions -- Custom plugin monitor config files
7 custom_monitor_definitions: {}
8 # docker-monitor-filelog.json: |
10 # "plugin": "filelog",
12 # "timestamp": "^time=\"(\\S*)\"",
13 # "message": "msg=\"([^\n]*)\"",
14 # "timestampFormat": "2006-01-02T15:04:05.999999999-07:00"
16 # "logPath": "/var/log/docker.log",
19 # "source": "docker-monitor",
23 # "type": "temporary",
24 # "reason": "CorruptDockerImage",
25 # "pattern": "Error trying v2 registry: failed to register layer: rename /var/lib/docker/image/(.+) /var/lib/docker/image/(.+): directory not empty.*"
29 # settings.log_monitors -- User-specified custom monitor definitions
31 - /config/kernel-monitor.json
32 - /config/docker-monitor.json
33 - /config/readonly-monitor.json
34 # An example of activating a custom log monitor definition in
35 # Node Problem Detector
36 # - /custom-config/docker-monitor-filelog.json
37 custom_plugin_monitors: []
38 # Any extra arguments to append to node-problem-detector command
41 # settings.prometheus_address -- Prometheus exporter address
42 prometheus_address: 0.0.0.0
43 # settings.prometheus_port -- Prometheus exporter port
44 prometheus_port: 20257
45 # The period at which k8s-exporter does forcibly sync with apiserver
46 # settings.heartBeatPeriod -- Syncing interval with API server
49 # logDir.host -- log directory on k8s host
51 # logDir.pod -- log directory in pod (volume mount), use logDir.host if empty
54 repository: cgr.dev/scratch-images/test-tmp/node-problem-detector
56 # image.digest -- the image digest. If given it takes precedence over a given tag.
57 digest: sha256:a2aa90f6bf90b63dd1b7913943e028c88fa4133ae639e60783947bed896459db
58 pullPolicy: IfNotPresent
67# hostNetwork -- Run pod on host network
68# Flag to run Node Problem Detector on the host's network. This is typically
69# not recommended, but may be useful for certain use cases.
72# hostUsers -- Use host user namespace (true) or create pod user namespace (false)
73# Set to false to enable user namespaces for enhanced security isolation
74# Default is true (uses host user namespace).
75# See [Use a User Namespace With a Pod](https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/).
77dnsPolicy: "ClusterFirst"
88priorityClassName: system-node-critical
92# resizePolicy -- Container resize policy for in-place vertical scaling
93# See https://kubernetes.io/docs/tasks/configure-pod-container/resize-container-resources/
96# restartPolicy: NotRequired
97# - resourceName: memory
98# restartPolicy: RestartContainer
106 # Specifies whether a ServiceAccount should be created
108 # Annotations to add to the service account
110 # Labels to add to the service account
112 # The name of the ServiceAccount to use.
113 # If not set and create is true, a name is generated using the fullname template
118 # metrics.enabled -- Expose metrics in Prometheus format with default configuration.
120 # metrics.annotations -- Override all default annotations when `metrics.enabled=true` with specified values.
127 additionalRelabelings: []
128 metricRelabelings: []
142# fieldPath: metadata.name
147# updateStrategy -- Manage the daemonset update strategy
148updateStrategy: RollingUpdate
149# maxUnavailable -- The max pods unavailable during an update