Skip to content
You are viewing the latest documentation for Solo Enterprise for kgateway, formerly known as Gloo Gateway. To access the documentation for older Gloo Gateway versions, such as 2.0 and 1.x, use the version switcher.

Upgrade

Page as Markdown

Upgrade the control plane and any gateway proxies that run in your cluster.

Prepare to upgrade

Before you upgrade Solo Enterprise for kgateway, review the following information.

  1. Review the kgateway release notes for any breaking changes or new features that you need to be aware of.

  2. Review the Solo Enterprise for kgateway release notes for any breaking changes or new features that you need to be aware of.

  3. Check the supported version compatibility matrix. If the version of Solo Enterprise for kgateway that you are upgrading to requires a different version of Kubernetes, the Kubernetes Gateway API, or Istio, upgrade those technologies accordingly.

    1. Decide on the Kubernetes Gateway API version that you want to use.

    2. Install the custom resources of the Kubernetes Gateway API version that you want to upgrade to, such as the standard 1.4.0 version.

      • Standard channel:

        kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.4.0/standard-install.yaml
      • Experimental channel: Note that some CRDs are prefixed with X to indicate that the entire CRD is experimental and subject to change.

        kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.4.0/experimental-install.yaml

      Example output:

      customresourcedefinition.apiextensions.k8s.io/gatewayclasses.gateway.networking.k8s.io created
      customresourcedefinition.apiextensions.k8s.io/gateways.gateway.networking.k8s.io created
      customresourcedefinition.apiextensions.k8s.io/httproutes.gateway.networking.k8s.io created
      customresourcedefinition.apiextensions.k8s.io/referencegrants.gateway.networking.k8s.io created
      customresourcedefinition.apiextensions.k8s.io/grpcroutes.gateway.networking.k8s.io created
    3. Check the Kubernetes Gateway API CRDs. Remove any outdated CRDs.

      kubectl get crds -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.versions[*].name}{"\t"}{.metadata.annotations.gateway\.networking\.k8s\.io/bundle-version}{"\t"}{.metadata.annotations.gateway\.networking\.k8s\.io/channel}{"\n"}{end}' | grep gateway.networking.k8s.io

      Example output:

      gatewayclasses.gateway.networking.k8s.io  v1 v1beta1  v1.2.0	experimental
      gateways.gateway.networking.k8s.io        v1 v1beta1  v1.2.0	experimental
      grpcroutes.gateway.networking.k8s.io      v1          v1.2.0	experimental
      httproutes.gateway.networking.k8s.io      v1 v1beta1  v1.2.0	experimental

    For Kubernetes upgrades, consult your cloud infrastructure provider.

    For Istio upgrades, consult the docs based on the way that you installed Istio. Example providers:

Upgrade

  1. Set the version you want to upgrade to in an environment variable, such as the latest patch version (2.1.5) .

    export NEW_VERSION=2.1.5
  2. Apply the new CRDs for the control and data plane by using Helm.

    1. Optional: To check the CRDs locally, download the CRDs to a helm directory.

      helm template --version $NEW_VERSION enterprise-kgateway-crds oci://us-docker.pkg.dev/solo-public/enterprise-kgateway/charts/enterprise-kgateway-crds --output-dir ./helm
    2. Upgrade the CRDs in your cluster:

      helm upgrade -i --namespace kgateway-system --version $NEW_VERSION enterprise-kgateway-crds oci://us-docker.pkg.dev/solo-public/enterprise-kgateway/charts/enterprise-kgateway-crds
  3. Make any changes to your Helm values.

    1. Get the Helm values file for your current version.

      helm get values enterprise-kgateway -n kgateway-system -o yaml > values.yaml
      open values.yaml
    2. Compare your current Helm chart values with the version that you want to upgrade to.

      • Show all values:

        helm show values oci://us-docker.pkg.dev/solo-public/enterprise-kgateway/charts/enterprise-kgateway --version $NEW_VERSION
      • Get a file with all values: You can get a enterprise-kgateway/values.yaml file for the upgrade version by pulling and inspecting the Helm chart locally.

        helm pull oci://us-docker.pkg.dev/solo-public/enterprise-kgateway/charts/enterprise-kgateway --version $NEW_VERSION
        tar -xvf enterprise-kgateway-$NEW_VERSION.tgz
        open enterprise-kgateway/values.yaml
    3. Make any changes that you want by editing your values.yaml Helm values file or preparing the --set flags. For development v2.2.0-main builds, include the controller.image.pullPolicy=Always setting or refer to the exact image digest to avoid using cached images.

  4. Upgrade the Solo Enterprise for kgateway control plane Helm installation.

    • Make sure to include your Helm values when you upgrade either as a configuration file or with --set flags. Otherwise, any previous custom values that you set might be overwritten.
    • When using the development build 2.2.0-main, add the --set controller.image.pullPolicy=Always option to ensure you get the latest image. Alternatively, you can specify the exact image digest.
    • To use experimental Gateway API features, include the experimental feature gate, --set controller.extraEnv.KGW_ENABLE_GATEWAY_API_EXPERIMENTAL_FEATURES=true.
    helm upgrade -i -n kgateway-system enterprise-kgateway oci://us-docker.pkg.dev/solo-public/enterprise-kgateway/charts/enterprise-kgateway \
      -f values.yaml \
      --version $NEW_VERSION 
  5. Verify that the control plane runs the upgraded version.

    kubectl -n kgateway-system get pod -l app.kubernetes.io/name=enterprise-kgateway -o jsonpath='{.items[0].spec.containers[0].image}'

    Example output:

    us-docker.pkg.dev/solo-public/enterprise-kgateway/enterprise-kgatewayy-controller:2.1.0
  6. Confirm that the control plane is up and running.

    kubectl get pods -n kgateway-system