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

[K8s] Cannot sky show-gpus for service account #4152

Open
cblmemo opened this issue Oct 23, 2024 · 0 comments
Open

[K8s] Cannot sky show-gpus for service account #4152

cblmemo opened this issue Oct 23, 2024 · 0 comments

Comments

@cblmemo
Copy link
Collaborator

cblmemo commented Oct 23, 2024

After following this script, The service account cannot use sky show-gpus:

https://github.com/skypilot-org/skypilot/blob/master/sky/utils/kubernetes/generate_kubeconfig.sh

$ sky show-gpus
kubernetes.client.exceptions.ApiException: (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Audit-Id': '6a01a9c6-d667-4816-8b90-ae99429e8284', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': 'a37a4b2a-0f7c-41db-afd4-135a4e9c0c4f', 'X-Kubernetes-Pf-Prioritylevel-Uid': '176b72f8-e01f-45b3-851f-d27f78180235', 'Date': 'Wed, 23 Oct 2024 00:09:11 GMT', 'Content-Length': '273'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods is forbidden: User \"system:serviceaccount:default:sky-sa\" cannot list resource \"pods\" in API group \"\" at the cluster scope","reason":"Forbidden","details":{"kind":"pods"},"code":403}

Version & Commit info:

  • sky -v: PLEASE_FILL_IN
  • sky -c: skypilot, commit f5d4f64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant