kubernetes服务帐户权限

时间:2020-06-11 19:20:20

标签: kubernetes

当我使用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集群上的安装程序上运行相同的命令,它将返回“否”

设置之间有什么区别?我试图限制对本地群集的控制。

0 个答案:

没有答案