Skip to content

Commit

Permalink
Merge pull request #14 from jason-magnetic-io/fix-nat-server-with-auth
Browse files Browse the repository at this point in the history
Added missing service account
  • Loading branch information
wallyqs committed Dec 3, 2019
2 parents e7a847c + 69c5efb commit 363ae12
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions nats-server/nats-server-with-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,32 @@ spec:
ports:
- containerPort: 7777
name: metrics
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: nats-server
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: nats-server
rules:
- apiGroups: [""]
resources:
- nodes
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: nats-server-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: nats-server
subjects:
- kind: ServiceAccount
name: nats-server
namespace: default

0 comments on commit 363ae12

Please sign in to comment.