Hi Medha Bhatt,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
This error typically occurs when the Kubernetes API server requires authentication, but the client hasn’t provided the necessary credentials. Ensure that your kubeconfig file is correctly configured and contains valid credentials for accessing the Kubernetes cluster.
Have you tried to deploy by turning off validation, you can use the --validate=false
flag? If not, please try.
If you have any further queries, do let us know. If the comment is helpful, please click "Upvote".