From 0a91f1598bb615f981284810dd5250ffe3598446 Mon Sep 17 00:00:00 2001 From: Marchenko Alexandr Date: Wed, 7 Feb 2018 09:27:45 +0200 Subject: [PATCH] connect to GCP GKE from local machine explanation of how to connect from lacal machine to Google Cloud Kubernetes without headache, close #91 --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index e214a5875..537fc0f28 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,21 @@ cd csharp\examples\simple dotnet run ``` +## Connecting to GCP GKE from local machine + +Start proxy to access kubernetes cluster: + +```bash +$ kubectl proxy +Starting to serve on 127.0.0.1:8001 +``` + +In code use following config: + +```csharp +var config = new KubernetesClientConfiguration { Host = "http://127.0.0.1:8001" }; +``` + ## Testing The project uses [XUnit](https://xunit.github.io) as unit testing framework.