kubernetes-handbook/manifests/openfaas/rbac.yml

49 lines
705 B
YAML
Raw Normal View History

2017-12-19 22:37:48 +08:00
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: faas-controller
rules:
- apiGroups:
- ""
resources:
- services
verbs:
- get
- list
- watch
- create
- delete
- update
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
- apiGroups:
- extensions
resources:
- deployments
verbs:
- get
- list
- watch
- create
- delete
- update
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: faas-controller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: faas-controller
subjects:
- kind: ServiceAccount
name: faas-controller
namespace: default