Skip to content

Instantly share code, notes, and snippets.

@egeneralov
Last active June 30, 2021 02:06
Show Gist options
  • Save egeneralov/ef7a0aad6733c3f63e3442d33a4c600b to your computer and use it in GitHub Desktop.
Save egeneralov/ef7a0aad6733c3f63e3442d33a4c600b to your computer and use it in GitHub Desktop.

gitlab runners cluster-admin (from kubernetes integration application tab)

cat << EOF | kubectl apply -f -
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: gitlab-managed-apps
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: default
  namespace: gitlab-managed-apps
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment