kubelabs
kubelabs copied to clipboard
unable to access pod from external world
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.