You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "orangezhang123 (via GitHub)" <gi...@apache.org> on 2023/04/23 10:39:46 UTC

[GitHub] [apisix-ingress-controller] orangezhang123 opened a new issue, #1810: request help: upgrade apisix-ingress-controll from tag1.0.0 to tag1.6.0,meet: failed to list *v2.ApisixUpstream

orangezhang123 opened a new issue, #1810:
URL: https://github.com/apache/apisix-ingress-controller/issues/1810

   ### Issue description
   
   i upgrade controller from tag 1.0.0 to 1.6.0 ,the pod report the flowing error:
   
   W0423 18:19:49.631121       1 reflector.go:424] pkg/mod/k8s.io/client-go@v0.25.4/tools/cache/reflector.go:169: failed to list *v2.ApisixUpstream: the server could not find the requested resource (get apisixupstreams.apisix.apache.org)
   E0423 18:19:49.631172       1 reflector.go:140] pkg/mod/k8s.io/client-go@v0.25.4/tools/cache/reflector.go:169: Failed to watch *v2.ApisixUpstream: failed to list *v2.ApisixUpstream: the server could not find the requested resource (get apisixupstreams.apisix.apache.org)
   2023-04-23T18:19:52+08:00	info	gin@v1.8.1/context.go:173	path: /healthz, status: 200, method: GET, query: , ip: 10.64.1.1, user-agent: kube-probe/1.18+, errors: , cost: 46.809µs
   2023-04-23T18:19:55+08:00	info	gin@v1.8.1/context.go:173	path: /healthz, status: 200, method: GET, query: , ip: 10.64.1.1, user-agent: kube-probe/1.18+, errors: , cost: 41.661µs
   2023-04-23T18:20:02+08:00	info	gin@v1.8.1/context.go:173	path: /healthz, status: 200, method: GET, query: , ip: 10.64.1.1, user-agent: kube-probe/1.18+, errors: , cost: 44.042µs
   2023-04-23T18:20:05+08:00	info	gin@v1.8.1/context.go:173	path: /healthz, status: 200, method: GET, query: , ip: 10.64.1.1, user-agent: kube-probe/1.18+, errors: , cost: 43.274µs
   W0423 18:20:11.943588       1 reflector.go:424] pkg/mod/k8s.io/client-go@v0.25.4/tools/cache/reflector.go:169: failed to list *v2.ApisixClusterConfig: the server could not find the requested resource (get apisixclusterconfigs.apisix.apache.org)
   E0423 18:20:11.943631       1 reflector.go:140] pkg/mod/k8s.io/client-go@v0.25.4/tools/cache/reflector.go:169: Failed to watch *v2.ApisixClusterConfig: failed to list *v2.ApisixClusterConfig: the server could not find the requested resource (get apisixclusterconfigs.apisix.apache.org)
   
   is anyone can help solve the question? 
   
   apisix: tag2.15.1
   dashboard: tag. 2.7
   apisix-ingress-controller: 1.6.0 
   
   
   
   
   ### Environment
   
   - your apisix-ingress-controller version (output of apisix-ingress-controller version --long):
   - your Kubernetes cluster version (output of kubectl version):
   - if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):
   


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] orangezhang123 commented on issue #1810: request help: upgrade apisix-ingress-controll from tag1.0.0 to tag1.6.0,meet: failed to list *v2.ApisixUpstream

Posted by "orangezhang123 (via GitHub)" <gi...@apache.org>.
orangezhang123 commented on issue #1810:
URL: https://github.com/apache/apisix-ingress-controller/issues/1810#issuecomment-1519055032

   https://github.com/apache/apisix-ingress-controller/pull/1479/commits/c241811081cef80316396e74e877d2be33284e44#diff-4794137938ef7143c08dce702859051113682b655dea211c9d09997c0f70c894
   i tried the link method to update crd ,but failed too
   
    kubectl apply -f  https://raw.githubusercontent.com/apache/apisix-helm-chart/apisix-0.11.1/charts/apisix-ingress-controller/crds/customresourcedefinitions.yaml 
   
   error: error validating "https://raw.githubusercontent.com/apache/apisix-helm-chart/apisix-0.11.1/charts/apisix-ingress-controller/crds/customresourcedefinitions.yaml": error validating data: [ValidationError(CustomResourceDefinition.spec.versions[1]): unknown field "deprecated" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion, ValidationError(CustomResourceDefinition.spec.versions[2]): unknown field "deprecated" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion]; if you choose to ignore these errors, turn validation off with --validate=false
   
   
    kubectl apply -f  https://raw.githubusercontent.com/apache/apisix-helm-chart/apisix-0.11.1/charts/apisix-ingress-controller/crds/customresourcedefinitions.yaml  --validate=false
   
   customresourcedefinition.apiextensions.k8s.io/apisixclusterconfigs.apisix.apache.org configured
   customresourcedefinition.apiextensions.k8s.io/apisixconsumers.apisix.apache.org configured
   customresourcedefinition.apiextensions.k8s.io/apisixpluginconfigs.apisix.apache.org configured
   Warning: resource customresourcedefinitions/apisixroutes.apisix.apache.org is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
   customresourcedefinition.apiextensions.k8s.io/apisixtlses.apisix.apache.org configured
   customresourcedefinition.apiextensions.k8s.io/apisixupstreams.apisix.apache.org configured
   The CustomResourceDefinition "apisixroutes.apisix.apache.org" is invalid: status.storedVersions[0]: Invalid value: "v2alpha1": must appear in spec.versions
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] orangezhang123 commented on issue #1810: request help: upgrade apisix-ingress-controll from tag1.0.0 to tag1.6.0,meet: failed to list *v2.ApisixUpstream

Posted by "orangezhang123 (via GitHub)" <gi...@apache.org>.
orangezhang123 commented on issue #1810:
URL: https://github.com/apache/apisix-ingress-controller/issues/1810#issuecomment-1519085695

   i add --force to update crd, and the problem solved .but the other apisixrouter version's resouces also deleted 。all of my  old apisixRouter and service need to create again?
   why two version apisixRoute can not exits together?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] orangezhang123 closed issue #1810: request help: upgrade apisix-ingress-controll from tag1.0.0 to tag1.6.0,meet: failed to list *v2.ApisixUpstream

Posted by "orangezhang123 (via GitHub)" <gi...@apache.org>.
orangezhang123 closed issue #1810: request help: upgrade apisix-ingress-controll from tag1.0.0 to tag1.6.0,meet:  failed to list *v2.ApisixUpstream 
URL: https://github.com/apache/apisix-ingress-controller/issues/1810


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] orangezhang123 commented on issue #1810: request help: upgrade apisix-ingress-controll from tag1.0.0 to tag1.6.0,meet: failed to list *v2.ApisixUpstream

Posted by "orangezhang123 (via GitHub)" <gi...@apache.org>.
orangezhang123 commented on issue #1810:
URL: https://github.com/apache/apisix-ingress-controller/issues/1810#issuecomment-1519029474

   i try to update crd to try to solve this problem,but failed:
   kubectl apply -k samples/deploy/crd/ , run this command report the flowing error mess:
   
   Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions", GroupVersionKind: "apiextensions.k8s.io/v1, Kind=CustomResourceDefinition"
   Name: "apisixupstreams.apisix.apache.org", Namespace: ""
   for: "samples/deploy/crd/": CustomResourceDefinition.apiextensions.k8s.io "apisixupstreams.apisix.apache.org" is invalid: status.storedVersions[0]: Invalid value: "v1": must appear in spec.versions


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org