Skip to content

Upgrade from NGINX Gateway Fabric 2.0.2 to 2.1.1 leaves old CRDs, causing unknown field warnings #3947

@NicolasPires777

Description

@NicolasPires777

Description:
Hello,

Until a few days ago I was running NGINX Gateway Fabric 2.0.2 on my GKE cluster. I wanted to upgrade to 2.1.1 in order to use workerConnections and autoscaling, but I’m running into issues.

Here’s what I did to upgrade:

# Remove existing gateway
kubectl delete -f gateway.yaml

# Uninstall Helm release
helm uninstall ngf -n nginx-gateway

# Delete CRDs from 2.0.2
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/standard?ref=v2.0.2" | kubectl delete -f -

Then I reinstalled with 2.1.1:

# Apply CRDs for 2.1.1
kubectl kustomize "https://github.com/nginx/nginx-gateway-fabric/config/crd/gateway-api/standard?ref=v2.1.1" | kubectl apply -f -

# Install Helm release
helm install ngf oci://ghcr.io/nginx/charts/nginx-gateway-fabric \
  --create-namespace -n nginx-gateway \
  -f ngf-values_2-1-1.yaml

When I run this on a fresh dev cluster, everything works fine.
But when I run this on my prod cluster, which previously had 2.0.2 installed, I get the following warnings:

Warning: unknown field "spec.kubernetes.deployment.autoscaling"
Warning: unknown field "spec.workerConnections"

It looks like something from version 2.0.2 is still present, preventing workerConnections and autoscaling from working correctly.

Is there a recommended/official procedure to ensure a clean upgrade from 2.0.2 → 2.1.1, including CRD updates?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions