Comments (9)
Hi,
- you did not provide the operation so we cannot check anything in the backend.
- 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.
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.
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.
These are values inside the instance_template rest reference
-
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" -
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.
It seems that the problem is inside GCE, rather than DM. We will keep you posted.
from deploymentmanager-samples.
sure thanks.
from deploymentmanager-samples.
hi @vagababov just wanted to check with you if you have any updates ..
from deploymentmanager-samples.
hi no updates, we've pinged the team again.
from deploymentmanager-samples.
We've talked with the team and they said "hostPort support is not yet implemented".
from deploymentmanager-samples.
Related Issues (20)
- Incorrect assignment to database_name
- property should be notFoundPage instead of notFoundpage
- bucket property on defaultObjectAcl keeps throwing me an error
- Ref in Instance Template errors with CYCLIC_REFERENCES
- Broken link to community/cloud-foundation on front page HOT 1
- Create service accounts return INVALID_ARGUMENT
- Project creation sample missing HOT 2
- Miss
- Multiple Instances - Lables HOT 1
- How to assign roles to service account using jinja & YAML file HOT 2
- how to initially we can invoke cloud function from deployment manager?
- Assigning roles to groups using deployment manager
- Unable to provide conditional access to a service account on a project using DM HOT 1
- Create workload identity federation resources with gcloud
- lustre doesn't deploy if existing VPC is specified.
- How to Roll Back (Undo) a Deployment in GCP with Google Cloud Deployment Manager?
- Provide Support for Inline Function Code for Cloud Function Creation via Deployment Manager
- Deployment manager UPDATE error
- Failure issue with google deployment manager CLI
- container_manifest.yaml missing link to reference
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deploymentmanager-samples.