Coder Social home page Coder Social logo

Comments (9)

vagababov avatar vagababov commented on August 23, 2024

Hi,

  1. you did not provide the operation so we cannot check anything in the backend.
  2. Make sure that hostPort and containerPort are equal, since you set ( 'hostNetwork': 'true', ) and documentation specifies that " If HostNetwork is specified, this must match ContainerPort. "

from deploymentmanager-samples.

varungbt avatar varungbt commented on August 23, 2024

Hi,

Thanks for your reply.

I have created a gist for your reference.

Both host and container ports values are the same but still the docker container ends up running on 8080 and not the specified host ports for the deploy.py

from deploymentmanager-samples.

vagababov avatar vagababov commented on August 23, 2024

Thanks.
Could please check in cloud console the configuration for the instance_template and see if it has port 8080 or port 8083? We see that we sent 8083 in the request.

from deploymentmanager-samples.

varungbt avatar varungbt commented on August 23, 2024

These are values inside the instance_template rest reference

  1. with hostnetwork set to true
    "value": "apiVersion: v1\nkind: Pod\nmetadata:\n name: vmanohar-websocket-vm\nspec:\n containers:\n - image: gcr.io/google-containers/nginx\n name: vmanohar-websocket-vm\n ports:\n - containerPort: 8083\n hostPort: 8083\n hostNetwork: 'true'\n"

  2. without hostnetwork tag
    "value": "apiVersion: v1\nkind: Pod\nmetadata:\n name: vmanohar-websocket-vm\nspec:\n containers:\n - image: gcr.io/google-containers/nginx\n name: vmanohar-websocket-vm\n ports:\n - containerPort: 8083\n hostPort: 8083\n"

In both the cases the docker container still ends up running in a default port and not 8083

from deploymentmanager-samples.

vagababov avatar vagababov commented on August 23, 2024

It seems that the problem is inside GCE, rather than DM. We will keep you posted.

from deploymentmanager-samples.

varungbt avatar varungbt commented on August 23, 2024

sure thanks.

from deploymentmanager-samples.

varungbt avatar varungbt commented on August 23, 2024

hi @vagababov just wanted to check with you if you have any updates ..

from deploymentmanager-samples.

vagababov avatar vagababov commented on August 23, 2024

hi no updates, we've pinged the team again.

from deploymentmanager-samples.

adamharwayne avatar adamharwayne commented on August 23, 2024

We've talked with the team and they said "hostPort support is not yet implemented".

from deploymentmanager-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.