Skip to content

Instantly share code, notes, and snippets.

@3ng1n33r
Created November 5, 2023 04:39
Show Gist options
  • Save 3ng1n33r/9ce64b513b9962a0135afe9b3943efd6 to your computer and use it in GitHub Desktop.
Save 3ng1n33r/9ce64b513b9962a0135afe9b3943efd6 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ServiceAccount
metadata:
name: gitlab-user
namespace: gitlab-runner
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: gitlab-user
namespace: gitlab-runner
rules:
- apiGroups: ['']
resources: ['*']
verbs: ['*']
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: gitlab-user
namespace: gitlab-runner
subjects:
- kind: ServiceAccount
name: gitlab-user
namespace: gitlab-runner
roleRef:
kind: Role
name: gitlab-user
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment