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

Error on helm install caused by virtual service #56

Open
q1x opened this issue Feb 16, 2024 · 3 comments
Open

Error on helm install caused by virtual service #56

q1x opened this issue Feb 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@q1x
Copy link

q1x commented Feb 16, 2024

When performing a helm install I'm getting the following error:

$ helm install -f netbox-values.yaml netbox startechnica/netbox
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: error validating "": error validating data: apiVersion isn't string type

This seems to come from netbox/templates/istio/VirtualService.yaml (apiVersion: false):

$ helm template -f netbox-values.yaml startechnica/netbox
.
---
# Source: netbox/templates/istio/VirtualService.yaml
apiVersion: false
kind: VirtualService
metadata:
  name: release-name-netbox
  namespace: "default"
  labels:
    app.kubernetes.io/instance: release-name
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: netbox
    app.kubernetes.io/version: v3.7.2
    helm.sh/chart: netbox-5.0.5
spec:
  gateways:
    - default/release-name-netbox
  hosts:
    - netbox.local
  http:
    - match:
        - uri:
            prefix: "/"
      route:
        - destination:
            host: release-name-netbox.default.svc.cluster.local
            port:
              number: 80
---
.

Any idea how to solve this?

@q1x
Copy link
Author

q1x commented Feb 16, 2024

Could be due to changes in e23bcdf ?

@firmansyahn
Copy link
Collaborator

You should either have Istio service mesh or Kubernetes Gateway API installed to use Gateway. Or just set gateway.enabled to false to disable.

@q1x q1x changed the title Error on helm install caused by servi Error on helm install caused by virtual service Feb 16, 2024
@q1x
Copy link
Author

q1x commented Feb 16, 2024

Hi @firmansyahn , thanks for the response.
I have gateway.enabled set to false:

gateway:
  ## @param gateway.enabled  Enable Istio Gateway and VirtualService
  ##
  enabled: false
  ## @param gateway.dedicated
  ##
  dedicated: false
  ## @param gateway.gatewayApi
  ##
  gatewayApi:
    ## @param gateway.gatewayApi.create  Create Kubernetes Gateway API gateway
    ##
    create: false
  ## @param gateway.name
  ##
  name: ""
  ## @param gateway.namespace
  ##
  namespace: ""
  ## @param gateway.gatewayClassName
  ##
  gatewayClassName: istio
  ## @param gateway.listeners
  ##
  listeners: []
    # - name: http
    #   port: 80
    #   protocol: HTTP
    # - name: https
    #   port: 443
    #   protocol: HTTPS
  ## @param gateway.existingGateway
  ##
  existingGateway: ~
  ## @param gateway.existingVirtualService
  ##
  existingVirtualService: ~
  ## @param gateway.extraRoute Array of extra Kubernetes Gateway API Route to deploy with the release
  ##
  extraRoute: []

@firmansyahn firmansyahn added the bug Something isn't working label Feb 16, 2024
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

No branches or pull requests

2 participants