New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hostPort in deployment spec: is this supported? #1054

Open
prachidamle opened this Issue Jul 18, 2018 · 1 comment

Comments

Projects
None yet
4 participants
@prachidamle

prachidamle commented Jul 18, 2018

If I have a port mapping specified in docker-compose.yml file, using the recent Kompose tool release , the generated deployment.yaml does not have the hostPort specified.

Thus if my docker-compose.yml file says:

version: "2"
services:  
  result:
        image: tmadams333/example-voting-app-result:latest
        ports:
          - "5001:80"

Then how can I specify that the public port "5001" be exposed as a hostPort in my k8s cluster?

If I deploy the generated *service.yaml and *deployment.yaml then my deployment does not get exposed on port 5001 as-is.

@fejta-bot

This comment has been minimized.

fejta-bot commented Oct 17, 2018

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

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