mirror of https://github.com/kubernetes/kops.git
parent
23d97fc950
commit
44d9a30f68
|
@ -218,8 +218,9 @@ type KubeletConfigSpec struct {
|
|||
// maxPods is the number of pods that can run on this Kubelet.
|
||||
MaxPods *int32 `json:"maxPods,omitempty" flag:"max-pods"`
|
||||
|
||||
//// nvidiaGPUs is the number of NVIDIA GPU devices on this node.
|
||||
//NvidiaGPUs int32 `json:"nvidiaGPUs"`
|
||||
// nvidiaGPUs is the number of NVIDIA GPU devices on this node.
|
||||
NvidiaGPUs int32 `json:"nvidiaGPUs,omitempty" flag:"experimental-nvidia-gpus"`
|
||||
|
||||
//// dockerExecHandlerName is the handler to use when executing a command
|
||||
//// in a container. Valid values are 'native' and 'nsenter'. Defaults to
|
||||
//// 'native'.
|
||||
|
|
|
@ -217,8 +217,9 @@ type KubeletConfigSpec struct {
|
|||
// maxPods is the number of pods that can run on this Kubelet.
|
||||
MaxPods *int32 `json:"maxPods,omitempty" flag:"max-pods"`
|
||||
|
||||
//// nvidiaGPUs is the number of NVIDIA GPU devices on this node.
|
||||
//NvidiaGPUs int32 `json:"nvidiaGPUs"`
|
||||
// nvidiaGPUs is the number of NVIDIA GPU devices on this node.
|
||||
NvidiaGPUs int32 `json:"nvidiaGPUs,omitempty" flag:"experimental-nvidia-gpus"`
|
||||
|
||||
//// dockerExecHandlerName is the handler to use when executing a command
|
||||
//// in a container. Valid values are 'native' and 'nsenter'. Defaults to
|
||||
//// 'native'.
|
||||
|
|
|
@ -1177,6 +1177,7 @@ func autoConvert_v1alpha1_KubeletConfigSpec_To_kops_KubeletConfigSpec(in *Kubele
|
|||
out.HairpinMode = in.HairpinMode
|
||||
out.BabysitDaemons = in.BabysitDaemons
|
||||
out.MaxPods = in.MaxPods
|
||||
out.NvidiaGPUs = in.NvidiaGPUs
|
||||
out.PodCIDR = in.PodCIDR
|
||||
out.ReconcileCIDR = in.ReconcileCIDR
|
||||
out.RegisterSchedulable = in.RegisterSchedulable
|
||||
|
@ -1213,6 +1214,7 @@ func autoConvert_kops_KubeletConfigSpec_To_v1alpha1_KubeletConfigSpec(in *kops.K
|
|||
out.HairpinMode = in.HairpinMode
|
||||
out.BabysitDaemons = in.BabysitDaemons
|
||||
out.MaxPods = in.MaxPods
|
||||
out.NvidiaGPUs = in.NvidiaGPUs
|
||||
out.PodCIDR = in.PodCIDR
|
||||
out.ReconcileCIDR = in.ReconcileCIDR
|
||||
out.RegisterSchedulable = in.RegisterSchedulable
|
||||
|
|
|
@ -81,6 +81,9 @@ type KubeletConfigSpec struct {
|
|||
// maxPods is the number of pods that can run on this Kubelet.
|
||||
MaxPods *int32 `json:"maxPods,omitempty" flag:"max-pods"`
|
||||
|
||||
// nvidiaGPUs is the number of NVIDIA GPU devices on this node.
|
||||
NvidiaGPUs int32 `json:"nvidiaGPUs,omitempty" flag:"experimental-nvidia-gpus"`
|
||||
|
||||
// The CIDR to use for pod IP addresses, only used in standalone mode.
|
||||
// In cluster mode, this is obtained from the master.
|
||||
PodCIDR string `json:"podCIDR,omitempty" flag:"pod-cidr"`
|
||||
|
|
Loading…
Reference in New Issue