When running kubectl create -f k8s/deployment.yaml, I get the following error because of the deprecated API.
$ kubectl create -f k8s/deployment.yaml
error: unable to recognize "k8s/deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
The extensions/v1beta1 was deprecated in k8s 1.16
What should this deployment be like to be headless?