File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
doc/install/openshift_and_gitlab Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,9 @@ bother us. In any case, it is something to keep in mind when deploying GitLab
464
464
on a production cluster.
465
465
466
466
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:
468
470
469
471
1 . Edit the Security Context:
470
472
``` sh
@@ -477,6 +479,12 @@ GitLab service account to the `anyuid` Security Context.
477
479
478
480
1 . Save and exit the editor
479
481
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
+
480
488
## Conclusion
481
489
482
490
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.
513
521
[ autoscaling ] : https://docs.openshift.org/latest/dev_guide/pod_autoscaling.html " Documentation - Autoscale "
514
522
[ basic-cli ] : https://docs.openshift.org/latest/cli_reference/basic_cli_operations.html " Documentation - Basic CLI operations "
515
523
[ 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 "
You can’t perform that action at this time.
0 commit comments