mirror of
https://github.com/rancher/types.git
synced 2025-08-30 19:23:06 +00:00
Add fail swap on option to kubelet in rke
This commit is contained in:
parent
3c50ca8493
commit
bfd6a6afc4
@ -129,6 +129,8 @@ type KubeletService struct {
|
||||
InfraContainerImage string `yaml:"infra_container_image" json:"infraContainerImage,omitempty"`
|
||||
// Cluster DNS service ip
|
||||
ClusterDNSServer string `yaml:"cluster_dns_server" json:"clusterDnsServer,omitempty"`
|
||||
// Fail if swap is enabled
|
||||
FailSwapOn bool `yaml:"fail_swap_on" json:"failSwapOn,omitempty"`
|
||||
}
|
||||
|
||||
type KubeproxyService struct {
|
||||
|
@ -5,6 +5,7 @@ const (
|
||||
KubeletServiceFieldClusterDNSServer = "clusterDnsServer"
|
||||
KubeletServiceFieldClusterDomain = "clusterDomain"
|
||||
KubeletServiceFieldExtraArgs = "extraArgs"
|
||||
KubeletServiceFieldFailSwapOn = "failSwapOn"
|
||||
KubeletServiceFieldImage = "image"
|
||||
KubeletServiceFieldInfraContainerImage = "infraContainerImage"
|
||||
)
|
||||
@ -13,6 +14,7 @@ type KubeletService struct {
|
||||
ClusterDNSServer string `json:"clusterDnsServer,omitempty"`
|
||||
ClusterDomain string `json:"clusterDomain,omitempty"`
|
||||
ExtraArgs map[string]string `json:"extraArgs,omitempty"`
|
||||
FailSwapOn *bool `json:"failSwapOn,omitempty"`
|
||||
Image string `json:"image,omitempty"`
|
||||
InfraContainerImage string `json:"infraContainerImage,omitempty"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user