Created
November 27, 2019 12:48
-
-
Save n0rdlicht/5ad7b8490d4bd11b2c3f5ab9694b9cb8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: gitlab-managed | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: gitlab-sa | |
namespace: gitlab-managed | |
--- | |
kind: Role | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: gitlab-role | |
namespace: gitlab-managed | |
rules: | |
- apiGroups: | |
- "" | |
- extensions | |
resources: | |
- '*' | |
verbs: | |
- '*' | |
--- | |
kind: RoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: gitlab-rb | |
namespace: gitlab-managed | |
subjects: | |
- kind: ServiceAccount | |
name: gitlab-sa | |
namespace: gitlab-managed | |
roleRef: | |
kind: Role | |
name: gitlab-role | |
apiGroup: rbac.authorization.k8s.io | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: gitlab-cluster | |
namespace: gitlab-managed | |
subjects: | |
- kind: ServiceAccount | |
name: default | |
namespace: gitlab-managed | |
roleRef: | |
kind: ClusterRole | |
name: cluster-admin | |
apiGroup: rbac.authorization.k8s.io | |
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: gitlab-secret | |
namespace: gitlab-managed | |
annotations: | |
kubernetes.io/service-account.name: gitlab-sa | |
type: kubernetes.io/service-account-token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment