< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

Upgrade from v4.1.x to v4.1.3

This section explains how to upgrade KubeSphere from v4.1.x to v4.1.3 while maintaining your current Kubernetes version.

Prerequisites

  • Ensure your current KubeSphere version is v4.1.x.

  • Ensure your current Kubernetes version is v1.21.x ~ v1.30.x.

  • If extensions have custom configurations, back them up by downloading configuration files from the "Extension Config" dialog.

  • Back up all critical data to prevent data loss.

Upgrade KubeSphere

KubeSphere v4.1+ uses Helm for upgrading ks-core.

Upgrade Host Cluster

  1. Verify the target cluster:

    kubectl get node -o wide
  2. Export current ks-core configuration:

    helm get values -n kubesphere-system ks-core -o yaml > host-cluster-custom-values.yaml
  3. Modify configuration file:

    # Pay special attention to these fields while preserving others
    global:
      imageRegistry: docker.io
    extension:
      imageRegistry: docker.io
    
    # Note: Cluster role parameter changed from 'role' to 'multicluster.role'
    multicluster:
      role: host
  4. Run upgrade command:

    helm -n kubesphere-system upgrade ks-core https://charts.kubesphere.io/main/ks-core-1.1.4.tgz -f host-cluster-custom-values.yaml --wait --debug
  5. Verify successful upgrade:

    helm -n kubesphere-system get metadata ks-core
    NAME: ks-core
    CHART: ks-core
    VERSION: 1.1.4
    APP_VERSION: v4.1.3
    NAMESPACE: kubesphere-system
    REVISION: 26
    STATUS: deployed
    DEPLOYED_AT: 2025-03-27T11:10:00+08:00

Upgrade Member Cluster

The process is similar to host cluster upgrade but requires attention to member-specific parameters.

  1. Verify target member cluster:

    kubectl get node -o wide
  2. Export ks-core configuration:

    helm get values -n kubesphere-system ks-core -o yaml > member-cluster-custom-values.yaml
  3. Modify configuration file:

    # Pay special attention to these fields
    global:
      imageRegistry: docker.io
    authentication:
      issuer:
        jwtSecret: <REDACTED>
    
    # Cluster role parameter changed from role to multicluster.role
    multicluster:
      role: member
  4. Run upgrade command:

    helm -n kubesphere-system upgrade ks-core https://charts.kubesphere.io/main/ks-core-1.1.4.tgz -f member-cluster-custom-values.yaml --wait --debug
  5. Verify successful upgrade:

    helm -n kubesphere-system get metadata ks-core
    NAME: ks-core
    CHART: ks-core
    VERSION: 1.1.4
    APP_VERSION: v4.1.3
    NAMESPACE: kubesphere-system
    REVISION: 13
    STATUS: deployed
    DEPLOYED_AT: 2025-03-27T11:10:00+08:00

Upgrade Extensions

Upgrade required extensions in Extensions Center.

  1. Navigate to extension details page in Extensions Center.

  2. Click more below the extension icon and select Extension Config.

  3. In the dialog, click Restore Recommended Configuration, then manually modify with custom settings before confirming.

  4. Click more again and select Update.

  5. In the update dialog, click Start Update and wait for completion.

KubeSphere upgrade is now complete.

Receive the latest news, articles and updates from KubeSphere


Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.