The server could not find the requested resource

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


Hi @venumadhav.hari,
Can you please provide the below command output?

kubectl apply -f one.yaml -v 8 

Regards,