Skip to content

Commit f864fb4

Browse files
Merge branch 'opnshift-docs-patch' into 'master'
OpenShift install docs: Recommend "add-scc-to-user" over "edit scc" See merge request gitlab-org/gitlab-ce!17787
2 parents 07a06ba + cb9d5f9 commit f864fb4

File tree

1 file changed

+10
-1
lines changed
  • doc/install/openshift_and_gitlab

1 file changed

+10
-1
lines changed

doc/install/openshift_and_gitlab/index.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,9 @@ bother us. In any case, it is something to keep in mind when deploying GitLab
464464
on a production cluster.
465465

466466
In order to deploy GitLab on a production cluster, you will need to assign the
467-
GitLab service account to the `anyuid` Security Context.
467+
GitLab service account to the `anyuid` [Security Context Constraints][scc].
468+
469+
For OpenShift v3.0, you will need to do this manually:
468470

469471
1. Edit the Security Context:
470472
```sh
@@ -477,6 +479,12 @@ GitLab service account to the `anyuid` Security Context.
477479

478480
1. Save and exit the editor
479481

482+
For OpenShift v3.1 and above, you can do:
483+
484+
```sh
485+
oc adm policy add-scc-to-user anyuid system:serviceaccount:gitlab:gitlab-ce-user
486+
```
487+
480488
## Conclusion
481489

482490
By now, you should have an understanding of the basic OpenShift Origin concepts
@@ -513,3 +521,4 @@ PaaS and managing your applications with the ease of containers.
513521
[autoscaling]: https://docs.openshift.org/latest/dev_guide/pod_autoscaling.html "Documentation - Autoscale"
514522
[basic-cli]: https://docs.openshift.org/latest/cli_reference/basic_cli_operations.html "Documentation - Basic CLI operations"
515523
[openshift-docs]: https://docs.openshift.org "OpenShift documentation"
524+
[scc]: https://docs.openshift.org/latest/admin_guide/manage_scc.html "Documentation - Managing Security Context Constraints"

0 commit comments

Comments
 (0)