Skip to content

Commit

Permalink
update example kubernetes config
Browse files Browse the repository at this point in the history
  • Loading branch information
johanhenriksson committed Oct 16, 2021
1 parent e3c9b9a commit ca1efb9
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions k8setup.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# sets up permissions for the default service account in the default namespace
# pods: create/list/delete
kind: ServiceAccount
apiVersion: v1
metadata:
name: cowait
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: task-node
name: cowait-task
rules:
- apiGroups: [""]
resources: ["pods", "pods/log", "services"]
Expand All @@ -18,12 +21,12 @@ rules:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: task-node
name: cowait-task
subjects:
- kind: ServiceAccount
name: default
namespace: default
name: cowait
namespace: cowait
roleRef:
kind: ClusterRole
name: task-node
name: cowait-task
apiGroup: rbac.authorization.k8s.io

0 comments on commit ca1efb9

Please sign in to comment.