skupperproject / skupper-docs

Documentation for the Skupper project
https://skupper.io
5 stars 8 forks source link

Non-admin user documentation guide #97

Open rafaelvzago opened 2 years ago

rafaelvzago commented 2 years ago

Sugestion

pwright commented 2 years ago

So, we need something like:

To create service accounts that allow you create sites, you must give those accounts permissions as described in the example below, which creates the skupper-sa service account for the west namespace:

apiVersion: v1
kind: ServiceAccount
metadata:
  name: skupper-sa
  namespace: west

---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
  name: skupper-sa-full-access
  namespace: west
rules:
- apiGroups: ["", "apps", "extensions", "rbac.authorization.k8s.io",]
  resources: ["*"]
  verbs: ["*"]

---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
  name: skupper-sa-view
  namespace: west
subjects:
- kind: ServiceAccount
  name: skupper-sa
  namespace: west
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: skupper-sa-full-access