Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIForbiddenError & APIServerError handling #1153

Open
himani-dangwal opened this issue Dec 17, 2024 · 0 comments
Open

APIForbiddenError & APIServerError handling #1153

himani-dangwal opened this issue Dec 17, 2024 · 0 comments
Labels
question Further information is requested

Comments

@himani-dangwal
Copy link

Keywords

APIServerError APIForbiddenError

Problem

I am new to kopf . . when My pod is spun and kopf is triggered I need to wait around 20-30 sec and post that it logs below error .
moreover, the scope of kopf is only namespace based
Request attempt #1/9 failed; will retry: GET https://10.xxx.x.x:443/apis/custom.metrics.k8s.io/v1beta1 -> APIServerError(None, None)

Request attempt #7/9 failed; will retry: GET https://10.100.0.1:443/api/v1/namespaces -> APIForbiddenError('namespaces is forbidden: User "system:serviceaccount:xxx:xxx" cannot list resource "namespaces" in API group "" at the cluster scope', {'kind': 'Status', 'apiVersion': 'v1', 'metadata': {}, 'status': 'Failure', 'message': 'namespaces is forbidden: User "system:serviceaccount:xxx:xxx" cannot list resource "namespaces" in API group "" at the cluster scope', 'reason': 'Forbidden', 'details': {'kind': 'namespaces'}, 'code': 403})

is there any config setting that I am missing

@himani-dangwal himani-dangwal added the question Further information is requested label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant