Commit ab8bc5b9 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

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
parents 65c77344 a244fa64
...@@ -124,26 +124,26 @@ To add an existing Kubernetes cluster to your project: ...@@ -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: 1. Create a file called `gitlab-admin-service-account.yaml` with contents:
```yaml ```yaml
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: gitlab-admin name: gitlab-admin
namespace: kube-system namespace: kube-system
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: gitlab-admin name: gitlab-admin
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
name: cluster-admin name: cluster-admin
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: gitlab-admin name: gitlab-admin
namespace: kube-system namespace: kube-system
``` ```
1. Apply the service account and cluster role binding to your cluster: 1. Apply the service account and cluster role binding to your cluster:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment