You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Official it is written somtimes with a capital K, sometimes with a lower-case k.
But the documentation mostly uses capital K, thus we should follow that.
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Preface
2
2
3
-
In a perfect world every written service will work smooth, your test coverage is on top and there are no bugs in your API. But we all know, that we can't achieve this world, sadly. It's not unusual that there's a bug in an API and you have to debug this problem in a production environment. We have faced this problem with our go services in our kubernetes cluster and we want to show you how it's possible to remote debug a go service in a kubernetes cluster.
3
+
In a perfect world every written service will work smooth, your test coverage is on top and there are no bugs in your API. But we all know, that we can't achieve this world, sadly. It's not unusual that there's a bug in an API and you have to debug this problem in a production environment. We have faced this problem with our go services in our Kubernetes cluster and we want to show you how it's possible to remote debug a go service in a Kubernetes cluster.
4
4
5
5
## Software Prerequisites
6
6
@@ -11,16 +11,16 @@ For this scenario we need some software:
*[Visual Studio Code](https://code.visualstudio.com/download) (used version: 1.32.3)
13
13
14
-
We decided to use `kind` instead of `minikube`, since it's a very good tool for testing kubernetes locally and we can use our docker images without a docker registry.
14
+
We decided to use `kind` instead of `minikube`, since it's a very good tool for testing Kubernetes locally and we can use our docker images without a docker registry.
15
15
16
16
## Big Picture
17
17
18
18
First we will briefly explain how it works:
19
19
20
-
1. We create a new kubernetes cluster `local-debug-k8s` on our local system
20
+
1. We create a new Kubernetes cluster `local-debug-k8s` on our local system
21
21
22
22
* you need a docker container with [delve](https://github.com/go-delve/delve) (the go debugger) as the main process
23
-
* delve needs access to the path with the project data. This is done by mounting `$GOPATH/src` on the pod which is running in the kubernetes cluster
23
+
* delve needs access to the path with the project data. This is done by mounting `$GOPATH/src` on the pod which is running in the Kubernetes cluster
24
24
* we start the delve container on port 30123 and bind this port to localhost, so that only our local debugger can communicate with delve
25
25
* to debug an API with delve, it's necessary to set up an ingress network. For this we use port 8090.
26
26
@@ -186,7 +186,7 @@ You are ready to start the service in the debug mode:
186
186
187
187
Let's go through the deployment.
188
188
189
-
* Image name is what we loaded into the kind cluster with the command `kind load image...`. _imagePullPolicy_ must be set to _IfNotPresent_, because it is already loaded there and we don't want kubernetes to try doing it once more.
189
+
* Image name is what we loaded into the kind cluster with the command `kind load image...`. _imagePullPolicy_ must be set to _IfNotPresent_, because it is already loaded there and we don't want Kubernetes to try doing it once more.
0 commit comments