Skip to content

Commit

Permalink
Merge pull request #133 from linkernetworks/johnlin/serviceaccount
Browse files Browse the repository at this point in the history
johnlin/serviceaccount
  • Loading branch information
John-Lin authored Jul 20, 2018
2 parents 9fa4b88 + 5bc7e58 commit 093c94b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deploy/kubernetes/apps/vortex/01-rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: cluster-admin
rules:
Expand All @@ -16,14 +15,15 @@ rules:
- '*'
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: default-cluster-admin
namespace: vortex
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: vortex
name: vortex-admin
namespace: vortex
5 changes: 5 additions & 0 deletions deploy/kubernetes/apps/vortex/02-serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: vortex-admin
namespace: vortex
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
labels:
app: vortex-server
spec:
serviceAccountName: vortex-admin
containers:
- name: vortex-server
image: sdnvortex/vortex:v0.1.2
Expand Down

0 comments on commit 093c94b

Please sign in to comment.