sa-rbac.yaml 594 B

12345678910111213141516171819202122232425262728293031
  1. apiVersion: v1
  2. kind: ServiceAccount
  3. metadata:
  4. name: {{ .Release.Name }}-router
  5. ---
  6. apiVersion: rbac.authorization.k8s.io/v1
  7. kind: Role
  8. metadata:
  9. name: {{ .Release.Name }}-router
  10. rules:
  11. - apiGroups:
  12. - ""
  13. resources: ["pods"]
  14. verbs: ["get", "list", "watch"]
  15. ---
  16. kind: RoleBinding
  17. apiVersion: rbac.authorization.k8s.io/v1
  18. metadata:
  19. name: {{ .Release.Name }}-router
  20. roleRef:
  21. apiGroup: rbac.authorization.k8s.io
  22. kind: Role
  23. name: {{ .Release.Name }}-router
  24. subjects:
  25. - kind: ServiceAccount
  26. name: {{ .Release.Name }}-router
  27. namespace: {{ .Release.Namespace }}