Skip to content

[Documentation] Add doc/least_permission_to_deploy_starrocks_howto.md #431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ Table Of Content

- [API Reference](./api.md)
- HOWTO
- [Least Permission to Deploy StarRocks](./least_permission_to_deploy_starrocks_howto.md)
- [Deploy StarRocks With Operator](./deploy_starrocks_with_operator_howto.md)
- [Deploy StarRocks With Helm](./deploy_starrocks_with_helm_howto.md)
- [Install StarRocks Locally](./local_installation_how_to.md)
75 changes: 75 additions & 0 deletions doc/least_permission_to_deploy_starrocks_howto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
You can install the StarRocks operator and StarRocks cluster by kubectl or helm. No matter which way you choose, you
may need the following permissions:

> Note: Operator will use its own service account, cluster role and cluster role binding to create and manage StarRocks
```yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: install-starrocks-rb
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: install-starrocks-role
subjects:
- kind: ServiceAccount
name: your-sa-name
namespace: your-namespace

---

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: install-starrocks-role
rules:
- apiGroups:
- ""
resources:
- secrets
- serviceaccounts
- configmaps
verbs:
- '*'
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
- rolebindings
- clusterroles
- roles
verbs:
- '*'
- apiGroups:
- apps
resources:
- deployments
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- '*'
- apiGroups:
- starrocks.com
resources:
- starrocksclusters
- starrockswarehouses
verbs:
- '*'
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- '*'
- apiGroups:
- batch
resources:
- jobs
verbs:
- '*'
```