微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

KubeletExtraArgs在GO NodeRegistrationOptions对象中支持什么所有参数?

如何解决KubeletExtraArgs在GO NodeRegistrationOptions对象中支持什么所有参数?

我正在使用kubeadm通过配置文件安装kubernetes。

以下是go语言中“ NodeRegistrationoptions”结构的类型。我想知道“ KubeletExtraArgs”支持的所有药品吗?

我发现节点标签和污点注册等选项很少。但是我想从文档中知道它支持的所有参数是什么?

如果您有任何链接,请分享

From go docuementation,type NodeRegistrationoptions struct {

    // Name is the `.Metadata.Name` field of the Node API object that will be created in this `kubeadm init` or `kubeadm join` operation.
    // This field is also used in the CommonName field of the kubelet's client certificate to the API server.
    // Defaults to the hostname of the node if not provided.
    Name string `json:"name,omitempty"`

    // CRISocket is used to retrieve container runtime info. This information will be annotated to the Node API object,for later re-use
    CRISocket string `json:"criSocket,omitempty"`

    // Taints specifies the taints the Node API object should be registered with. If this field is unset,i.e. nil,in the `kubeadm init` process
    // it will be defaulted to []v1.Taint{'node-role.kubernetes.io/master=""'}. If you don't want to taint your control-plane node,set this field to an
    // empty slice,i.e. `taints: []` in the YAML file. This field is solely used for Node registration.
    Taints []v1.Taint `json:"taints,omitempty"`

    // KubeletExtraArgs passes through extra arguments to the kubelet. The arguments here are passed to the kubelet command line via the environment file
    // kubeadm writes at runtime for the kubelet to source. This overrides the generic base-level configuration in the kubelet-config-1.X ConfigMap
    // Flags have higher priority when parsing. These values are local and specific to the node kubeadm is executing on.
    KubeletExtraArgs map[string]string `json:"kubeletExtraArgs,omitempty"`
}

https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta1

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。