Add right to create pod forwarding for appmgr tiller
[it/dep.git] / ric-platform / 50-RIC-Platform / helm / appmgr / templates / serviceaccount.yaml
1 ---
2 apiVersion: v1
3 kind: ServiceAccount
4 metadata:
5   name: {{ include "common.serviceaccountname.appmgr" . }}
6   namespace: {{ include "common.namespace.platform" . }}
7 ---
8 apiVersion: rbac.authorization.k8s.io/v1beta1
9 kind: Role
10 metadata:
11   name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.helmrepositorytillernamespace" . }}-access
12   namespace: {{ include "common.helmrepositorytillernamespace" . }}
13 rules:
14 - apiGroups: [""]
15   resources: ["pods", "pods/portforward"]
16   verbs: ["get", "list", "create"]
17 ---
18 apiVersion: rbac.authorization.k8s.io/v1beta1
19 kind: RoleBinding
20 metadata:
21   name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.helmrepositorytillernamespace" .}}-access
22   namespace: {{ include "common.helmrepositorytillernamespace" . }}
23 roleRef:
24   apiGroup: rbac.authorization.k8s.io
25   kind: Role
26   name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.helmrepositorytillernamespace" .}}-access
27 subjects:
28   - kind: ServiceAccount
29     name: {{ include "common.serviceaccountname.appmgr" . }}
30     namespace: {{ include "common.namespace.platform" . }}