Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I have never done anything with k8 before so please bear with me!
I am trying to create a simple C# console app to test this nuget package out. I have access to the k8 cluster I want to use, but have only accessed it via PowerShell by logging with a user's password when the ssh in PowerShell prompts me i.e.:
From there, I can setup the proxy to localhost:8080 and start accessing the data from the various api URLs via curl requests i.e.
curl localhost:8080/api/v1/pods
I'm wondering how I can use this c# library and do the same type of thing in my console app? I see the
var config = KubernetesClientConfiguration.BuildDefaultConfig( );
in the startup guide, but this is failing with a "YamlDotNet.Core.SemanticErrorException: 'While parsing a block mapping, did not find expected key.' exception
NOTE: I do have a kubeconfig file on my local hard drive in: C:\Users\my_name.kube\config which I populated with exactly what the more ~/.kube/config command in PowerShell provided. This includes what looks like all the necessary certificate data.
Hoping to see if this remote access via this library is even possible ... thank you!
Beta Was this translation helpful? Give feedback.
All reactions