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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
6e3cd4c5
Commit
6e3cd4c5
authored
Aug 21, 2019
by
Marcel Amirault
Committed by
Evan Read
Aug 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update capitalization in k8s cheat sheet
parent
af9b6f46
Changes
1
Hide 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 @
6e3cd4c5
...
...
@@ -29,7 +29,7 @@ and they will assist you with any issues you are having.
```
bash
# for minikube:
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
```
...
...
@@ -49,7 +49,7 @@ and they will assist you with any issues you are having.
-
What to do with pods in
`CrashLoopBackoff`
status:
-
Check logs via Kubernetes dashboard.
-
Check logs via
`kubectl`
:
-
Check logs via
Kubectl
:
```bash
kubectl logs <unicorn pod> -c dependencies
...
...
@@ -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/
)
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
[
here
](
https://gitlab.com/charts/gitlab/issues/620
)
.
...
...
@@ -83,7 +83,7 @@ and they will assist you with any issues you are having.
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:
-
[
Kubetail
](
https://github.com/johanhaleby/kubetail
)
...
...
@@ -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 logs of pods within
`gitlab-managed-apps`
namespace.
-
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>
:
...
...
@@ -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
```
-
How to connect to a GitLab
p
ostgres database:
-
How to connect to a GitLab
P
ostgres database:
```
bash
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
helm status name-of-installation
```
-
How to update GitLab installed using
helm c
hart:
-
How to update GitLab installed using
Helm C
hart:
```
bash
helm repo upgrade
...
...
@@ -179,25 +179,25 @@ and they will assist you with any issues you are having.
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
)
and
[
Helm
](
https://gitlab.com/charts/gitlab/blob/master/doc/helm/index.md
)
. Refer
to those documents for details.
-
Install
k
ubectl via Homebrew:
-
Install
K
ubectl via Homebrew:
```
bash
brew
install
kubernetes-cli
```
-
Install
m
inikube via Homebrew:
-
Install
M
inikube via Homebrew:
```
bash
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:
```
bash
...
...
@@ -206,7 +206,7 @@ to those documents for details.
minikube addons
enable
kube-dns
```
-
Install
h
elm via Homebrew and initialize it:
-
Install
H
elm via Homebrew and initialize it:
```
bash
brew
install
kubernetes-helm
...
...
@@ -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
this IP address.
-
Install the GitLab
helm c
hart:
-
Install the GitLab
Helm C
hart:
```
bash
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