diff options
author | Joe Mullally <jwmullally@gmail.com> | 2018-03-16 04:43:14 +0300 |
---|---|---|
committer | Joe Mullally <jwmullally@gmail.com> | 2018-03-16 04:43:14 +0300 |
commit | cb9d5f9064b59ec7fe7235a981cb747bfe60dcc1 (patch) | |
tree | 4567228cde56a0deef1bbc9feadaa3525b37c865 /doc/install/openshift_and_gitlab/index.md | |
parent | 770ba3838ce21dd7e788eaf013fb3abd2f5cac91 (diff) |
OpenShift install docs: Recommend "add-scc-to-user" over "edit scc"
Diffstat (limited to 'doc/install/openshift_and_gitlab/index.md')
-rw-r--r-- | doc/install/openshift_and_gitlab/index.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/install/openshift_and_gitlab/index.md b/doc/install/openshift_and_gitlab/index.md index 1f46ee4c1ea..e6ccfccd33f 100644 --- a/doc/install/openshift_and_gitlab/index.md +++ b/doc/install/openshift_and_gitlab/index.md @@ -464,7 +464,9 @@ bother us. In any case, it is something to keep in mind when deploying GitLab on a production cluster. In order to deploy GitLab on a production cluster, you will need to assign the -GitLab service account to the `anyuid` Security Context. +GitLab service account to the `anyuid` [Security Context Constraints][scc]. + +For OpenShift v3.0, you will need to do this manually: 1. Edit the Security Context: ```sh @@ -477,6 +479,12 @@ GitLab service account to the `anyuid` Security Context. 1. Save and exit the editor +For OpenShift v3.1 and above, you can do: + +```sh +oc adm policy add-scc-to-user anyuid system:serviceaccount:gitlab:gitlab-ce-user +``` + ## Conclusion 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. [autoscaling]: https://docs.openshift.org/latest/dev_guide/pod_autoscaling.html "Documentation - Autoscale" [basic-cli]: https://docs.openshift.org/latest/cli_reference/basic_cli_operations.html "Documentation - Basic CLI operations" [openshift-docs]: https://docs.openshift.org "OpenShift documentation" +[scc]: https://docs.openshift.org/latest/admin_guide/manage_scc.html "Documentation - Managing Security Context Constraints"
\ No newline at end of file |