kubelabs icon indicating copy to clipboard operation
kubelabs copied to clipboard

unable to access pod from external world

Open nayabatir1 opened this issue 2 years ago • 0 comments

apiVersion: v1
kind: Pod
metadata:
  name: nginx-pod
  labels:
    name: nginx-pod
spec:
  containers:
    - name: nginx
      image: nginx
      ports:
        - containerPort: 80

I used this yml config to create a pod. I tried to access pod through network namespace, but unable to do so resulted in connection timeout. but when curl inside the container index.html loads correctly.

image image

nayabatir1 avatar Apr 03 '22 17:04 nayabatir1