Skip to content

Commit 0a91f15

Browse files
authored
connect to GCP GKE from local machine
explanation of how to connect from lacal machine to Google Cloud Kubernetes without headache, close kubernetes-client#91
1 parent a5f0e06 commit 0a91f15

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,21 @@ cd csharp\examples\simple
4646
dotnet run
4747
```
4848

49+
## Connecting to GCP GKE from local machine
50+
51+
Start proxy to access kubernetes cluster:
52+
53+
```bash
54+
$ kubectl proxy
55+
Starting to serve on 127.0.0.1:8001
56+
```
57+
58+
In code use following config:
59+
60+
```csharp
61+
var config = new KubernetesClientConfiguration { Host = "http://127.0.0.1:8001" };
62+
```
63+
4964
## Testing
5065

5166
The project uses [XUnit](https://xunit.github.io) as unit testing framework.

0 commit comments

Comments
 (0)