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

How can I use this in k8s #41

Closed
deadjoker opened this issue May 31, 2021 · 4 comments
Closed

How can I use this in k8s #41

deadjoker opened this issue May 31, 2021 · 4 comments

Comments

@deadjoker
Copy link

Hi,

I have deployed kube-linstor on k8s followed by README, and configured storage-pool and resource-group. Then how can I use it in k8s?

@kvaps
Copy link
Owner

kvaps commented Jun 2, 2021

Hi, try to follow the official LINSTOR documentation from this point
https://linbit.com/drbd-user-guide/linstor-guide-1_0-en/#s-kubernetes-basic-configuration-and-deployment

You need to create StorageClass and PersistentVolumeClaims in your Kubernetes cluster

@deadjoker
Copy link
Author

I followed the guide but the pvc created failed.

Events:
  Type     Reason                Age               From                                                                                                 Message
  ----     ------                ----              ----                                                                                                 -------
  Normal   ExternalProvisioning  8s (x2 over 12s)  persistentvolume-controller                                                                          waiting for a volume to be created, either by external provisioner "linstor.csi.linbit.com" or manually created by system administrator
  Normal   Provisioning          6s (x4 over 12s)  linstor.csi.linbit.com_linstor-csi-controller-68f44f88b7-bq6w9_128e8442-8b79-4940-8a66-00ecb4bfe3ba  External provisioner is provisioning volume for claim "default/my-first-linstor-volume"
  Warning  ProvisioningFailed    6s (x4 over 12s)  linstor.csi.linbit.com_linstor-csi-controller-68f44f88b7-bq6w9_128e8442-8b79-4940-8a66-00ecb4bfe3ba  failed to provision volume with StorageClass "linstor-basic-storage-class": rpc error: code = Internal desc = CreateVolume failed for pvc-567b72ed-636d-476f-ac57-e0e2707c8bc1: Message: 'Not enough available nodes'; Details: 'Not enough nodes fulfilling the following auto-place criteria:
 * has a deployed storage pool named TransactionList [my-linstor-lvm-thin]
 * the storage pools have to have at least '512000' free space
 * the current access context has enough privileges to use the node and the storage pool
 * the node is online
Auto-place configuration details:
  Additional place count: 1
  Don't place with resource (List): [pvc-567b72ed-636d-476f-ac57-e0e2707c8bc1]
  Storage pool name: TransactionList [my-linstor-lvm-thin]
  Layer stack: [DRBD, STORAGE]
Auto-placing resource: pvc-567b72ed-636d-476f-ac57-e0e2707c8bc1'

It is said that all satellites are online, and I create storagepool. For k8s, I create storageclass and then create pvc. I'm not sure where is the problem

@deadjoker
Copy link
Author

solved :)

@zchef2k
Copy link

zchef2k commented Jan 7, 2022

solved :)

How did you solve this? I'm facing the same issue.

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

3 participants