Adds extension methods for reading Kubernetes Configmaps and Secrets
Available on nuget. Run command
Install-Package Kubernetes.Configuration.Extensions
To use with DI just add the following.
.ConfigureAppConfiguration((hostingContext, config) =>
{
config.AddKubernetesConfigmap("app=testapp", reloadOnChange:true);
config.AddKubernetesSecret("app=testapp", reloadOnChange:true);
})
A label is required on the configmap since otherwise every configmap on the system will be fetched.