Skip to content

Commit

Permalink
Fix: define role and rolebinding
Browse files Browse the repository at this point in the history
  • Loading branch information
mtojek committed Apr 19, 2021
1 parent 954bd54 commit 37728d7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions internal/install/static_kubernetes_elastic_agent_yml.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,34 @@ rules:
verbs:
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
namespace: kube-system
name: kind-fleet-agent
subjects:
- kind: ServiceAccount
name: kind-fleet-agent
namespace: kube-system
roleRef:
kind: Role
name: kind-fleet-agent
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: kind-fleet-agent
namespace: kube-system
labels:
k8s-app: kind-fleet-agent
rules:
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs: ["get", "create", "update"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down

0 comments on commit 37728d7

Please sign in to comment.