Skip to content

Commit

Permalink
connect to GCP GKE from local machine (#92)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mac2000 authored and brendandburns committed Feb 13, 2018
1 parent a5f0e06 commit 4f80289
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4f80289

Please sign in to comment.