summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorThiago Presa <tpresa@gitlab.com>2019-04-19 11:13:03 +0000
committerAchilleas Pipinellis <axil@gitlab.com>2019-04-19 11:13:03 +0000
commita244fa64b89680a9c0cd3c146dc4d255070d3a1d (patch)
tree4be911bd2042af22433384fbef1d04793c3bc304 /doc
parent65c7734472695b690047abd07821545bac1fd553 (diff)
downloadgitlab-ce-a244fa64b89680a9c0cd3c146dc4d255070d3a1d.tar.gz
Remove leading whitespaces from serviceaccount/clusterrolebinding multi-resource YAML
Diffstat (limited to 'doc')
-rw-r--r--doc/user/project/clusters/index.md40
1 files changed, 20 insertions, 20 deletions
diff --git a/doc/user/project/clusters/index.md b/doc/user/project/clusters/index.md
index ccd60b9761f..0db95e5a64c 100644
--- a/doc/user/project/clusters/index.md
+++ b/doc/user/project/clusters/index.md
@@ -124,26 +124,26 @@ To add an existing Kubernetes cluster to your project:
1. Create a file called `gitlab-admin-service-account.yaml` with contents:
- ```yaml
- apiVersion: v1
- kind: ServiceAccount
- metadata:
- name: gitlab-admin
- namespace: kube-system
- ---
- apiVersion: rbac.authorization.k8s.io/v1beta1
- kind: ClusterRoleBinding
- metadata:
- name: gitlab-admin
- roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: ClusterRole
- name: cluster-admin
- subjects:
- - kind: ServiceAccount
- name: gitlab-admin
- namespace: kube-system
- ```
+ ```yaml
+ apiVersion: v1
+ kind: ServiceAccount
+ metadata:
+ name: gitlab-admin
+ namespace: kube-system
+ ---
+ apiVersion: rbac.authorization.k8s.io/v1beta1
+ kind: ClusterRoleBinding
+ metadata:
+ name: gitlab-admin
+ roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: cluster-admin
+ subjects:
+ - kind: ServiceAccount
+ name: gitlab-admin
+ namespace: kube-system
+ ```
1. Apply the service account and cluster role binding to your cluster: