Skip to content

Backup and Restore ​

Reliable backup and restore mechanisms are essential for disaster recovery and cluster resilience. The Kubernetes Service provides two layers of backup for users:

Cluster Backupetcd Backup
Kubernetes state (etcd)✅✅
Workloads/Namespaces✅❌
Persistent Volumes✅❌
Scheduled backups✅✅
One-time snapshots✅✅
Per-namespace restore✅❌
Download backups via UI✅❌
Upload/import external backups✅❌
Cluster downtime on restore❌✅

⚠️ Attention

Neither etcd or User Cluster backups are configured automatically!

They are in the responsibility of the user to be set up and configured according to their needs.

💡 Note

For etcd backups only one backup destination per Kubernetes Service environment is supported and it can be set up only during provisioning of the environment.

For User Cluster backups there is no limitation to setup multiple backup storage locations in each project, but only one can be assigned per User Cluster.

Immutable Backups ​

To enable immutable backups, customers must provide or configure an S3 bucket with Object Lock enabled, for either etcd or Velero to serve as backup destination.

This ensures write-once-read-many (WORM) protection of backups.

💡 Note

If you want to make use of immutable backups for your etcd Snapshots, please make sure to create and configure a WORM-enabled S3 bucket accordingly before ordering the Kubernetes Service environment.

See Object Storage S3 Archive Safe documentation on how to do this if you are using the ESC Object Storage S3 service.

etcd Backups ​

etcd snapshots ensure your cluster's control plane state can be saved and restored when needed. Reference to the full Kubermatic etcd Backups Documentation.

Take a snapshot ​

You can take a manual snapshot of the etcd database via the UI or API.

💡 Note

Snapshots are stored in the backup location configured for the environment.

  1. Go to the "etcd Backups" → "Snapshots" section in your project.
  2. Click "Add Snapshot" and fill in the following fields:
  • Cluster (Dropdown)
    Select the User Cluster for which you want to create the etcd snapshot.

  • Snapshot Name
    Provide a name for the snapshot (e.g., etcd-snapshot-2025-06-27).

  • Destination (Dropdown)
    Choose the configured Backup Storage Location where the snapshot will be stored.

  1. Click "Add Snapshot" to start the snapshot process.

Restore a snapshot ​

You can restore a previous snapshot to recover from critical configuration issues or control plane failure.

⚠️ Attention

Restoring an etcd snapshot will overwrite your current control plane state. Make sure to validate before restoring in production environments.

To restore a User Cluster from an etcd snapshot:

  1. Go to the "etcd Backups" → "Snapshots" section in your project.
  2. Locate the snapshot you want to restore.
  3. Click the circled arrow next to the snapshot entry "Restore cluster from Snapshot".
  4. Click the "Restore Cluster" button.

Scheduled Snapshots ​

To enable recurring etcd snapshots for User Clusters, use the "Automatic Backups" section under etcd Backups in the KKP dashboard.

  1. Navigate to the "etcd Backups" section in your project.
  2. Open the "Automatic Backups" tab.
  3. Click "Add Automatic Backup" and fill in the following fields:
  • Cluster (Dropdown)
    Select the User Cluster for which you want to enable automatic etcd snapshots.

  • Schedule Type
    Choose when backups should run. Options include:

    • Daily
    • Weekly
    • Monthly
    • Custom Interval (advanced)
  • Custom Interval (Cron Expression) (only if Custom Interval is selected)
    Enter a valid cron-formatted schedule (e.g., 0 */6 * * * for every 6 hours).

  • Numbers of Backup to save
    Set how many of the most recent snapshots should be retained. Older snapshots will be deleted automatically.

  • Destination (Dropdown)
    Select the Backup Storage Location where snapshots should be stored.

  1. Click "Add Automatic Backup" to save and activate the automatic backup configuration.

✅ The system will now automatically take etcd snapshots for the selected cluster according to the schedule and retention policy you defined.

💡 Note

  • You can view or manage these snapshots anytime under the "etcd Snapshots" tab.
  • Snapshot scheduling is disabled by default.
  • The platform does not apply a default schedule under any circumstances.
  • Existing snapshot schedules are not editable; they can only be deleted and re-created.

User Cluster Backup with Velero (built-in) ​

This section explains how to create backups for KKP User Clusters using the built-in Velero integration. Reference the full Kubermatic User Cluster Backup Documentation

  1. Create a Backup Storage Location

To configure a backup target, provide the following information:

FieldDescription
NameA name for the backup storage location
BucketThe name of your S3 bucket
Prefix (optional)Optional prefix path inside the bucket
CA Certificate (optional)Provide a custom certificate if required by your S3 endpoint
Secret Access IDAccess key for S3
Secret Access KeySecret key for S3
Backup Sync PeriodHow often to sync backup objects from S3. Use the format MMmSSs (e.g., 2m10s).
Default: 0 (disabled)

💡 Note

Backup Sync Period = 0 disables automatic sync.

⚠️ Attention

While it is possible to reuse the same S3 namespace as for the etcd backups, we recommend to use a different bucket per project to ensure there are no conflicts.

For security reasons it's also recommended to create an S3 user per project and create IAM policies limiting access to the respective bucket.

Special Configuration for Swisscom ESC S3 ​

If you're using Swisscom ESC S3, you must provide additional custom configuration because of the checksumAlgorithm:

  1. Check the option: "Add custom config"
  2. Fill in the following values:
yaml
config:
  region: 'scs'
  s3Url: '<your ESC endpoint> e.g. https://ds12s3.swisscom.com'
  checksumAlgorithm: ''

⚠️ Important

checksumAlgorithm needs to be empty like above example.

  1. After creating the Backup Storage Location, you need to enable backups for a specific User Cluster. To do this:
    1. Navigate to your Project in the KKP dashboard.
    2. Open the User Cluster you want to configure.
    3. Click on "Edit Cluster".
    4. Enable the "Cluster Backup" option.
    5. From the Backup Storage Location dropdown, select the storage location you configured in Step 1.
    6. Click "Save" to apply the changes.

Take a backup ​

After enabling Cluster Backup and selecting a Backup Storage Location in the cluster configuration (via Edit Cluster), you can manually create a backup using the "Cluster Backups" section.

  1. Navigate to your Project in the KKP dashboard.
  2. Go to the "Cluster Backups" section.
  3. Click "Create Cluster Backup".

Fill in the following fields:

  • Cluster (Dropdown)
    Select the User Cluster to back up (must have backups enabled).

  • Name
    Enter a name for the backup (e.g., uc-backup-2025-06-27).

  • Backup All Namespaces (Checkbox)

    • Checked: All namespaces in the cluster will be included.
    • Unchecked: You must manually specify one or more Namespaces to back up.
  • Namespaces (Only if Backup All Namespaces is unchecked)
    Enter the namespaces you want to include in the backup.

  • TTL
    Enter the time in the format HHhMMmSSs (e.g., 24h10m10s). The amount of time before this backup is eligible for garbage collection. If not specified, a default value of 30 days will be used.

  • Default Volume Backup (Checkbox)

    • Checked: Wether pod volumes file system backup should be used for all volumes by default.
    • Unchecked
  • Labels (optional)
    Add key-value pairs (e.g., env=prod) to help organize or filter backups.

  1. Click "Create" to start the backup process.

💡 Note

  • ✅ The backup will be executed by Velero in the selected User Cluster.
  • ⏳ You can track the status under the Cluster Backups list, where backup progress and completion states are shown.

Restore a backup ​

If you have previously created a User Cluster backup using Velero, you can restore from it via the "Cluster Backups" section in the KKP dashboard.

  1. Navigate to your Project in the KKP dashboard.
  2. Go to the "Cluster Backups" section.
  3. Locate the completed backup you want to restore from.
  4. Click the circled arrow next to the backup entry "Restore from Backup".

In the Restore Backup dialog, fill in the following fields:

    • Name
      Enter a name for the restore operation (e.g., restore-2025-06-27).
  • Restore All Namespaces (Checkbox)
    • Checked: Restore all namespaces from the backup.
    • Unchecked: You must manually enter the specific Namespaces you want to restore.
  1. Click "Restore Cluster" to initiate the operation.

💡 Note

  • ✅ Velero will start the restore process in the selected User Cluster.
  • ⏳ You can monitor the progress and status of the restore under the "Restores" tab in the Cluster Backups section.