0

I have the following code in my values.yaml file:

ingress:
  kind: Ingress
  hostname: auth.localhost
  enabled: true
  metadata: fusionauth-ingress
  hosts:
    - host: auth.local
  spec:
    rules:
      http:
        paths: "/"
      path:
        pathType: Prefix
        backend:
          service:
            name: web
            port:
              number: 8080
            serviceName: fusionauth
            servicePort: 9011

When I run: helm upgrade --install fusionauth-init --values fusionauth/values.yaml fusionauth

I get the following error: Error: UPGRADE FAILED: error validating "": error validating data: ValidationError(Ingress.spec.rules[0].http): missing required field "paths" in io.k8s.api.networking.v1.HTTPIngressRuleValue

I am new to Helm but I cannot seem to find where the error in my logic is.

Thanks in advance for the help.

Andrew Skorkin
  • 1,147
  • 3
  • 11
cp-stack
  • 785
  • 3
  • 17
  • 40
  • Your posted code seems incomplete, or indented funny, or not a kubernetes `Ingress` resource, or maybe some combination of those, but you'll find [the reference guide](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#ingressrule-v1-networking-k8s-io) invaluable for knowing how the official one is supposed to be shaped. Good luck – mdaniel Oct 25 '21 at 03:37
  • The indentation is off here. However, a helm lint works fine so I know the YAML is valid in my source code. – cp-stack Oct 25 '21 at 04:29

1 Answers1

3

Base on the chart source, your values are all invalid. You cannot copy K8s ingress spec directly for FusionAuth, you need to follow the structure of the chart values.yaml, the chart value meanings are here. If you were following the instruction here previously to create an K8s Ingress resource, you do not need to deploy Ingress again using helm.

gohm'c
  • 13,492
  • 1
  • 9
  • 16
  • Thanks. It was a misunderstanding on my part. I changed it as requested and everything is working. Thanks so much for pointing this out. The documentation for using helm dependencies is unfortunately not very clear.. – cp-stack Oct 27 '21 at 17:34