From 4f80289b8114b32a5b5ab9c4ca12bde925bb6086 Mon Sep 17 00:00:00 2001 From: Marchenko Alexandr Date: Tue, 13 Feb 2018 16:43:35 +0200 Subject: [PATCH] connect to GCP GKE from local machine (#92) * connect to GCP GKE from local machine explanation of how to connect from lacal machine to Google Cloud Kubernetes without headache, close #91 * connect to cluster from a local machine add preferred way of connecting to cluster, add alternative way with proxy for non supported auth providers * known issues and its workarounds --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index e214a5875..c04527721 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,30 @@ cd csharp\examples\simple dotnet run ``` +## Known issues + +While preferred way of connecting to a remote cluster from local machine is: + +``` +var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(); +var client = new Kubernetes(config); +``` + +Not all auth providers are supported at moment [#91](https://github.com/kubernetes-client/csharp/issues/91#issuecomment-362920478), but you still can connect to cluster by starting proxy: + +```bash +$ kubectl proxy +Starting to serve on 127.0.0.1:8001 +``` + +and changing config: + +```csharp +var config = new KubernetesClientConfiguration { Host = "http://127.0.0.1:8001" }; +``` + +Notice that this is a workaround and is not recommended for production use + ## Testing The project uses [XUnit](https://xunit.github.io) as unit testing framework.