Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this project still alive? How can one migrate to the (now) official ebs addon? #119

Open
albertmatyi opened this issue Aug 23, 2024 · 1 comment

Comments

@albertmatyi
Copy link

I am using the following configuration applied via terraform:

module "ebs_csi_driver_controller" {
  source = "DrFaust92/ebs-csi-driver/kubernetes"
  version = "3.10.0"

  # data.aws_iam_openid_connect_provider.eks_oidc.url
  oidc_url                                   = module.eks.cluster_oidc_issuer_url

  # Optional
  ebs_csi_controller_role_name               = "ebs-csi-driver-controller"
  ebs_csi_controller_role_policy_name_prefix = "ebs-csi-driver-policy"
  default_fstype	= "ext4"
  enable_volume_resizing	= true
  # this would need snapshotting plugin to be installed
  enable_volume_snapshot	= false
  # tag ebs volumes w cluster name
  eks_cluster_id	= module.eks.cluster_name
  extra_create_metadata	= true
  tags = {
    # this tag on EBS enables autobackup via due to Data Lifecycle Management from dlm.tf
    Snapshot = "true"
  }
}

How can one migrate to the official plugin and still maintain currently created ebs volumes/tags/etc. ?

module "eks" {
[...]
  cluster_addons = {
    [...]
    aws-ebs-csi-driver = { 
        most_recent = true 
        [... what options do I need to make it compatible with current installation/not to break existing ebs volumes/attachments]
    }
@myedes-boku
Copy link

I have just performed the migration today and it was pretty straightforward.
Since this module is installing the official aws-ebs-csi-driver, this uninstall section applies here as well.
You just need to use terraform to destroy the installed EBS CSI driver and any dependencies this module created. After that, you just need to install the EKS addon.
Just keep in mind that during the time window between the deletion of this module, and the installation of the EKS addon, it will not be possible to create new PVC or attach any volumes to new pods.
I can confirm that the existing PVCs and PVs were not affected by the migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants