当我使用Windows 10在docker-desktop kubernetes环境上创建服务帐户时
builder.ConfigureLogging((context, b) => {
b.AddConfiguration(context.Configuration.GetSection("Logging"));
Console.WriteLine($"App Insight key is {context.Configuration["ApplicationInsights:InstrumentationKey"]}");
b.AddApplicationInsightsWebJobs(o => o.InstrumentationKey = context.Configuration["ApplicationInsights:InstrumentationKey"]);
});
如果我运行以下命令,它将返回“是”
kubectl create serviceaccount test -n test-namespace
但是如果我在云托管的kubernetes集群上的安装程序上运行相同的命令,它将返回“否”
设置之间有什么区别?我试图限制对本地群集的控制。