From db10071d8b282e183dff2e6a5b7b8ebcf5199573 Mon Sep 17 00:00:00 2001 From: Jeev B Date: Sun, 27 Jan 2019 14:51:13 -0800 Subject: [PATCH] [stable/node-problem-detector] Add hostNetwork option (#10909) * Add hostNetwork option. Signed-off-by: Jeev B * Bump version Signed-off-by: David J. M. Karlsen --- stable/node-problem-detector/Chart.yaml | 2 +- stable/node-problem-detector/README.md | 3 ++- stable/node-problem-detector/templates/daemonset.yaml | 1 + stable/node-problem-detector/values.yaml | 4 ++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/stable/node-problem-detector/Chart.yaml b/stable/node-problem-detector/Chart.yaml index 71f02362d9..37d5de151e 100644 --- a/stable/node-problem-detector/Chart.yaml +++ b/stable/node-problem-detector/Chart.yaml @@ -1,5 +1,5 @@ name: node-problem-detector -version: "1.1.4" +version: "1.2.0" appVersion: v0.6.1 home: https://github.com/kubernetes/node-problem-detector description: Installs the node-problem-detector daemonset for monitoring extra attributes on nodes diff --git a/stable/node-problem-detector/README.md b/stable/node-problem-detector/README.md index 28de9f1c02..f5cf61bbf3 100644 --- a/stable/node-problem-detector/README.md +++ b/stable/node-problem-detector/README.md @@ -35,7 +35,7 @@ Custom System log monitor config files can be created, see [here](https://github The following table lists the configurable parameters for this chart and their default values. | Parameter | Description | Default | -| ----------------------------------|--------------------------------------------|--------------------------------------------------------------| +|-----------------------------------|--------------------------------------------|--------------------------------------------------------------| | `affinity` | Map of node/pod affinities | `{}` | | `annotations` | Optional daemonset annotations | `{}` | | `fullnameOverride` | Override the fullname of the chart | `nil` | @@ -44,6 +44,7 @@ The following table lists the configurable parameters for this chart and their d | `image.tag` | Image tag | `v0.6.1` | | `nameOverride` | Override the name of the chart | `nil` | | `rbac.create` | RBAC | `true` | +| `hostNetwork` | Run pod on host network | `false` | | `resources` | Pod resource requests and limits | `{}` | | `settings.log_monitors` | System log monitor config files | `/config/kernel-monitor.json`, `/config/docker-monitor.json` | | `settings.custom_plugin_monitors` | Custom plugin monitor config files | `[]` | diff --git a/stable/node-problem-detector/templates/daemonset.yaml b/stable/node-problem-detector/templates/daemonset.yaml index 7199c769ab..1e3baa0b33 100644 --- a/stable/node-problem-detector/templates/daemonset.yaml +++ b/stable/node-problem-detector/templates/daemonset.yaml @@ -25,6 +25,7 @@ spec: {{- end }} spec: serviceAccountName: {{ template "node-problem-detector.serviceAccountName" . }} + hostNetwork: {{ .Values.hostNetwork }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/stable/node-problem-detector/values.yaml b/stable/node-problem-detector/values.yaml index dc20cce2a1..bd08171eb5 100644 --- a/stable/node-problem-detector/values.yaml +++ b/stable/node-problem-detector/values.yaml @@ -18,6 +18,10 @@ fullnameOverride: "" rbac: create: true +# Flag to run Node Problem Detector on the host's network. This is typically +# not recommended, but may be useful for certain use cases. +hostNetwork: false + resources: {} annotations: {}