Skip to content

SysctlForbidden on Deployment when controller.hostNetwork = true #3714

@davefinster

Description

@davefinster

Describe the bug
With the advent of #3573 it appears that any deployment using hostNetwork=true on a deployment (not sure about daemonset) will now encounter an error with

forbidden sysctl: "net.ipv4.ip_unprivileged_port_start" not allowed with host net enabled

To Reproduce
Steps to reproduce the behavior:

  1. Deploy using the HELM charts with controller.hostNetwork set to true

Expected behavior
nginx pods start up successfully

Your environment

  • Version of the Ingress Controller - 3.1.0
  • Version of Kubernetes: 1.24
  • Kubernetes platform (e.g. Mini-kube or GCP): Microk8s
  • Using NGINX or NGINX Plus: nginx

Kube Version Info:

Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.2", GitCommit:"fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b", GitTreeState:"clean", BuildDate:"2023-02-22T13:39:03Z", GoVersion:"go1.19.6", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"24+", GitVersion:"v1.24.12-2+36e803be0d732b", GitCommit:"36e803be0d732b9da15f6568ed23e5c1929f8701", GitTreeState:"clean", BuildDate:"2023-03-17T18:58:08Z", GoVersion:"go1.19.7", Compiler:"gc", Platform:"linux/amd64"}

Pinning the HELM chart version to 0.16.2 resolves the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions