Skip to content

Migrate Bitwarden from legacy server to Kubernetes #570

Description

@mpeterson

Overview

Migrate the self-hosted Bitwarden (Vaultwarden) instance from the legacy server into the Kubernetes cluster, and establish a backup strategy as part of the migration.

Current State

  • Bitwarden is running on a legacy server outside the cluster.
  • No backups are currently in place for the Bitwarden data.

Tasks

Backup strategy (pre-migration)

  • Establish a backup procedure for the Bitwarden database and attachments on the legacy server before migrating
  • Validate backup can be restored successfully

Migration to Kubernetes

  • Create the Kubernetes manifests (Deployment, Service, Ingress/HTTPRoute, PVC)
  • Create and encrypt required secrets (admin token, database credentials, SMTP config if applicable)
  • Set up persistent storage for the database and attachments via democratic-csi
  • Migrate data from legacy server to the new PVC
  • Configure DNS to point to the new instance
  • Validate functionality (login, sync, vault access)
  • Decommission the legacy server instance

Ongoing backups (post-migration)

Notes

  • Plan for a maintenance window during DNS cutover to avoid split-brain issues.
  • Consider running both instances briefly in parallel to validate before decommissioning the old one.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions