Do we have StorageClass creation function in pykube?

10/15/2018

I am using various functions from pykube for creating namespaces, pods, rc, services, etc I am able to create those, however, one of my deployment processes has StorageClass to create.

I checked the pykube object, it doesn't have the StorageClass functions, any other ways for creating StorageClass? https://github.com/kelproject/pykube/blob/master/pykube/objects.py

-- MangeshBiradar
azure-storage
kubectl
kubernetes

1 Answer

1/17/2019

Instead of using pykube I switched to kubernetes python module, where I can easily create StorageClass.

pip install kubernetes

https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/StorageV1Api.mdenter link description here

-- MangeshBiradar
Source: StackOverflow