Kubectl apply -f hostpath.yml

Error from server (BadRequest): error when creating “hostpath.yml”: pod in version “v1” cannot be handled as a Pod: no kind “pod” is registered for version “v1” in scheme “pkg/api/legacyscheme/scheme.go:30”

Ey chiru_gidugu:

Take a look at this POD Yaml file issue - #2 by Tej-Singh-Rana - Kubernetes - KodeKloud - DevOps Learning Community; the answer may be that you have “pod” in your manifest, when it shoud be “Pod” (notice the capital “p”).

kind: Pod

Hope it helps!

Xavi