【问题标题】:Set authentication-token-webhook-config-file设置 authentication-token-webhook-config-file
【发布时间】:2018-10-23 01:58:58
【问题描述】:

我的目标是设置应用程序代码保护应用程序。 为此,我需要在 Kubernetes api 服务器中设置 authentication-token-webhook-config-file 标志的值。

怎么做?

【问题讨论】:

标签: kubernetes azure-aks


【解决方案1】:

如果您正在寻找在现有集群上为kube-apiserver pod 添加选项键的方法,您只需要在主节点上编辑文件/etc/kubernetes/manifests/kube-apiserver.yaml

保存此文件后,kube-apiserver pod 会被kubelet 服务自动重启。

考虑到您提到的标志必须将配置文件的名称作为参数,请确保该文件存在于主节点文件系统上。

--authentication-token-webhook-config-file string
File with webhook configuration for token authentication in kubeconfig format. The API server will query the remote service to determine authentication for bearer tokens.

清单的目录由 kubelet 选项 --pod-manifest-path 定义,可以使用命令找到:

$ ps aux | grep kubelet

您可以在Kubernetes documentation中找到有关此类 pod 生命周期的更多信息

【讨论】:

    猜你喜欢
    • 2018-01-18
    • 1970-01-01
    • 1970-01-01
    • 2014-07-31
    • 2020-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多