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

Backstage component is not deployed as service and no ingress route is available #22

Closed
cmoulliard opened this issue Oct 13, 2023 · 2 comments · Fixed by #46
Closed
Labels
bug Something isn't working

Comments

@cmoulliard
Copy link
Contributor

Issue

The backstage component is not deployed as a service and no ingress route is published too

k get ingress -A
NAMESPACE          NAME                    CLASS   HOSTS                               ADDRESS     PORTS   AGE
argocd             argocd-server-ingress   nginx   argocd.idpbuilder.cnoe.io.local     localhost   80      10m
idpbuilder-local   gitserver-embedded      nginx   embedded.idpbuilder.cnoe.io.local   localhost   80      10m
@cmoulliard
Copy link
Contributor Author

I included the following service and ingress yaml to the existing backstage yaml

apiVersion: v1
kind: Service
metadata:
  name: backstage
  namespace: backstage
spec:
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: 7007
  - name: https
    port: 443
    protocol: TCP
    targetPort: 7007
  selector:
    app: backstage
  sessionAffinity: None
  type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: backstage
  namespace: backstage
  annotations:
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
    nginx.ingress.kubernetes.io/ssl-passthrough: "true"
spec:
  ingressClassName: nginx
  rules:
    - host: backstage.idpbuilder.cnoe.io.local
      http:
        paths:
          - backend:
              service:
                name: backstage
                port:
                  name: https
            path: /
            pathType: Prefix

but cannot access the URL:

curl -k http://backstage.idpbuilder.cnoe.io.local:8880/
<html>
<head><title>308 Permanent Redirect</title></head>
<body>
<center><h1>308 Permanent Redirect</h1></center>
<hr><center>nginx</center>
</body>
</html>

or

curl -k https://backstage.idpbuilder.cnoe.io.local:8443/
curl: (35) LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version

@cmoulliard
Copy link
Contributor Author

I fixed this issue here: cnoe-io/backstage-app#13

@cmoulliard cmoulliard reopened this Oct 16, 2023
@jessesanford jessesanford added the bug Something isn't working label Oct 16, 2023
@jessesanford jessesanford mentioned this issue Oct 18, 2023
jessesanford added a commit that referenced this issue Oct 19, 2023
* Adding the definition about the Service and Ingress kubernetes resource to expose backstage using the host: backstage.idpbuilder.cnoe.io.local

Signed-off-by: cmoulliard <[email protected]>

* Changing localhost host name to https://backstage.idpbuilder.cnoe.io.local:8443 to avoid the error: backstage/backstage#15403

Signed-off-by: cmoulliard <[email protected]>

* Switching the DNS name from cnoe.io.local to cnoe.io.localtest.me

Signed-off-by: cmoulliard <[email protected]>

---------

Signed-off-by: cmoulliard <[email protected]>
Co-authored-by: cmoulliard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants