I want to create PV using the kubectl
command line, Is it possible in Kubernetes or not. If it is possible then how?
For infrastructure, it has become a good practice to use declarative files to provision new infrastructure. Therefore an imperative variant only using kubectl
commands for creating Persistent Volumes has not been implemented.
Persistent Volumes are typically created in one of two ways:
kubectl
and yaml manifests, typically by an operator.