Problem scenario
You run a kubectl command, but you get this problem: 'error: unable to recognize "foobar.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"'
What should you do?
Solution
Change your yaml file so the apiVersion setting/value works. To learn more about the acceptable values, see this posting.