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

Service account roles pods/log #50

Open
nik-humphries opened this issue May 15, 2024 · 1 comment
Open

Service account roles pods/log #50

nik-humphries opened this issue May 15, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@nik-humphries
Copy link

nik-humphries commented May 15, 2024

Upon updating to the new SPO + SP (2.1.0 / 3.1.0) I was receiving the following message on Kubernetes.

2024-05-15T12:35:56.237700027Z io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://10.0.0.1:443/api/v1/namespaces/apps/pods/sp-pod-9d680476-03ac-42a8-b851-28b801c61659-0/log?pretty=false. Message: pods "sp-pod-9d680476-03ac-42a8-b851-28b801c61659-0" is forbidden: User "system:serviceaccount:apps:shinyproxy-sa" cannot get resource "pods/log" in API group "" in the namespace "apps"

I have added a permission into the role at the line above here to include pods/log as well as the other two that are already there.

Is this missing from the deployment example or is there something else I should be changing?

@LEDfan
Copy link
Member

LEDfan commented May 16, 2024

Hi, this permissions is only needed when you have the container-log-path option enabled. Your change is correct and should fix the issue. However, I think we should indeed improve the documentation here, therefore I'll keep this issue open.

@LEDfan LEDfan added the documentation Improvements or additions to documentation label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants