Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
take statefulset pod annotations from Helm values (#66)
Browse files Browse the repository at this point in the history
* add statetfulset pod annotation

Signed-off-by: Alexey Novakov <novakov.alex@gmail.com>

* bump charts version

Signed-off-by: Alexey Novakov <novakov.alex@gmail.com>

* update readme

Signed-off-by: Alexey Novakov <novakov.alex@gmail.com>
  • Loading branch information
novakov-alexey authored Jul 27, 2020
1 parent e3e3154 commit 751f020
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
5 changes: 5 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "+" "_" }}"
Expand Down
4 changes: 4 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 751f020

Please sign in to comment.