Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #78 from zachaller/patch-1
Browse files Browse the repository at this point in the history
Add Service Account to k8s deployment
  • Loading branch information
thrawn01 authored Nov 5, 2020
2 parents 0d4c3ba + 05047e9 commit 7ed5016
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions k8s-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
labels:
app: gubernator
spec:
serviceAccountName: gubernator
containers:
- image: thrawn01/gubernator:latest
imagePullPolicy: IfNotPresent
Expand Down Expand Up @@ -64,3 +65,33 @@ spec:
#port: 80
selector:
app: gubernator
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: gubernator
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: get-endpoints
rules:
- apiGroups:
- ""
resources:
- endpoints
verbs:
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: get-endpoints
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: get-endpoints
subjects:
- kind: ServiceAccount
name: gubernator

0 comments on commit 7ed5016

Please sign in to comment.