Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: v1
- kind: Namespace
- metadata:
- name: k8s-glt
- ---
- apiVersion: v1
- kind: ServiceAccount
- metadata:
- name: gitlab-sa
- namespace: k8s-glt
- ---
- kind: Role
- apiVersion: rbac.authorization.k8s.io/v1beta1
- metadata:
- name: gitlab-role
- namespace: k8s-glt
- rules:
- - apiGroups:
- - ""
- - extensions
- resources:
- - '*'
- verbs:
- - '*'
- ---
- kind: RoleBinding
- apiVersion: rbac.authorization.k8s.io/v1beta1
- metadata:
- name: gitlab-rb
- namespace: k8s-glt
- subjects:
- - kind: ServiceAccount
- name: gitlab-sa
- namespace: k8s-glt
- roleRef:
- kind: Role
- name: gitlab-role
- apiGroup: rbac.authorization.k8s.io
- ---
- kind: ClusterRoleBinding
- apiVersion: rbac.authorization.k8s.io/v1beta1
- metadata:
- name: gitlab-cluster
- namespace: k8s-glt
- subjects:
- - kind: ServiceAccount
- name: default
- namespace: k8s-glt
- roleRef:
- kind: ClusterRole
- name: cluster-admin
- apiGroup: rbac.authorization.k8s.io
- ---
- apiVersion: v1
- kind: Secret
- metadata:
- name: gitlab-secret
- namespace: k8s-glt
- annotations:
- kubernetes.io/service-account.name: gitlab-sa
- type: kubernetes.io/service-account-token
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement