Spin-gate error when setup ingress on GKE


#1

Hi,

We are deploying Spinnaker on GKE, and when we use kubernetes ingress to expose the Spinnaker UI and API, it returns backend health check error for spin-gate.

I check the log, it seems that health check to the root “/” of spin-gate returns http 302, but GKE load balancer expect http 200.

Please help to resolve this issue.

Thanks.

Heart

spinnaker-ingress.yaml
---
apiVersion: v1
kind: Service
metadata:
  name: spin-deck-nodeport
  namespace: spinnaker
spec:
  type: NodePort
  selector:
    cluster: spin-deck
  ports:
  - name: spin-deck
    protocol: TCP
    port: 9000
    targetPort: 9000
---
apiVersion: v1
kind: Service
metadata:
  name: spin-gate-nodeport
  namespace: spinnaker
spec:
  type: NodePort
  selector:
    cluster: spin-gate
  ports:
  - name: spin-gate
    protocol: TCP
    port: 8084
    targetPort: 8084
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: spinnaker-ingress
  namespace: spinnaker
spec:
  rules:
  - host: spinnaker.$PUBLIC_DOMAIN
    http:
      paths:
      - backend:
          serviceName: spin-deck-nodeport
          servicePort: 9000
  - host: spinnaker-api.$PUBLIC_DOMAIN
    http:
      paths:
      - backend:
          serviceName: spin-gate-nodeport
          servicePort: 8084
---