Use the following script to deploy an echo server pod to troubleshoot connectivity (adjust the manifests and Kubernetes objects as necessary):


INGRESS_HOST=my-host.example.com

kubectl apply -f - <<EOF
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
  name: net-test
spec:
  rules:
    - host: $INGRESS_HOST
      http:
        paths:
          - pathType: ImplementationSpecific
            backend:
              serviceName: net-test
              servicePort: 8080
---
apiVersion: v1
kind: Service
metadata:
  name: net-test
spec:
  selector:
    app: net-test
  ports:
  - port: 8080
    protocol: TCP
    targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: net-test
spec:
  replicas: 1
  selector:
    matchLabels:
      app: net-test
  template:
    metadata:
      labels:
        app: net-test
    spec:
      securityContext:
        runAsUser: 1001
      terminationGracePeriodSeconds: 3
      containers:
        - name: echo-server
          image: inanimate/echo-server:latest
          ports:
            - name: nc
              containerPort: 8080
          stdin: true
          tty: true
EOF