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

Ingress backend service name and ports for a path not being accepted #68

Open
brandtkeller opened this issue Nov 24, 2021 · 0 comments
Open

Comments

@brandtkeller
Copy link

brandtkeller commented Nov 24, 2021

Details

Ask your question: What is the preferred way to enable additional paths in the ingress declaration to be accepted?

I am orchestrating code-server and wanting to open an additional path on the ingress for some react development. So I created an additionalService for the react port.

service:
      additionalServices:
      - enabled: true
        nameSuffix: react
        type: ClusterIP
        # Specify the default port information
        port:
          port: 3000
          # name defaults to http
          name: http-react
          protocol: TCP
          # targetPort defaults to http
          targetPort: 3000
          # nodePort:
        additionalPorts: []
        annotations: {}
        labels: {}

Then I created a path in the ingress for this:

ingress:
      enabled: true
      annotations:
        kubernetes.io/ingress.class: nginx
      hosts:
        - host: code.dev.home.local
          paths:
          - path: /
            # Ignored if not kubeVersion >= 1.14-0
            pathType: Prefix
          - path: /react
            pathType: Prefix
            backend:
              service:
                port:
                  name: cicd-code-code-server-react
                  number: 3000
      tls:
      - secretName: code-tls
        hosts:
          - code.dev.home.local

No matter what I configure in the backend section, helm outputs:

- host: code.dev.home.local
    http:
      paths:
      - backend:
          service:
            name: cicd-code-code-server
            port:
              number: 8443
        path: /
        pathType: Prefix
      - backend:
          service:
            name: cicd-code-code-server
            port:
              number: 8443
        path: /react
        pathType: Prefix

Thoughts?

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

1 participant