[stable/metricbeat] Template dnsPolicy and hostNetwork (#14675)

Template dnsPolicy and hostNetwork, add to README and default in values

Signed-off-by: James Ritter <jamesritter15@gmail.com>
This commit is contained in:
James Ritter
2019-06-10 17:58:15 -07:00
committed by Kubernetes Prow Robot
parent 6b0cf66c88
commit d7e92de93b
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
description: A Helm chart to collect Kubernetes logs with metricbeat
icon: https://www.elastic.co/assets/blt47799dcdcf08438d/logo-elastic-beats-lt.svg
name: metricbeat
version: 1.6.3
version: 1.6.4
appVersion: 6.7.0
home: https://www.elastic.co/products/beats/metricbeat
sources:
+2
View File
@@ -60,6 +60,8 @@ The following table lists the configurable parameters of the metricbeat chart an
| `daemonset.tolerations` | Pod taint tolerations for daemonset | `[{"key": "node-role.kubernetes.io/master", "operator": "Exists", "effect": "NoSchedule"}]` |
| `daemonset.resources.requests.cpu` | CPU resource requests for daemonset | |
| `daemonset.resources.limits.cpu` | CPU resource limits for daemonset | |
| `daemonset.hostNetwork` | Leverage host network interfaces | `true` |
| `daemonset.dnsPolicy` | Pod DNS Policy | `ClusterFirstWithHostNet` |
| `deployment.enabled` | If true, enable deployment | |
| `deployment.args` | Custom arguments for the docker command | |
| `deployment.overrideConfig` | If overrideConfig is not empty, metricbeat chart's default config won't be used at all. | `{}` |
+2 -2
View File
@@ -120,8 +120,8 @@ spec:
priorityClassName: {{ .Values.daemonset.priorityClassName }}
{{- end }}
serviceAccountName: {{ template "metricbeat.serviceAccountName" . }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostNetwork: {{ .Values.daemonset.hostNetwork }}
dnsPolicy: {{ .Values.daemonset.dnsPolicy }}
{{- if .Values.daemonset.tolerations }}
tolerations:
{{ toYaml .Values.daemonset.tolerations | indent 6 }}
+2
View File
@@ -14,6 +14,8 @@ daemonset:
effect: NoSchedule
nodeSelector: {}
resources: {}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
config:
metricbeat.config:
modules: