Skip to content

We should not be using hostPort, make it optional via a label. #1878

@cdrage

Description

@cdrage

What would you like to be added?

Apologizes for the delay, but IMHO we should not be using hostPort at all.

This is unconventional for Deployment (see https://kubernetes.io/docs/concepts/configuration/overview/) and it it not a good practice for Kubernetes.

In order to access your deployed files, you should be accessing it via Service or Ingress / Route rather than going to the node IP and going directly to the hostPort.

This also presents security issues too.

Why is this needed?

Security issues. Not standard practice.

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions