Skip to content

k8s.Autorest.HttpOperationException: Operation returned an invalid status code 'Forbidden' #891

Answered by brendandburns
dmachine7 asked this question in Q&A

You must be logged in to vote

Chances are that the default service account for your pod doesn't have the right RBAC permissions.

InClusterConfig() uses the default pod service account

You can read more details about service accounts here:

https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

Replies: 5 comments 2 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Answer selected by dmachine7

You must be logged in to vote
2 replies
@homeahmed2012

@IvanJosipovic

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #890 on June 15, 2022 19:32.