Issue adding an Amazon EBS Volume


#1

Hi. I have been experimenting with 2.0 beta 2 and I am having issues configuring an Amazon EBS Volume in my Amazon EC2 cluster.

When I try to add a Persistent Volume based on Amazon EBS Disk and get the following error:

Persistentvolumes “pv1” is forbidden: error querying AWS EBS volume vol-03a566dd4648dd3eb: error finding instance i-05043dc178782dbc3: “error listing AWS instances: “NoCredentialProviders: no valid providers in chain. Deprecated. \n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors””

Any idea what I am doing wrong? Is this type of volume supported in Beta 2?


#2

Using EBS volumes and ELB balancers requires that the cloud provider be configured as AWS for the cluster, and that the nodes of the cluster have IAM instance profiles that allow access to the APIs to manipulate them. The UI does not configure the cloud provider until next release, and you likely don’t have instance profiles setup.


#3

Any chance that I can configure this via API or similar?


#4

It’s under Cluster Options in beta3 (today); IAM instance profile is in the node template (which you’ll have to recreate because youc an’t currently edit).


#5

I created a brand new Rancher 2.0 Beta 3 cluster using Amazon EC2. The resulting cluster did not contain any Storage Volume Class definition. I think the cluster config script is not setting things up properly. Using the GKE or Azure Kubernetes Service work just fine. Storage class are created and Persistant Volumes are properly created.

Hope this help pinpoint the issue with the Amazon EC2 cluster build.


#6

GKE and AKS are hosted kubernetes clusters. Once created they show whatever storage classes Google/Azure creates for you by default. EC2 is bare machines, there is nothing to decide what storage classes to create.

For them to work if you create your own, you need to create the cluster with the Amazon cloud provider chosen. Then the nodes need to have an IAM instance profile set that allows the related operations (creating EBS volumes, mounting them to instances, etc).


#7

Is there a howto on doing this? I have tried but can’t get it to work. Are there public AMIs already configured for this?


#8

any update on this. looking to add ebs volumes and running into same problems.


#9

I am having the exact same problem. Any idea on how to fix this?