Home > Software design >  Unable to deploy K8S WSO2 APIM Operator on kubernetes
Unable to deploy K8S WSO2 APIM Operator on kubernetes

Time:06-17

I am trying to deploy WSO2 API Manager Operator on AWS EKS cluster following the doc [https://github.com/wso2/k8s-wso2am-operator][1]

But When I execute the command: kubectl apply -f scenarios/scenario-1/

I get the error: unable to recognize "scenarios\scenario-1\2-custom-pattern.yaml": no matches for kind "APIManager" in version "apim.wso2.com/v1alpha1"

How do I fix this error?

CodePudding user response:

This indicates that the CRDs are not deployed. Did you install the CRDs as explained here? The repo you are referring seems to be for APIM operator to deploy APIM. Rther you should be following API operator to deploy APIs. Following is the correct Github repo for the Operator.

Github : https://github.com/wso2/k8s-api-operator

CodePudding user response:

wso2am-operator is not tested in newer kubernetes versions (1.20 ). Some of the kubernetes APIs used were deprecated even in previous versions and removed in v1.22[1]. Those include rbac.authorization.k8s.io/v1beta1 and apiextensions.k8s.io/v1beta1. The error you are seeing is because the custom resource for APIManager is not deployed properly.

The Operator should work if you try this on an older kubernetes version. However, it only supports APIM 3.2.0 (latest is APIM 4.1.0).

[1] - https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22

  • Related