Error: unable to recognize "spec.yaml": no matches for kind "StorageCluster" in version "core.libopenstorage.org/v1alpha1"

Trying this on Openshift 4.3

kind: StorageCluster
apiVersion: core.libopenstorage.org/v1alpha1
metadata:
name: px-cluster-cf079e01-610e-478b-ab31-cd5f34cd120e
namespace: kube-system
annotations:

Hi @Ravi_Gupta, you need to install the Portworx operator before applying the StorageCluster spec. You will find the Portworx operator in OperatorHub on your Openshift console.