Add permissions for functions run in Kubeless

This commit is contained in:
Néstor Salceda 2018-10-19 12:38:02 +02:00
parent 7d24eba1b6
commit a3e336f782
2 changed files with 14 additions and 1 deletions

View File

@ -2,8 +2,9 @@ deploy:
kubectl apply -f nats/
kubectl apply -f kubeless/
kubectl apply -f network-policy.yaml
kubectl apply -f .
clean:
kubectl delete -f kubeless/
kubectl delete -f nats/
kubectl delete -f network-policy.yaml
kubectl delete -f .

View File

@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: sysdig-kubeless
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: default
namespace: default