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 while deploying apim helm chart #535

Open
lahirugmg opened this issue Dec 29, 2021 · 1 comment
Open

Error while deploying apim helm chart #535

lahirugmg opened this issue Dec 29, 2021 · 1 comment

Comments

@lahirugmg
Copy link

Description:
Trying to install helm chart locally and got this error

$ helm install apim-pattern-1-deploy wso2/am-pattern-1 --version 4.0.0-1 --namespace wso2 --create-namespace
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "Ingress" in version "extensions/v1beta1"
Suggested Labels:

OS, DB, other environment details and versions:
Mac OS

@lahirugmg lahirugmg changed the title lahirugamage@Maheshanis-MBP kubernetes-apim % helm install apim-pattern-1-deploy wso2/am-pattern-1 --version 4.0.0-1 --namespace wso2 --create-namespace Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "Ingress" in version "extensions/v1beta1" Error while deploying apim helm chart Dec 29, 2021
@rasenfer
Copy link

rasenfer commented Mar 8, 2022

Depending on your Kubernetes version, Ingress can be stored in other namespace of the api.

In mine (1.19) is on services-networking/ingress I have changed it on apiVersion.
But I needed to add pathType parameter that is now mandatory and I changed serviceName y and servicePort declarations to the new sintaxis too.

This is my example for wso2am-ingress.yaml

apiVersion: networking.k8s.io/v1
kind: Ingress
.................
rules:
  - host: {{ .Values.wso2.deployment.am.ingress.management.hostname }}
    http:
      paths:
        - path: /
          pathType: Prefix
          backend:
            service:
              name: {{ template "am-single-node.resource.prefix" . }}-am-service
              port:
                number: 9443

I have needed to update these three files:
wso2am-ingress.yaml
wso2am-websub-ingress.yaml
wso2am-gateway-ingress.yaml

Look at https://kubernetes.io/docs/concepts/services-networking/ingress/ for your version:

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

2 participants