Skip to content

How to pass my .kubeconfig file with Kubernetes certificates, host name etc to controllers? #544

Answered by buehler
vvitkovsky asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Victor

Thank you for your interesst in this repo :)
The .kubeconfig used is the default (config in your userprofile). This is sufficient for most of the usecases (e.g running the operator in kubernetes).

Currently there is no possibility to setup your own kubernetes client (with an "official public api"). You can however (as workaround) use:

builder.Services.AddKubernetesOperator();
// prosa code, don't know the exact calls:
builder.Services.Remove<IKubernetesClient>;
builder.Services.AddSingleton<IKubernetesClient>(new KubernetesClient(...));

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vvitkovsky
Comment options

@vvitkovsky
Comment options

@buehler
Comment options

Answer selected by vvitkovsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants