Hello, when I'm trying to curl to list the apis, I'm getting following error: `f . . .

srikanth arani:
Hello, when I’m trying to curl to list the apis, I’m getting following error: forbidden: User \"system:anonymous\" cannot get path \"/apis\""

controlplane $ curl <https://localhost:6443/apis> -k
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {

},
"status": "Failure",
"message": "forbidden: User \"system:anonymous\" cannot get path \"/apis\"",
"reason": "Forbidden",
"details": {

},
"code": 403
}controlplane $
@Tej_Singh_Rana @Mohamed Ayman

Mohamed Ayman:
@srikanth arani you should create a basic authentication to be able use ur curl command. Check this lec https://www.udemy.com/course/certified-kubernetes-administrator-with-practice-tests/learn/lecture/14296208#questions/7627352