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
fbdef7de
Commit
fbdef7de
authored
Aug 21, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
54406995
db8f391e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
doc/administration/troubleshooting/kubernetes_cheat_sheet.md
doc/administration/troubleshooting/kubernetes_cheat_sheet.md
+14
-14
No files found.
doc/administration/troubleshooting/kubernetes_cheat_sheet.md
View file @
fbdef7de
...
@@ -29,7 +29,7 @@ and they will assist you with any issues you are having.
...
@@ -29,7 +29,7 @@ and they will assist you with any issues you are having.
```
bash
```
bash
# for minikube:
# for minikube:
minikube dashboard —url
minikube dashboard —url
# for non-local installations if access via
k
ubectl is configured:
# for non-local installations if access via
K
ubectl is configured:
kubectl proxy
kubectl proxy
```
```
...
@@ -49,7 +49,7 @@ and they will assist you with any issues you are having.
...
@@ -49,7 +49,7 @@ and they will assist you with any issues you are having.
-
What to do with pods in
`CrashLoopBackoff`
status:
-
What to do with pods in
`CrashLoopBackoff`
status:
-
Check logs via Kubernetes dashboard.
-
Check logs via Kubernetes dashboard.
-
Check logs via
`kubectl`
:
-
Check logs via
Kubectl
:
```bash
```bash
kubectl logs <unicorn pod> -c dependencies
kubectl logs <unicorn pod> -c dependencies
...
@@ -72,7 +72,7 @@ and they will assist you with any issues you are having.
...
@@ -72,7 +72,7 @@ and they will assist you with any issues you are having.
This is the principle of Kubernetes, read
[
Twelve-factor app
](
https://12factor.net/
)
This is the principle of Kubernetes, read
[
Twelve-factor app
](
https://12factor.net/
)
for details.
for details.
## Git
l
ab-specific kubernetes information
## Git
L
ab-specific kubernetes information
-
Minimal config that can be used to test a Kubernetes helm chart can be found
-
Minimal config that can be used to test a Kubernetes helm chart can be found
[
here
](
https://gitlab.com/charts/gitlab/issues/620
)
.
[
here
](
https://gitlab.com/charts/gitlab/issues/620
)
.
...
@@ -83,7 +83,7 @@ and they will assist you with any issues you are having.
...
@@ -83,7 +83,7 @@ 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`
,
-
It is not possible to get all the logs via
Kubectl
at once, like with
`gitlab-ctl tail`
,
but a number of third-party tools can be used to do it:
but a number of third-party tools can be used to do it:
-
[
Kubetail
](
https://github.com/johanhaleby/kubetail
)
-
[
Kubetail
](
https://github.com/johanhaleby/kubetail
)
...
@@ -131,7 +131,7 @@ and they will assist you with any issues you are having.
...
@@ -131,7 +131,7 @@ and they will assist you with any issues you are having.
-
Check the output of
`kubectl get events -w --all-namespaces`
.
-
Check the output of
`kubectl get events -w --all-namespaces`
.
-
Check the logs of pods within
`gitlab-managed-apps`
namespace.
-
Check the logs of pods within
`gitlab-managed-apps`
namespace.
-
On the side of GitLab check sidekiq log and kubernetes log. When GitLab is installed
-
On the side of GitLab check sidekiq log and kubernetes log. When GitLab is installed
via
helm chart, kubernetes.log
can be found inside the sidekiq pod.
via
Helm Chart,
`kubernetes.log`
can be found inside the sidekiq pod.
-
How to get your initial admin password
<https://docs.gitlab.com/charts/installation/deployment.html#initial-login>
:
-
How to get your initial admin password
<https://docs.gitlab.com/charts/installation/deployment.html#initial-login>
:
...
@@ -142,19 +142,19 @@ and they will assist you with any issues you are having.
...
@@ -142,19 +142,19 @@ and they will assist you with any issues you are having.
kubectl get secret <secret-name>
-ojsonpath
={
.data.password
}
|
base64
--decode
;
echo
kubectl get secret <secret-name>
-ojsonpath
={
.data.password
}
|
base64
--decode
;
echo
```
```
-
How to connect to a GitLab
p
ostgres database:
-
How to connect to a GitLab
P
ostgres database:
```
bash
```
bash
kubectl
exec
-it
<task-runner-pod-name>
--
/srv/gitlab/bin/rails dbconsole
-p
kubectl
exec
-it
<task-runner-pod-name>
--
/srv/gitlab/bin/rails dbconsole
-p
```
```
-
How to get info about
h
elm installation status:
-
How to get info about
H
elm installation status:
```
bash
```
bash
helm status name-of-installation
helm status name-of-installation
```
```
-
How to update GitLab installed using
helm c
hart:
-
How to update GitLab installed using
Helm C
hart:
```
bash
```
bash
helm repo upgrade
helm repo upgrade
...
@@ -179,25 +179,25 @@ and they will assist you with any issues you are having.
...
@@ -179,25 +179,25 @@ and they will assist you with any issues you are having.
helm upgrade <release name> <chart path> -f gitlab.yaml
helm upgrade <release name> <chart path> -f gitlab.yaml
```
```
## Installation of minimal GitLab config via
m
inukube on macOS
## Installation of minimal GitLab config via
M
inukube on macOS
This section is based on
[
Developing for Kubernetes with Minikube
](
https://gitlab.com/charts/gitlab/blob/master/doc/minikube/index.md
)
This section is based on
[
Developing for Kubernetes with Minikube
](
https://gitlab.com/charts/gitlab/blob/master/doc/minikube/index.md
)
and
[
Helm
](
https://gitlab.com/charts/gitlab/blob/master/doc/helm/index.md
)
. Refer
and
[
Helm
](
https://gitlab.com/charts/gitlab/blob/master/doc/helm/index.md
)
. Refer
to those documents for details.
to those documents for details.
-
Install
k
ubectl via Homebrew:
-
Install
K
ubectl via Homebrew:
```
bash
```
bash
brew
install
kubernetes-cli
brew
install
kubernetes-cli
```
```
-
Install
m
inikube via Homebrew:
-
Install
M
inikube via Homebrew:
```
bash
```
bash
brew cask
install
minikube
brew cask
install
minikube
```
```
-
Start
minikube and configure it. If m
inikube cannot start, try running
`minikube delete && minikube start`
-
Start
Minikube and configure it. If M
inikube cannot start, try running
`minikube delete && minikube start`
and repeat the steps:
and repeat the steps:
```
bash
```
bash
...
@@ -206,7 +206,7 @@ to those documents for details.
...
@@ -206,7 +206,7 @@ to those documents for details.
minikube addons
enable
kube-dns
minikube addons
enable
kube-dns
```
```
-
Install
h
elm via Homebrew and initialize it:
-
Install
H
elm via Homebrew and initialize it:
```
bash
```
bash
brew
install
kubernetes-helm
brew
install
kubernetes-helm
...
@@ -219,7 +219,7 @@ to those documents for details.
...
@@ -219,7 +219,7 @@ to those documents for details.
-
Find the IP address in the output of
`minikube ip`
and update the yaml file with
-
Find the IP address in the output of
`minikube ip`
and update the yaml file with
this IP address.
this IP address.
-
Install the GitLab
helm c
hart:
-
Install the GitLab
Helm C
hart:
```
bash
```
bash
helm repo add gitlab https://charts.gitlab.io
helm repo add gitlab https://charts.gitlab.io
...
...
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