kubeservicecatalog_roles_bindings.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. apiVersion: v1
  2. kind: Template
  3. metadata:
  4. name: service-catalog
  5. objects:
  6. - kind: ClusterRole
  7. apiVersion: v1
  8. metadata:
  9. name: servicecatalog-serviceclass-viewer
  10. rules:
  11. - apiGroups:
  12. - servicecatalog.k8s.io
  13. resources:
  14. - serviceclasses
  15. verbs:
  16. - list
  17. - watch
  18. - get
  19. - kind: ClusterRoleBinding
  20. apiVersion: v1
  21. metadata:
  22. name: servicecatalog-serviceclass-viewer-binding
  23. roleRef:
  24. name: servicecatalog-serviceclass-viewer
  25. groupNames:
  26. - system:authenticated
  27. - kind: ServiceAccount
  28. apiVersion: v1
  29. metadata:
  30. name: service-catalog-controller
  31. - kind: ServiceAccount
  32. apiVersion: v1
  33. metadata:
  34. name: service-catalog-apiserver
  35. - kind: ClusterRole
  36. apiVersion: v1
  37. metadata:
  38. name: sar-creator
  39. rules:
  40. - apiGroups:
  41. - ""
  42. resources:
  43. - subjectaccessreviews.authorization.k8s.io
  44. verbs:
  45. - create
  46. - kind: ClusterRoleBinding
  47. apiVersion: v1
  48. metadata:
  49. name: service-catalog-sar-creator-binding
  50. roleRef:
  51. name: sar-creator
  52. userNames:
  53. - system:serviceaccount:kube-service-catalog:service-catalog-apiserver
  54. - kind: ClusterRole
  55. apiVersion: v1
  56. metadata:
  57. name: namespace-viewer
  58. rules:
  59. - apiGroups:
  60. - ""
  61. resources:
  62. - namespaces
  63. verbs:
  64. - list
  65. - watch
  66. - get
  67. - kind: ClusterRoleBinding
  68. apiVersion: v1
  69. metadata:
  70. name: service-catalog-namespace-viewer-binding
  71. roleRef:
  72. name: namespace-viewer
  73. userNames:
  74. - system:serviceaccount:kube-service-catalog:service-catalog-apiserver
  75. - kind: ClusterRoleBinding
  76. apiVersion: v1
  77. metadata:
  78. name: service-catalog-controller-namespace-viewer-binding
  79. roleRef:
  80. name: namespace-viewer
  81. userNames:
  82. - system:serviceaccount:kube-service-catalog:service-catalog-controller
  83. - kind: ClusterRole
  84. apiVersion: v1
  85. metadata:
  86. name: service-catalog-controller
  87. rules:
  88. - apiGroups:
  89. - ""
  90. resources:
  91. - secrets
  92. - podpresets
  93. verbs:
  94. - create
  95. - update
  96. - delete
  97. - get
  98. - list
  99. - watch
  100. - apiGroups:
  101. - servicecatalog.k8s.io
  102. resources:
  103. - brokers/status
  104. - instances/status
  105. - bindings/status
  106. verbs:
  107. - update
  108. - kind: ClusterRoleBinding
  109. apiVersion: v1
  110. metadata:
  111. name: service-catalog-controller-binding
  112. roleRef:
  113. name: service-catalog-controller
  114. userNames:
  115. - system:serviceaccount:kube-service-catalog:service-catalog-controller
  116. - kind: Role
  117. apiVersion: v1
  118. metadata:
  119. name: endpoint-accessor
  120. rules:
  121. - apiGroups:
  122. - ""
  123. resources:
  124. - endpoints
  125. verbs:
  126. - list
  127. - watch
  128. - get
  129. - create
  130. - update
  131. - kind: RoleBinding
  132. apiVersion: v1
  133. metadata:
  134. name: endpoint-accessor-binding
  135. roleRef:
  136. name: endpoint-accessor
  137. namespace: kube-service-catalog
  138. userNames:
  139. - system:serviceaccount:kube-service-catalog:service-catalog-controller
  140. - kind: ClusterRoleBinding
  141. apiVersion: v1
  142. metadata:
  143. name: system:auth-delegator-binding
  144. roleRef:
  145. name: system:auth-delegator
  146. userNames:
  147. - system:serviceaccount:kube-service-catalog:service-catalog-apiserver