diff --git a/Chart.yaml b/Chart.yaml index 0de3ba3f..5a72dba3 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,7 +1,7 @@ --- apiVersion: v2 name: nifi -version: 0.4.3 +version: 0.4.4 appVersion: 1.11.4 description: Apache NiFi is a software project from the Apache Software Foundation designed to automate the flow of data between software systems. keywords: diff --git a/README.md b/README.md index bd01055b..d8a61cd8 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ The following table lists the configurable parameters of the nifi chart and the | **sts** | | `sts.podManagementPolicy` | Parallel podManagementPolicy | `Parallel` | | `sts.AntiAffinity` | Affinity for pod assignment | `soft` | +| `sts.pod.annotations` | Pod template annotations | `security.alpha.kubernetes.io/sysctls: net.ipv4.ip_local_port_range=10000 65000` | | **secrets** | `secrets` | Pass any secrets to the nifi pods. The secret can also be mounted to a specific path if required. | `nil` | | **configmaps** diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index 39cc1f00..4d264cda 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -18,8 +18,13 @@ spec: release: {{ .Release.Name }} template: metadata: +{{- if .Values.sts.pod.annotations }} + annotations: +{{ toYaml .Values.sts.pod.annotations | indent 8 }} +{{- else }} annotations: security.alpha.kubernetes.io/sysctls: net.ipv4.ip_local_port_range=10000 65000 +{{- end }} labels: app: {{ include "apache-nifi.name" . | quote }} chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" diff --git a/values.yaml b/values.yaml index 2a294559..b690c80a 100644 --- a/values.yaml +++ b/values.yaml @@ -25,6 +25,10 @@ sts: podManagementPolicy: Parallel AntiAffinity: soft hostPort: null + pod: + annotations: + security.alpha.kubernetes.io/sysctls: net.ipv4.ip_local_port_range=10000 65000 + #prometheus.io/scrape: "true" ## Useful if using any custom secrets ## Pass in some secrets to use (if required)