title: Cannot make GET request to service from angular pod on kubernetes cluster
body: <p>I have an Angular app running on Nginx deployed along with Spring Boot rest service. 
  When I launch docker containers locally everything works fine so my only guess is that something wrong with Kubernetes configuration.</p>
  
  <p>I receive this error in Chrome console with IP address provided <code>Failed to load resource: net::ERR_CONNECTION_TIMED_OUT</code>
  However, with DNS name I get: <code>Failed to load resource: net::ERR_NAME_NOT_RESOLVED</code></p>
  
  <p>Strangely, I am able to curl my service from <code>radial/busyboxplus:curl</code> pod but I cannot ping my service from my front pod (don't have a curl in build).</p>
  
  <p>I am accessing front through ingress:</p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    name: main-ingress
    annotations:
      kubernetes.io/ingress.class: nginx
  spec:
    rules:
      - http:
          paths:
            - path: /
              backend:
                serviceName: front
                servicePort: 80
  </code></pre>
  
  <p>My frontend:</p>
  
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: product-adviser-front-deployment
    labels:
      app: angular-front
      version: v1
  spec:
    replicas: 1
    selector:
      matchLabels:
        name: product-adviser-front-deployment
    template:
      metadata:
        labels:
          name: product-adviser-front-deployment
      spec:
        containers:
          - name: product-adviser-front-app
            image: aurrix/seb:product-adviser-front
            imagePullPolicy: Always
            ports:
              - containerPort: 80
            env:
              - name: API_URL
                value: http://back.default.svc.cluster.local/
            readinessProbe:
              initialDelaySeconds: 30
              httpGet:
                path: /healthz
                port: 80
            livenessProbe:
              initialDelaySeconds: 30
              httpGet:
                path: /healthz
                port: 80
        restartPolicy: Always
  ---
  apiVersion: v1
  kind: Service
  metadata:
    name: front
  spec:
    selector:
      name: product-adviser-front-deployment
    ports:
      - port: 80
    type: NodePort
  </code></pre>
  
  <p>My backend:</p>
  
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: product-adviser-back-deployment
    labels:
      app: backend-service
      version: v1
  spec:
    replicas: 1
    selector:
      matchLabels:
        name: product-adviser-back-deployment
    template:
      metadata:
        labels:
          name: product-adviser-back-deployment
      spec:
        containers:
          - name: product-adviser-back-deployment
            image: aurrix/seb:product-adviser
            imagePullPolicy: Always
            ports:
              - containerPort: 8080
            readinessProbe:
              initialDelaySeconds: 30
              httpGet:
                path: /actuator/health
                port: 8080
            livenessProbe:
              initialDelaySeconds: 30
              httpGet:
                path: /actuator/health
                port: 8080
        restartPolicy: Always
  ---
  apiVersion: v1
  kind: Service
  metadata:
    name: back
  spec:
    selector:
      name: product-adviser-back-deployment
    ports:
      - port: 80
        targetPort: 8080
  </code></pre>