title: unable to connect with pod running in GKE
body: <ol>
  <li><p>Created 3 node GKE cluster.</p>
  </li>
  <li><p>From cmd prompt local logged into gcloud.</p>
  </li>
  <li><p>Created a pod with nginx container and exposed port 80</p>
  </li>
  </ol>
  <blockquote>
  <pre><code>apiVersion: v1
  kind: Pod
  metadata:
    name: basicpod
    labels:
      type: webserver
  spec:
    containers:
    - name: webcont
      image: nginx
      ports:
      - containerPort: 80
  </code></pre>
  </blockquote>
  <ol start="4">
  <li>Now trying to do curl command <code>curl http://&lt;pod-ip&gt;</code> but getting timeout. <strong>my question is why iam getting timeout ?</strong> the same curl command work if execute inside pod. like <code>kubectl exec -it basicpod -- /bin/sh and then inside pod execute curl http://&lt;pod-ip&gt;</code><br>
  <strong>GKE cluster details: <br>
  Networking</strong> <br>
  Private cluster Disabled<br />
  Network default<br />
  Subnet  default<br />
  VPC-native traffic routing  Disabled<br />
  Cluster pod address range (default) X.X.X.X/X<br />
  Service address range   X.X.X.X/X<br />
  Intranode visibility    Disabled<br />
  NodeLocal DNSCache  Disabled<br />
  HTTP Load Balancing Enabled<br />
  Subsetting for L4 Internal Load Balancers   Disabled<br />
  Control plane authorized networks<br />
  Disabled
  Network policy  Disabled<br />
  Dataplane V2    Disabled<br />
  <strong>Security</strong> <br>
  Binary authorization    Disabled<br />
  Shielded GKE nodes  Enabled
  Confidential GKE Nodes Beta Disabled<br />
  Application-layer secrets encryption    Disabled<br />
  Workload Identity   Disabled<br />
  Google Groups for RBAC  Disabled<br />
  Legacy authorization    Disabled<br />
  Basic authentication<br />
  Disabled<br />
  Client certificate  Disabled</li>
  </ol>