{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/deploymentmanager-samples/issues/149","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/deploymentmanager-samples","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/deploymentmanager-samples/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/deploymentmanager-samples/issues/149/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/deploymentmanager-samples/issues/149/events","html_url":"https://github.com/GoogleCloudPlatform/deploymentmanager-samples/issues/149","id":313463757,"number":149,"title":"HostPort and container ports for Google Container VM  Docker image do not work","user":{"login":"VarunkumarManohar","id":4632477,"avatar_url":"https://avatars1.githubusercontent.com/u/4632477?v=4","gravatar_id":"","url":"https://api.github.com/users/VarunkumarManohar","html_url":"https://github.com/VarunkumarManohar","followers_url":"https://api.github.com/users/VarunkumarManohar/followers","following_url":"https://api.github.com/users/VarunkumarManohar/following{/other_user}","gists_url":"https://api.github.com/users/VarunkumarManohar/gists{/gist_id}","starred_url":"https://api.github.com/users/VarunkumarManohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VarunkumarManohar/subscriptions","organizations_url":"https://api.github.com/users/VarunkumarManohar/orgs","repos_url":"https://api.github.com/users/VarunkumarManohar/repos","events_url":"https://api.github.com/users/VarunkumarManohar/events{/privacy}","received_events_url":"https://api.github.com/users/VarunkumarManohar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-11T19:51:31Z","updated_at":"2018-04-11T23:10:39Z","closed_at":null,"author_association":"NONE","body":"I was able to start a container vm `cos-stable-65-10323-69-0.` using Google Deployment Manager.\r\n\r\nWhen I specify the docker image to be started in the `gce-container-declaration` metadata key for resource type `compute.v1.instanceTemplate`, the docker container starts correctly when the  compute engine vm instance boots but the host and container ports passed as parameters are not being used\r\nin running the docker image.\r\n\r\n```\r\nmanifest = {\r\n        'apiVersion': 'v1',\r\n        'kind': 'Pod',\r\n        'metadata': {\r\n            'name': context.env['name']\r\n        },\r\n        'spec': {\r\n            'containers': [{\r\n                'name': context.env['name'],\r\n                'image': context.properties['dockerImage'],\r\n                'ports': [{\r\n                    'hostPort': context.properties['hostPort'],\r\n                    'containerPort': context.properties['containerPort']\r\n                }],\r\n            }]\r\n        }\r\n    }\r\n```\r\n\r\nHostPort and containerports are not being used while running the docker image as a result the docker container ends up running on 8080 port and not the hostport passed as a parameter\r\n\r\nIs this a known issue or is some setting being missed out ?\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/deploymentmanager-samples/issues/comments/380623842","html_url":"https://github.com/GoogleCloudPlatform/deploymentmanager-samples/issues/149#issuecomment-380623842","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/deploymentmanager-samples/issues/149","id":380623842,"user":{"login":"vagababov","id":764767,"avatar_url":"https://avatars1.githubusercontent.com/u/764767?v=4","gravatar_id":"","url":"https://api.github.com/users/vagababov","html_url":"https://github.com/vagababov","followers_url":"https://api.github.com/users/vagababov/followers","following_url":"https://api.github.com/users/vagababov/following{/other_user}","gists_url":"https://api.github.com/users/vagababov/gists{/gist_id}","starred_url":"https://api.github.com/users/vagababov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vagababov/subscriptions","organizations_url":"https://api.github.com/users/vagababov/orgs","repos_url":"https://api.github.com/users/vagababov/repos","events_url":"https://api.github.com/users/vagababov/events{/privacy}","received_events_url":"https://api.github.com/users/vagababov/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T23:10:39Z","updated_at":"2018-04-11T23:10:39Z","author_association":"NONE","body":"It seems that the problem is inside GCE, rather than DM. We will keep you posted."}}
{"actor":{"display_login":"vagababov"}}