diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2019-04-19 11:13:04 +0000 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2019-04-19 11:13:04 +0000 |
commit | ab8bc5b98d479f8d4c2babc0b187121c6870a677 (patch) | |
tree | 4be911bd2042af22433384fbef1d04793c3bc304 | |
parent | 65c7734472695b690047abd07821545bac1fd553 (diff) | |
parent | a244fa64b89680a9c0cd3c146dc4d255070d3a1d (diff) | |
download | gitlab-ce-ab8bc5b98d479f8d4c2babc0b187121c6870a677.tar.gz |
Merge branch 'tpresa-fix-whitespace-in-cluster-docs' into 'master'
Remove leading whitespaces from serviceaccount/clusterrolebinding multi-resource YAML
See merge request gitlab-org/gitlab-ce!27501
-rw-r--r-- | doc/user/project/clusters/index.md | 40 |
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: |