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
b0a99370
Commit
b0a99370
authored
Aug 22, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
bc8bf8c1
e8f4cadd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
doc/administration/troubleshooting/kubernetes_cheat_sheet.md
doc/administration/troubleshooting/kubernetes_cheat_sheet.md
+15
-5
No files found.
doc/administration/troubleshooting/kubernetes_cheat_sheet.md
View file @
b0a99370
...
@@ -83,12 +83,22 @@ and they will assist you with any issues you are having.
...
@@ -83,12 +83,22 @@ and they will assist you with any issues you are having.
kubectl logs gitlab-unicorn-7656fdd6bf-jqzfs
-c
unicorn
kubectl logs gitlab-unicorn-7656fdd6bf-jqzfs
-c
unicorn
```
```
-
It is not possible to get all the logs via Kubectl at once, like with
`gitlab-ctl tail`
,
-
Tail and follow all pods that share a label (in this case,
`unicorn`
):
but a number of third-party tools can be used to do it:
-
[
Kubetail
](
https://github.com/johanhaleby/kubetail
)
```
bash
-
[
kail: kubernetes tail
](
https://github.com/boz/kail
)
# all containers in the unicorn pods
-
[
stern
](
https://github.com/wercker/stern
)
kubectl logs
-f
-l
app
=
unicorn
--all-containers
=
true
--max-log-requests
=
50
# only the unicorn containers in all unicorn pods
kubectl logs
-f
-l
app
=
unicorn
-c
unicorn
--max-log-requests
=
50
```
-
One can stream logs from all containers at once, similar to the Omnibus
command
`gitlab-ctl tail`
:
```
bash
kubectl logs
-f
-l
release
=
gitlab
--all-containers
=
true
--max-log-requests
=
100
```
-
Check all events in the
`gitlab`
namespace (the namespace name can be different if you
-
Check all events in the
`gitlab`
namespace (the namespace name can be different if you
specified a different one when deploying the helm chart):
specified a different one when deploying the helm chart):
...
...
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