Commit 86341c02 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs/updated-kubectl-exec-commands' into 'master'

Update kubectl exec commands to include '--'

See merge request gitlab-org/gitlab!49175
parents 7757f7e8 8f30284d
...@@ -126,7 +126,7 @@ and they will assist you with any issues you are having. ...@@ -126,7 +126,7 @@ and they will assist you with any issues you are having.
kubectl get pods | grep task-runner kubectl get pods | grep task-runner
# enter it # enter it
kubectl exec -it <task-runner-pod-name> bash kubectl exec -it <task-runner-pod-name> -- bash
# open rails console # open rails console
# rails console can be also called from other GitLab pods # rails console can be also called from other GitLab pods
...@@ -139,10 +139,10 @@ and they will assist you with any issues you are having. ...@@ -139,10 +139,10 @@ and they will assist you with any issues you are having.
/usr/local/bin/gitlab-rake gitlab:check /usr/local/bin/gitlab-rake gitlab:check
# open console without entering pod # open console without entering pod
kubectl exec -it <task-runner-pod-name> /srv/gitlab/bin/rails console kubectl exec -it <task-runner-pod-name> -- /srv/gitlab/bin/rails console
# check the status of DB migrations # check the status of DB migrations
kubectl exec -it <task-runner-pod-name> /usr/local/bin/gitlab-rake db:migrate:status kubectl exec -it <task-runner-pod-name> -- /usr/local/bin/gitlab-rake db:migrate:status
``` ```
You can also use `gitlab-rake`, instead of `/usr/local/bin/gitlab-rake`. You can also use `gitlab-rake`, instead of `/usr/local/bin/gitlab-rake`.
......
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