Skip to content

Instantly share code, notes, and snippets.

@KiaArmani
Created February 4, 2019 15:26
Show Gist options
  • Save KiaArmani/21d8ae44f4536a7d6f793d127b41737a to your computer and use it in GitHub Desktop.
Save KiaArmani/21d8ae44f4536a7d6f793d127b41737a to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ServiceAccount
metadata:
name: gitlab
namespace: default
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: gitlab-admin
namespace: default
subjects:
- kind: ServiceAccount
name: gitlab
namespace: default
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: Secret
metadata:
name: gitlab-token
namespace: default
annotations:
kubernetes.io/service-account.name: gitlab
type: kubernetes.io/service-account-token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment