Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Namespace
  3. metadata:
  4. name: k8s-glt
  5. ---
  6. apiVersion: v1
  7. kind: ServiceAccount
  8. metadata:
  9. name: gitlab-sa
  10. namespace: k8s-glt
  11. ---
  12. kind: Role
  13. apiVersion: rbac.authorization.k8s.io/v1beta1
  14. metadata:
  15. name: gitlab-role
  16. namespace: k8s-glt
  17. rules:
  18. - apiGroups:
  19. - ""
  20. - extensions
  21. resources:
  22. - '*'
  23. verbs:
  24. - '*'
  25. ---
  26. kind: RoleBinding
  27. apiVersion: rbac.authorization.k8s.io/v1beta1
  28. metadata:
  29. name: gitlab-rb
  30. namespace: k8s-glt
  31. subjects:
  32. - kind: ServiceAccount
  33. name: gitlab-sa
  34. namespace: k8s-glt
  35. roleRef:
  36. kind: Role
  37. name: gitlab-role
  38. apiGroup: rbac.authorization.k8s.io
  39. ---
  40. kind: ClusterRoleBinding
  41. apiVersion: rbac.authorization.k8s.io/v1beta1
  42. metadata:
  43. name: gitlab-cluster
  44. namespace: k8s-glt
  45. subjects:
  46. - kind: ServiceAccount
  47. name: default
  48. namespace: k8s-glt
  49. roleRef:
  50. kind: ClusterRole
  51. name: cluster-admin
  52. apiGroup: rbac.authorization.k8s.io
  53. ---
  54. apiVersion: v1
  55. kind: Secret
  56. metadata:
  57. name: gitlab-secret
  58. namespace: k8s-glt
  59. annotations:
  60. kubernetes.io/service-account.name: gitlab-sa
  61. type: kubernetes.io/service-account-token
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement