The Kubernetes Book Notes Chapter 7: Kubernetes Deployments After create the delpoy.yml file, the below command is to be executed; kubectl create deployment -f deploy.yml The -f option is no longer supported. kubectl create -f deploy.yml works.