Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Support Dynamic Provisioning of PersistentVolumes on AWS #379

Closed
iaguis opened this issue Apr 29, 2020 · 2 comments
Closed

Support Dynamic Provisioning of PersistentVolumes on AWS #379

iaguis opened this issue Apr 29, 2020 · 2 comments
Assignees
Labels
area/kubernetes Core Kubernetes stuff kind/roadmap Roadmap issues platform/aws AWS-related priority/P1 High priority
Milestone

Comments

@iaguis
Copy link
Contributor

iaguis commented Apr 29, 2020

This means PersistentVolumeClaims created are automatically provisioned with an EBS volume.

To do that we can use https://github.com/kubernetes-sigs/aws-ebs-csi-driver/

I took some notes while testing it that I captured in #145 (comment):

After that, I followed their Dynamic Provisioning example and everything worked as expected: the StorageClass was created, the PersistentVolumeClaim was created and after some seconds it was Bound, then the Pod using that claim was started and I could see that the Volume worked.

As they mention in their readme There are two ways to grant permissions to the ebs-csi-driver:

  • Creating an IAM user and adding its credentials to the cluster as a secret (the way I used)
  • Giving the InstanceProfile the right permissions for Worker nodes.

I'm not sure what's best so we should discuss it: the InstanceProfile route would mean that anything on that machine can do the operations listed in the policy IIUC so it seems creating an IAM user and placing it in a secret is safer (making sure the cluster is set up properly so only the CSI driver has access to the secret, of course).

@iaguis iaguis added area/kubernetes Core Kubernetes stuff platform/aws AWS-related kind/roadmap Roadmap issues labels Apr 29, 2020
@iaguis iaguis added this to the v0.2.0 milestone Apr 29, 2020
@iaguis iaguis added the priority/P1 High priority label Apr 29, 2020
BrainBlasted added a commit that referenced this issue May 12, 2020
Creates the instance profile and policies needed for dynamic
provisioning of PVs to work on AWS

Related to #379
BrainBlasted added a commit that referenced this issue May 12, 2020
Sets up a helm chart for aws-ebs-csi-driver so dynamic
provisioning of PVs works with lokomotive. To test, follow
the example here: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/examples/kubernetes/dynamic-provisioning

The upstream helm chart does not work with their example, but the metadata for the in-tree chart is taken from it.

Related to #379
BrainBlasted added a commit that referenced this issue May 14, 2020
Creates the instance profile and policies needed for dynamic
provisioning of PVs to work on AWS

Related to #379
BrainBlasted added a commit that referenced this issue May 14, 2020
Sets up a helm chart for aws-ebs-csi-driver so dynamic
provisioning of PVs works with lokomotive. To test, follow
the example here: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/examples/kubernetes/dynamic-provisioning

The upstream helm chart does not work with their example, but the metadata for the in-tree chart is taken from it.

Related to #379
@johananl
Copy link
Member

Note that before we can safely attach IAM roles to nodes, we should implement #467 for AWS.

BrainBlasted added a commit that referenced this issue May 22, 2020
Creates the instance profile and policies needed for dynamic
provisioning of PVs to work on AWS

Related to #379
BrainBlasted added a commit that referenced this issue May 22, 2020
Sets up a helm chart for aws-ebs-csi-driver so dynamic
provisioning of PVs works with lokomotive. To test, follow
the example here: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/examples/kubernetes/dynamic-provisioning

The upstream helm chart does not work with their example, but the metadata for the in-tree chart is taken from it.

Related to #379
BrainBlasted added a commit that referenced this issue May 22, 2020
Creates the instance profile and policies needed for dynamic
provisioning of PVs to work on AWS

Related to #379
BrainBlasted added a commit that referenced this issue May 22, 2020
Sets up a helm chart for aws-ebs-csi-driver so dynamic
provisioning of PVs works with lokomotive. To test, follow
the example here: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/examples/kubernetes/dynamic-provisioning

The upstream helm chart does not work with their example, but the metadata for the in-tree chart is taken from it.

Related to #379
BrainBlasted added a commit that referenced this issue May 25, 2020
Optionally sets up an IAM role that is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 25, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 26, 2020
Optionally sets up an IAM role that is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 26, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 27, 2020
Optionally sets up an IAM role that is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 27, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 29, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 29, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 29, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 29, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 29, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 29, 2020
Optionally sets up an IAM role that is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue May 29, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 1, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 2, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
invidian pushed a commit that referenced this issue Jun 3, 2020
Optionally sets up an IAM role that is required for dynamic volume provisioning to work on AWS.

Related to #379
invidian pushed a commit that referenced this issue Jun 3, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 5, 2020
Optionally sets up an IAM role that is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 5, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 5, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 5, 2020
Optionally sets up an IAM role that is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 5, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 8, 2020
Optionally sets up an IAM role that is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 8, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 8, 2020
Optionally sets up an IAM role that is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 8, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 9, 2020
Optionally sets up an IAM role that is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 9, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for dynamic volume provisioning to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 9, 2020
Optionally sets up an IAM role that is required for dynamic volume provisioning
to work on AWS.

Related to #379
BrainBlasted added a commit that referenced this issue Jun 9, 2020
Creates a simple component for aws-ebs-csi-driver, which is required for
dynamic volume provisioning to work on AWS.

Related to #379
@iaguis
Copy link
Contributor Author

iaguis commented Jun 10, 2020

Fixed by #423

@iaguis iaguis closed this as completed Jun 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/kubernetes Core Kubernetes stuff kind/roadmap Roadmap issues platform/aws AWS-related priority/P1 High priority
Projects
None yet
Development

No branches or pull requests

3 participants