Skip to content

Instantly share code, notes, and snippets.

@cmer81
Created September 21, 2019 16:50
Show Gist options
  • Save cmer81/f4e5691970780d91a3e850c93a8afe1c to your computer and use it in GitHub Desktop.
Save cmer81/f4e5691970780d91a3e850c93a8afe1c to your computer and use it in GitHub Desktop.
gitlab-admin-service-account.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: gitlab-admin
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: gitlab-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: gitlab-admin
namespace: kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment