I have tried to run this YAML fine, but I am getting the below issue
1 master 2
nodes has been configured and I ran kubectl get nodes output looks fine
kubectl apply -f https://k8s.io/examples/application/deployment.yaml
then I have downloaded the file locally and tried, but again same error
Error
from server (Forbidden) :
deployments.extensions "nginx-deployment" is forbidden: User "system:node:master" cannot get deployments.extensions in the namespace "default" root@master:~#
Please assist me to resolve the issue