Updating a Gwin controller
To upgrade a Yandex Cloud Gwin controller to a new version, follow these steps:
- Create a backup of your Gwin resources.
- Update the CRDs (Custom Resource Definitions).
- Update the controller.
Warning
First update the CRDsCrashLoopBackOff or stop processing resources: The Kubernetes API server will be declining requests with unknown fields.
Getting started
To find out the current Gwin version, see the Yandex Cloud Gwin product card in Cloud Marketplace.
To find out which Gwin version is currently installed in the cluster, run this command:
helm list --all-namespaces
Compare your current Gwin version with the version in Cloud Marketplace. If a newer Gwin is available in Cloud Marketplace, go through the following steps to upgrade.
Create a backup of your Gwin resources
Before the upgrade, save the current configuration of Gwin resources and related Ingress and Gateway API resources:
kubectl get all,ingress,gateway,httproute,yccertificate \
-n <namespace> \
-o yaml > gwin-backup.yaml
Where <namespace> is the Kubernetes namespace the Gwin controller is installed in.
How to learn the namespace
- In the management console
, select the folder. - Navigate
to Managed Service for Kubernetes. - Select a Managed Service for Kubernetes cluster and open the Marketplace tab.
- In the Installed applications section, open the Yandex Cloud Gwin application card.
- On the General tab, find the Namespace field value in the Application settings section.
Execute this command to display releases in all the namespaces:
helm list --all-namespaces
Find a string where the CHART field's value starts with gwin-chart. The namespace is specified in the NAMESPACE field; release name, in the NAME field.
Update the CRDs
The helm upgrade command does not automatically update existing CRDs from crds/. Update the CRDs manually using the kubectl apply command.
-
Download and unpack the Helm chart for the new Gwin version:
helm pull oci://cr.yandex/yc-marketplace/yandex-cloud/gwin/charts/gwin-chart \ --version <new_gwin_version> \ --untarWhere
<new_gwin_version>is your target Gwin version for the controller, e.g.,v1.11.0.Note
If you are using a Helm version below 3.8.0, add the
export HELM_EXPERIMENTAL_OCI=1 && \string at the beginning of the command to enable Open Container Initiative (OCI) support in the Helm client. -
Apply the CRDs from the downloaded chart:
kubectl apply --server-side --force-conflicts -f ./gwin-chart/crdsResult:
customresourcedefinition.apiextensions.k8s.io/backendtlspolicies.gateway.networking.k8s.io serverside-applied customresourcedefinition.apiextensions.k8s.io/gatewayclasses.gateway.networking.k8s.io serverside-applied customresourcedefinition.apiextensions.k8s.io/gateways.gateway.networking.k8s.io serverside-applied customresourcedefinition.apiextensions.k8s.io/grpcroutes.gateway.networking.k8s.io serverside-applied customresourcedefinition.apiextensions.k8s.io/httproutes.gateway.networking.k8s.io serverside-applied ... customresourcedefinition.apiextensions.k8s.io/yccertificates.gwin.yandex.cloud serverside-applied customresourcedefinition.apiextensions.k8s.io/ycstoragebuckets.gwin.yandex.cloud serverside-applied
Update the controller
Depending on how you installed Gwin, update the controller using either Helm or the management console:
Run the helm upgrade command using the same values in the parameters as were used when installing the controller. Use parameter --reuse-values
helm upgrade <gwin_release_name> ./gwin-chart \
--namespace <namespace> \
--reuse-values
Where:
<gwin_release_name>is the name set when installing Gwin. It is in theNAMEfield in thehelm list -n <namespace>output.<namespace>is the Kubernetes namespace the Gwin controller is installed in.
Result:
Release "gwin" has been upgraded. Happy Helming!
NAME: gwin
LAST DEPLOYED: Mon Aug 10 13:59:45 2026
NAMESPACE: gwin-space
STATUS: deployed
REVISION: 2
DESCRIPTION: Upgrade complete
- In the management console
, select the folder. - Navigate
to Managed Service for Kubernetes. - Select a Managed Service for Kubernetes cluster and open the Marketplace tab.
- In the Installed applications section, find the installed Yandex Cloud Gwin application. If a new Gwin version is available, New version available will be displayed.
- Click
in the Yandex Cloud Gwin application row and select Edit. - Select the new Gwin version and click Save.
Check the result
-
Check the Gwin version. The version is specified in the
VERSIONfield of the command output:helm list --all-namespaces -
Make sure the Gwin controller's pod is now
Running:kubectl get pods -n <namespace>Where
<namespace>is the Kubernetes namespace the Gwin controller is installed in.Result:
NAME READY STATUS RESTARTS AGE gwin-5f58847bdc-tzfnw 1/1 Running 0 12m nodecheck-4sgb4 1/1 Running 0 12m nodecheck-bbh57 1/1 Running 0 12m nodecheck-rzvtc 1/1 Running 0 12m -
Make sure the Ingress or Gateway API resources continue to be processed and Application Load Balancer is available.
Gateway APIIngressRun this command:
kubectl get gateway,httproute -n <namespace>Where
<namespace>is the Kubernetes namespace the Gwin controller is installed in.Result:
NAME CLASS ADDRESS PROGRAMMED AGE gateway.gateway.networking.k8s.io/example-gateway gwin-default <IP_address> 32h NAME HOSTNAMES AGE httproute.gateway.networking.k8s.io/example-httproute ["example.com"] 32h httproute.gateway.networking.k8s.io/example-redirect-httproute ["example.com"] 6m56sRun this command:
kubectl get ingress -n <namespace>Result:
NAME CLASS HOSTS ADDRESS PORTS AGE example-ingress gwin-default example.com <IP_address> 80, 443 31hThe
ADDRESSfield should specify the IP address of the Application Load Balancer.