command I have executed:
kubectl create deployment demoapp --image=nginx -o yaml --dry-run=client > one.yaml
edited one.yaml —># edited code is sharing through attachements
kubectl apply -f one.yaml
Error from server (NotFound): the server could not find the requested resource