-
Notifications
You must be signed in to change notification settings - Fork 1
RoleBinding
Gregory Nickonov edited this page Apr 2, 2019
·
1 revision
R.role_binding :watcher do
role :watcher
add_service_account :default, :default
endBind Role watcher from current namespace to ServiceAccount default from namespace default.
| Sunstone property | Kubernetes property | Type |
|---|---|---|
| metadata | metadata | Kubernetes Object Metadata |
| role_ref | roleRef | RoleRef |
| subjects | subjects | Array of Subject |
Specifies the name of the cluster role to be used in binding:
cluster_role :watcherSpecifies the name of the role to be used in binding:
role :watcherAdds the user with the specified name to the array of binding's subjects:
add_user :johnAdds the group with the specified name to the array of binding's subjects:
add_group :runnersAdds the service account with the specified name from the specified namespace to the array of binding's subjects:
add_service_account :default, :defaultShortcut to the metadata.namespace property:
namespace :default