Game of pods iron gallery ingress problem

I will look into it later and what’s the scenario of it.

1 Like

I had a hard time understanding this discussion, so for anyone else that lands here:

  • the formatting of the instructions for this lab are not great, be careful around the ingress-space

  • to complete the lab it seems the following will cause it to pass / be marked successful:

#Service
- apiVersion: v1
  kind: Service
  metadata:
    labels:
      app: iron-gallery-service
    name: iron-gallery-service
    namespace: default
  spec:
    ports:
    - name: 80-80
      nodePort: 30099
      port: 80
      protocol: TCP
      targetPort: 80
    selector:
      run: iron-gallery
    sessionAffinity: None
    type: NodePort

#Ingress
apiVersion: v1
items:
- apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    name: iron-gallery-ingress
    namespace: default
  spec:
    rules:
    - host: iron-gallery-braavos.com
      http:
        paths:
        - backend:
            serviceName: iron-gallery-service
            servicePort: 30099
          path: /
        - backend:
            serviceName: ingress-space
            servicePort: 80
          path: /
1 Like

My answer did not include the following line, and it still passed me:

  • backend:
    serviceName: iron-gallery-service
    servicePort: 30099
    path: /

I just had to go back, and open up a nodePort in my service, which isn’t in the instruction. It is fine however, because then I could figure it out myself.

Yep - @enkk 's solution works.

These instructions could be made clearer…