kubectl unable to recognize "dashboard/deployment.yml"
It was the certificate issue. Using the right certificate will definitely solve this problem but in my case the certificate verification wasn't necessary as secure connection is not required for this spike.
So here is my work around
I used the flag --insecure-skip-tls-verify
with kubectl and it worked fine
+ kubectl --insecure-skip-tls-verify apply -f dashboard/deployment.extensions/kubernetes-dashboard unchangedingress.extensions/kubernetes-dashboard unchangedsecret/kubernetes-dashboard-auth unchangedservice/kubernetes-dashboard unchanged