Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

502 Server Error #164

Closed
gmflau opened this issue Mar 22, 2018 · 1 comment
Closed

502 Server Error #164

gmflau opened this issue Mar 22, 2018 · 1 comment
Assignees

Comments

@gmflau
Copy link

gmflau commented Mar 22, 2018

I managed to use External Load Balancer to allow traffic to go from public Internet to my application over HTTP (port 8888) [http://<External-IP-from-LB>:8888]. However, I failed to access the same application through NodePort and Ingress Controller [http://<External-IP-from-Ingress>/opsc]. It returned a page saying:

Error: Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds.

Here are the yamls to set up my environment:

apiVersion: v1
kind: Service
metadata:
  name: opscenter-nodeport
  labels:
    app: opscenter
spec:
  type: NodePort
  ports:
    - port: 8888
      name: opsc-gui-port
  selector:
    app: opscenter
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: test-ingress
spec:
  rules:
  - http:
      paths:
      - path: /opsc
        backend:
          serviceName: opscenter-nodeport
          servicePort: 8888

Any idea to share what could go wrong? Any idea to troubleshoot the problem?

@nicksardo
Copy link
Contributor

Look at GCP Console to see logs, healthcheck status, and the healthcheck settings used.
Dupe to #34
/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants