Resources are offline to internal or external traffic

Problem

Your Virtual Private Cloud resources lose connectivity to establish internal or external traffic with other resources.

Environment

  • One Virtual Private Cloud
  • Regular VM instances, Google Kubernetes Engine Nodes, App Engine Flex, etc.
    • They can have external IPs
    • Leverage Cloud NAT
    • Use Cloud Virtual Private Network and/or Interconnects to reach on-prem services

Solution

There can be multiple causes for this issue. One of the best first steps that you can take is the following:

  1. Leverage the Connectivity Test.
    1. To properly use it, you should test from the perspective of the resource having connectivity issues towards a troublesome destination and the inverse scenario.
  2. This test will reveal (among other things) if you are:
    1. Having issues with a Firewall Rule.
    2. Using a route that is not expected.
  3. For common use cases please see Common test scenarios.