Skip to content

Commit 4f80289

Browse files
mac2000brendandburns
authored andcommitted
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
1 parent a5f0e06 commit 4f80289

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

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

49+
## Known issues
50+
51+
While preferred way of connecting to a remote cluster from local machine is:
52+
53+
```
54+
var config = KubernetesClientConfiguration.BuildConfigFromConfigFile();
55+
var client = new Kubernetes(config);
56+
```
57+
58+
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:
59+
60+
```bash
61+
$ kubectl proxy
62+
Starting to serve on 127.0.0.1:8001
63+
```
64+
65+
and changing config:
66+
67+
```csharp
68+
var config = new KubernetesClientConfiguration { Host = "http://127.0.0.1:8001" };
69+
```
70+
71+
Notice that this is a workaround and is not recommended for production use
72+
4973
## Testing
5074

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

0 commit comments

Comments
 (0)