deployer: read pod logs, so an app's output reaches the dashboard
This commit is contained in:
@@ -48,9 +48,11 @@ rules:
|
|||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["secrets"]
|
resources: ["secrets"]
|
||||||
verbs: ["get", "create", "update", "patch", "delete"]
|
verbs: ["get", "create", "update", "patch", "delete"]
|
||||||
# Read-only. Pods are listed to report why a rollout failed, never changed.
|
# Read-only. Pods are listed to report why a rollout failed, never changed,
|
||||||
|
# and their output is read so an app's own logs can be shown in the
|
||||||
|
# dashboard without anyone reaching for kubectl.
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["pods"]
|
resources: ["pods", "pods/log"]
|
||||||
verbs: ["get", "list", "watch"]
|
verbs: ["get", "list", "watch"]
|
||||||
- apiGroups: ["apps"]
|
- apiGroups: ["apps"]
|
||||||
resources: ["deployments"]
|
resources: ["deployments"]
|
||||||
|
|||||||
Reference in New Issue
Block a user