Skip to content

Missing permission in the managed podSecurityPolicy to authorize the pod to bind port 9092 in hostNetwork mode #365

@mvisonneau

Description

@mvisonneau

When attempting to use enablePrometheusServer: true in conjunction with rbac.pspEnabled: true and useHostNetwork: true. It looks like there is some missing parameter in the PodSecurityPolicy to authorize the pod to bind TCP/9092.

Warning  FailedCreate      69s (x9 over 3m54s)    daemonset-controller  Error creating: pods "aws-node-termination-handler-" is forbidden: unable to validate against any pod security policy: [spec.securityContext.hostNetwork: Invalid value: true: Host network is not allowed to be used spec.volumes[0]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.containers[0].hostPort: Invalid value: 9092: Host port 9092 is not allowed to be used. Allowed ports: [] spec.containers[0].hostPort: Invalid value: 9092: Host port 9092 is not allowed to be used. Allowed ports: []]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions