Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8f30284d
Commit
8f30284d
authored
Dec 03, 2020
by
Anton Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated kubectl exec commands
parent
bcdeb60e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/administration/troubleshooting/kubernetes_cheat_sheet.md
doc/administration/troubleshooting/kubernetes_cheat_sheet.md
+3
-3
No files found.
doc/administration/troubleshooting/kubernetes_cheat_sheet.md
View file @
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`
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment