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