Skip to content

request help: upgrade 2.0 failed! ingressClass does not match GatewayProxy #2681

@Richard0706

Description

@Richard0706

Issue description

Upgrade documentation:https://apisix.apache.org/zh/docs/ingress-controller/upgrade-guide/#apisix-version-dependency-data-plane;
The latest official chart.
ingress error log:

 2025-12-17T09:30:59.511Z	INFO	controllers.Ingress	controller/ingress_controller.go:153	reconciling ingress	{"ingress": "nacos"}

 2025-12-17T09:30:59.511Z	ERROR	controllers.Ingress	controller/utils.go:1367	failed to get GatewayProxy	{"namespace": "dev", "name": "apisix-config", "error": "GatewayProxy.apisix.apache.org \"apisix-config\" not found"}

 2025-12-17T09:30:59.511Z	ERROR	controllers.Ingress	controller/ingress_controller.go:175	failed to process IngressClass parameters	{"ingressClass": "apisix", "error": "GatewayProxy.apisix.apache.org \"apisix-config\" not found"}

 2025-12-17T09:30:59.511Z	ERROR	controller-runtime	controller/controller.go:347	Reconciler error	{"controller": "ingress", "controllerGroup": "networking.k8s.io", "controllerKind": "Ingress", "Ingress": {"name":"nacos","namespace":"dev"}, "namespace": "dev", "name": "nacos", "reconcileID": "613b8e99-c970-426e-9e86-68a480fc7d25", "error": "GatewayProxy.apisix.apache.org \"apisix-config\" not found"}

check GatewayProxy、IngressClass:

[root@master01 apisix]# kubectl -n apisix-ingress get gatewayproxies.apisix.apache.org apisix-config -o yaml
apiVersion: apisix.apache.org/v1alpha1
kind: GatewayProxy
metadata:
  annotations:
    meta.helm.sh/release-name: apisix
    meta.helm.sh/release-namespace: apisix-ingress
  creationTimestamp: "2025-12-17T09:29:42Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
  name: apisix-config
  namespace: apisix-ingress
  resourceVersion: "120900463"
  uid: 19dfe556-57ac-48e0-8b67-843f03d1778c
spec:
  provider:
    controlPlane:
      auth:
        adminKey:
          value: edd1c9f034335f136f87ad84b625c8f1
        type: AdminKey
      service:
        name: apisix-admin
        port: 9180
    type: ControlPlane
[root@master01 apisix]# kubectl get ingressClass apisix -o yaml
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
  annotations:
    meta.helm.sh/release-name: apisix
    meta.helm.sh/release-namespace: apisix-ingress
  creationTimestamp: "2025-12-17T09:29:42Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
  name: apisix
  resourceVersion: "120900460"
  uid: cc5dc5f7-ff91-411b-910f-dde4af8bc924
spec:
  controller: apisix.apache.org/apisix-ingress-controller
  parameters:
    apiGroup: apisix.apache.org
    kind: GatewayProxy
    name: apisix-config
    scope: null
[root@master01 apisix]# kubectl patch ingressclass apisix --type=merge -p '{"spec":{"parameters":{"namespace":"apisix-ingress","scope":"Namespace"}}}'
Warning: Referenced GatewayProxy '/apisix-config' not found.
ingressclass.networking.k8s.io/apisix patched

ns in IngressClass parameters is not configured and cannot be modified.

Environment

  • your apisix-ingress-controller version (output of apisix-ingress-controller version --long):ingress-controller 2.0
  • 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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions