Connection Error


#1

knife bootstrap chef-node.c.chef-gcp-198212.internal -x pdenny -P deloitte.1 --sudo -N chef-node
Creating new client for chef-node

Creating new node for chef-node

Connecting to chef-node.c.chef-gcp-198212.internal

ERROR: Network Error: getaddrinfo: No such host is known.
Check your knife configuration and network settings

Unable to connect to the GCP VM Instance, How do I fix this issue ?


#2

This looks like you’re attempting to use a private address (only reachable if already on a GCP instance on the correct subnet). Either set and use a public address or run knife bootstrap from GCP itself on a VM that has access to that subnet.