12345678910111213141516171819202122232425262728293031 |
- apiVersion: v1
- kind: ServiceAccount
- metadata:
- name: {{ .Release.Name }}-router
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: Role
- metadata:
- name: {{ .Release.Name }}-router
- rules:
- - apiGroups:
- - ""
- resources: ["pods"]
- verbs: ["get", "list", "watch"]
- ---
- kind: RoleBinding
- apiVersion: rbac.authorization.k8s.io/v1
- metadata:
- name: {{ .Release.Name }}-router
- roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: {{ .Release.Name }}-router
- subjects:
- - kind: ServiceAccount
- name: {{ .Release.Name }}-router
- namespace: {{ .Release.Namespace }}
|