Am using minikube to test out the deployment and was going through thislink
And my manifest file for deployment is like
apiVersion: ext
Check your
kubectl version
Be sure the client version is up to date with the daemon(Server) version. Read below quote from the official docs
You must use a kubectl version that is within one minor version difference of your cluster. For example, a v1.2 client should work with v1.1, v1.2, and v1.3 master. Using the latest version of kubectl helps avoid unforeseen issues.