Skip to content
New issue

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

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

Already on GitHub? # to your account

Templating issues with ingress #278

Closed
jezravina91 opened this issue Apr 27, 2020 · 4 comments
Closed

Templating issues with ingress #278

jezravina91 opened this issue Apr 27, 2020 · 4 comments
Labels
bug Something isn't working docs Improvements or additions to documentation

Comments

@jezravina91
Copy link

jezravina91 commented Apr 27, 2020

Steps to replicate:

Defined ingress configuration based on documentation.

Tested with the following configuration:

` ingress:
enabled: true
labels: {}
# traffic: external
annotations: |-
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"

hosts:
  - host: vault.dev.coinspectapp.com
    paths:
      - backend:
        serviceName: dev-vault
        servicePort: 8200`

Also the following:
`paths:

  • backend:
    serviceName:
    servicePort: `

paths: []

Working:
paths: - ""

Expected:

  • Should work as per documentation

Actual:

  • errors were encountered.

Error:
Ingress.extensions "dev-vault" is invalid: spec.rules[0].http.paths[0].path: Invalid value: "map[backend: serviceName:dev-vault servicePort:8200]": must be an absolute path

Manifest:
image

Vault is installed using helm with the following tar file:

I am not an expert, this could just be all my fault.
I just tried to follow the documentation.

Thanks!

@nohaj
Copy link

nohaj commented Apr 28, 2020

My configuration :

  ingress:
    enabled: true
    hosts:
      - host: vault.mydomain.com
    tls:
       - hosts:
         - vault.mydomain.com
         secretName: vault

Was not working with the 0.5.0 version of the chart but it works with the master branch of the ingress template.

Thanks to jaredallard (7568cb1)

@tvoran tvoran added bug Something isn't working chart Area: helm chart labels Apr 28, 2020
@tvoran
Copy link
Member

tvoran commented Apr 29, 2020

Hi @Nitro2003, indeed it looks like the documentation for the ingress values is a little out of date, sorry about that. The paths list in Values.server.ingress.hosts[] should just be a list of path strings, since the chart template already defines the backend stanza:

paths:
{{- range .paths }}
- path: {{ . }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
{{- end }}

So I think in your case, you'd want something like this set in the values:

    hosts:
      - host: vault.dev.coinspectapp.com
        paths:
          - /

(In the upcoming release the paths list defaults to ['/'], so that's why the master branch behaves a little differently. We'll get the docs fixed too.)

@tvoran tvoran added docs Improvements or additions to documentation and removed chart Area: helm chart labels Apr 29, 2020
@tvoran
Copy link
Member

tvoran commented Apr 29, 2020

The documentation has been updated, so I'm going to close this for now. Let us know if you run into other issues.

@tvoran tvoran closed this as completed Apr 29, 2020
@jezravina91
Copy link
Author

Thanks for the quick update!

benashz added a commit that referenced this issue Jun 7, 2024
Drop 1.25
Bump kind version to v0.23.0
benashz added a commit that referenced this issue Jun 7, 2024
Drop 1.25
Bump kind version to v0.23.0
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants