Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Replace hardcoded container port with value. #18

Open
JarleB wants to merge 1 commit intobwolf:masterfrom
safespring-community:master
Open

Replace hardcoded container port with value. #18
JarleB wants to merge 1 commit intobwolf:masterfrom
safespring-community:master

Conversation

@JarleB
Copy link

@JarleB JarleB commented Dec 22, 2021

The container does not start on openshift (OKD 4.9) because pod security policy / security context constraint disallows container to open port numbers < 1024 .

Other security oriented kubernetes "distros" may be similar. The change does not affect the function of the deployment but just maps target port of the service to the value of container-port and open that port in the container spec. Also the webhook service is configured to listen to that same port by adding argument --secure-port and set it to the value of containerport which now defaults to 8443.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant