heapster-rbac.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. apiVersion: rbac.authorization.k8s.io/v1
  2. kind: ClusterRoleBinding
  3. metadata:
  4. name: heapster-binding
  5. labels:
  6. addonmanager.kubernetes.io/mode: Reconcile
  7. roleRef:
  8. apiGroup: rbac.authorization.k8s.io
  9. kind: ClusterRole
  10. name: system:heapster
  11. subjects:
  12. - kind: ServiceAccount
  13. name: heapster
  14. namespace: kube-system
  15. ---
  16. # Heapster's pod_nanny monitors the heapster deployment & its pod(s), and scales
  17. # the resources of the deployment if necessary.
  18. apiVersion: rbac.authorization.k8s.io/v1
  19. kind: Role
  20. metadata:
  21. name: system:pod-nanny
  22. namespace: kube-system
  23. labels:
  24. addonmanager.kubernetes.io/mode: Reconcile
  25. rules:
  26. - apiGroups:
  27. - ""
  28. resources:
  29. - pods
  30. verbs:
  31. - get
  32. - apiGroups:
  33. - "extensions"
  34. resources:
  35. - deployments
  36. verbs:
  37. - get
  38. - update
  39. ---
  40. apiVersion: rbac.authorization.k8s.io/v1
  41. kind: RoleBinding
  42. metadata:
  43. name: heapster-binding
  44. namespace: kube-system
  45. labels:
  46. addonmanager.kubernetes.io/mode: Reconcile
  47. roleRef:
  48. apiGroup: rbac.authorization.k8s.io
  49. kind: Role
  50. name: system:pod-nanny
  51. subjects:
  52. - kind: ServiceAccount
  53. name: heapster
  54. namespace: kube-system
  55. ---