What resource and verbs need to be bind to a service account for upload to pod? #5640
-
The following example from localhost works fine. Thanks
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Under the hood, KubernetesClient does exec for uploading file/directory to Pod. If you just want to upload from your application, A role with Pod read, exec access should work. kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: default
name: pod-upload
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["pods/exec"]
verbs: ["create"] |
Beta Was this translation helpful? Give feedback.
-
Thanks @rohanKanojia I could make it work only with
|
Beta Was this translation helpful? Give feedback.
-
@rohanKanojia great examples in your repository. It would be great to have them in the documentation |
Beta Was this translation helpful? Give feedback.
Thanks @rohanKanojia
I could make it work only with