sober-wang commented on issue #608:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/608#issuecomment-905134455


   So How to fix the problem ? I met it, too.
   
   
   ```
   [root@k8smaster05 cloudbg]# kubectl  apply -f myhttp-ingress.yaml 
   ingress.networking.k8s.io/myhttp-ingress configured
   error: unable to recognize "myhttp-ingress.yaml": no matches for kind 
"ApisixRoute" in version "apisix.apache.org/v2alpha1"
   [root@k8smaster05 cloudbg]# cat myhttp-ingress.yaml 
   apiVersion: networking.k8s.io/v1beta1
   kind: Ingress
   metadata:
     name: myhttp-ingress
     namespace: ws
     annotations:
       kubernetes.io/ingress.class: apisix
   spec:
     rules:
     - host: myhttp.storm.io
       http:
         paths:
         - backend:
             serviceName: myhttp-svc
             servicePort: 9527
           path: /
   
   ---
   apiVersion: apisix.apache.org/v2alpha1
   kind: ApisixRoute
   metadata:
     name: myhttp-route
     namespace: ws 
   spec:
     http:
     - name: myhttp-route
       match:
          hosts:
          - myhttp.apisix-route.storm.io
          paths:
          - /*
       backend:
         serviceName: myhttp-svc
         servicePort: 9527
   [root@k8smaster05 cloudbg]# [root@k8smaster05 cloudbg]# kubectl -n ws 
describe  configmaps myapisix-ingress-controller-configmap 
   Name:         myapisix-ingress-controller-configmap
   Namespace:    ws
   Labels:       app.kubernetes.io/instance=myapisix-ingress-controller
                 app.kubernetes.io/managed-by=Helm
                 app.kubernetes.io/name=apisix-ingress-controller
                 app.kubernetes.io/version=1.1.0
                 helm.sh/chart=apisix-ingress-controller-0.6.0
   Annotations:  meta.helm.sh/release-name: myapisix-ingress-controller
                 meta.helm.sh/release-namespace: ws
   
   Data
   ====
   config.yaml:
   ----
   # log options
   log_level: "info"
   log_output: "stderr"
   http_listen: ":8080"
   enable_profiling: true
   kubernetes:
     kubeconfig: ""
     resync_interval: "6h"
     app_namespaces:
     - "*"
     ingress_class: "apisix"
     ingress_version: "networking/v1"
     apisix_route_version: "apisix.apache.org/v2beta1"
   apisix:
     base_url: "http://apisix-admin:9180/apisix/admin";
     admin_key: "edd1c9f034335f136f87ad84b625c8f1"
   
   Events:  <none>
   [root@k8smaster05 cloudbg]# 
   
   ```
   
   my environment.
   - kubernetes v1.18.2 
   - apisix: 2.7
   - apisix-ingress-controller: 1.1.0
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to