added ability to configure kernel setting fs.inotify.max_user_instances through init container to resolve issue with too many open files (#1620)

Signed-off-by: Roger Steneteg <rsteneteg@ea.com>
pull/1628/head
Roger Steneteg 6 years ago committed by GitHub
parent a53477f8e4
commit 87c2afceff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      production/helm/loki-stack/Chart.yaml
  2. 2
      production/helm/promtail/Chart.yaml
  3. 11
      production/helm/promtail/templates/daemonset.yaml
  4. 4
      production/helm/promtail/values.yaml

@ -1,6 +1,6 @@
apiVersion: "v1"
name: loki-stack
version: 0.29.0
version: 0.30.0
appVersion: v1.3.0
kubeVersion: "^1.10.0-0"
description: "Loki: like Prometheus, but for logs."

@ -1,6 +1,6 @@
apiVersion: "v1"
name: promtail
version: 0.17.0
version: 0.18.0
appVersion: v1.3.0
kubeVersion: "^1.10.0-0"
description: "Responsible for gathering logs and sending them to Loki"

@ -37,6 +37,17 @@ spec:
serviceAccountName: {{ template "promtail.serviceAccountName" . }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
{{- if .Values.initContainer.enabled }}
initContainers:
- name: init
image: busybox
command:
- sh
- -c
- sysctl -w fs.inotify.max_user_instances={{ .Values.initContainer.fsInotifyMaxUserInstances }}
securityContext:
privileged: true
{{- end }}
containers:
- name: promtail

@ -6,6 +6,10 @@ annotations: {}
deploymentStrategy: RollingUpdate
initContainer:
enabled: false
fsInotifyMaxUserInstances: 128
image:
repository: grafana/promtail
tag: v1.3.0

Loading…
Cancel
Save