Skip to content

Instantly share code, notes, and snippets.

@mdesanti
Last active January 7, 2019 13:11
Show Gist options
  • Save mdesanti/280974880f6629ec46a58c0152d72e68 to your computer and use it in GitHub Desktop.
Save mdesanti/280974880f6629ec46a58c0152d72e68 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ServiceAccount
metadata:
name: gitlab-service-account
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: gitlab-service-account
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: gitlab-service-account
namespace: kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment