Kubernetes, DevOps, Cloud Computing, Software Development, Programming.
spec: containers: - name: busybox image: busybox command: ['sh', '-c', 'sleep 3600'] Save this as access-denied.yaml and apply it: kubectl apply -f access-denied.yaml Test connectivity from both pods: kubectl exec -it access-allowed -- wget --spider --timeout=1 nginx-service kubectl exec -it