Skip to content

Commit

Permalink
serviceaccount
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Aug 3, 2018
1 parent 4a7a12d commit 177c0eb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pipeline {
agent {
kubernetes {
label 'helm-pod'
serviceAccount 'jenkins'
serviceAccount 'jenkins-helm'
containerTemplate {
name 'helm-pod'
image 'wardviaene/helm-s3'
Expand Down
1 change: 1 addition & 0 deletions helm/jenkins/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# install jenkins
```
kubectl create -f serviceaccount.yaml
helm install --name jenkins --set rbac.install=true,Master.RunAsUser=1000,Master.FsGroup=1000 stable/jenkins
```
17 changes: 17 additions & 0 deletions helm/jenkins/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: jenkins-helm
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: jenkins-helm
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: jenkins-helm
namespace: default

0 comments on commit 177c0eb

Please sign in to comment.