cetic / helm-nifi

Helm Chart for Apache Nifi
Apache License 2.0
215 stars 228 forks source link

[cetic/nifi] sysctl annotation no longer works #305

Open emrge-michaeld opened 1 year ago

emrge-michaeld commented 1 year ago

Describe the bug The statefulset template uses outdated sysctl annotation. security.alpha.kubernetes.io/sysctls: net.ipv4.ip_local_port_range=10000 65000 This is non-functional in kubernetes v1.11+; use the "sysctls" field instead. See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#setting-sysctls-for-a-pod

Version of Helm, Kubernetes and the Nifi chart: Chart 1.1.4

What happened: kubectl highlighted the issue:

$kubectl scale statefulset -n prd nifi --replicas=0
Warning: spec.template.metadata.annotations[security.alpha.kubernetes.io/sysctls]: non-functional in v1.11+; use the "sysctls" field instead

What you expected to happen: No warnings when using kubectl

How to reproduce it (as minimally and precisely as possible): kubectl scale statefulset -n prd nifi --replicas=0