mirror of https://github.com/kubernetes/kops.git
Remove babysit-daemons flag from 1.7
This commit is contained in:
parent
1b2266dd40
commit
42ea0d4770
|
@ -217,7 +217,9 @@ type KubeletConfigSpec struct {
|
|||
// one must set --hairpin-mode=veth-flag, because bridge assumes the
|
||||
// existence of a container bridge named cbr0.
|
||||
HairpinMode string `json:"hairpinMode,omitempty" flag:"hairpin-mode"`
|
||||
|
||||
// The node has babysitter process monitoring docker and kubelet.
|
||||
// Removed as of 1.7
|
||||
BabysitDaemons *bool `json:"babysitDaemons,omitempty" flag:"babysit-daemons"`
|
||||
|
||||
// maxPods is the number of pods that can run on this Kubelet.
|
||||
|
|
|
@ -216,7 +216,9 @@ type KubeletConfigSpec struct {
|
|||
// one must set --hairpin-mode=veth-flag, because bridge assumes the
|
||||
// existence of a container bridge named cbr0.
|
||||
HairpinMode string `json:"hairpinMode,omitempty" flag:"hairpin-mode"`
|
||||
|
||||
// The node has babysitter process monitoring docker and kubelet.
|
||||
// Removed as of 1.7
|
||||
BabysitDaemons *bool `json:"babysitDaemons,omitempty" flag:"babysit-daemons"`
|
||||
|
||||
// maxPods is the number of pods that can run on this Kubelet.
|
||||
|
|
|
@ -81,7 +81,9 @@ type KubeletConfigSpec struct {
|
|||
// one must set --hairpin-mode=veth-flag, because bridge assumes the
|
||||
// existence of a container bridge named cbr0.
|
||||
HairpinMode string `json:"hairpinMode,omitempty" flag:"hairpin-mode"`
|
||||
|
||||
// The node has babysitter process monitoring docker and kubelet.
|
||||
// Removed as of 1.7
|
||||
BabysitDaemons *bool `json:"babysitDaemons,omitempty" flag:"babysit-daemons"`
|
||||
|
||||
// maxPods is the number of pods that can run on this Kubelet.
|
||||
|
|
|
@ -57,9 +57,13 @@ func (b *KubeletOptionsBuilder) BuildOptions(o interface{}) error {
|
|||
clusterSpec.Kubelet.LogLevel = fi.Int32(2)
|
||||
clusterSpec.Kubelet.ClusterDNS = ip.String()
|
||||
clusterSpec.Kubelet.ClusterDomain = clusterSpec.ClusterDNSDomain
|
||||
clusterSpec.Kubelet.BabysitDaemons = fi.Bool(true)
|
||||
clusterSpec.Kubelet.NonMasqueradeCIDR = clusterSpec.NonMasqueradeCIDR
|
||||
|
||||
if b.Context.IsKubernetesLT("1.7") {
|
||||
// babysit-daemons removed in 1.7
|
||||
clusterSpec.Kubelet.BabysitDaemons = fi.Bool(true)
|
||||
}
|
||||
|
||||
clusterSpec.MasterKubelet.RegisterSchedulable = fi.Bool(false)
|
||||
// Replace the CIDR with a CIDR allocated by KCM (the default, but included for clarity)
|
||||
// We _do_ allow debugging handlers, so we can do logs
|
||||
|
|
Loading…
Reference in New Issue