@@ -27,8 +27,11 @@ type NodeConfig struct {
27
27
// DNSIP holds the IP
28
28
DNSIP string `json:"dnsIP"`
29
29
30
- // NetworkPluginName is a string specifying the networking plugin
31
- NetworkPluginName string `json:"networkPluginName"`
30
+ // Deprecated and maintained for backward compatibility, use NetworkConfig.NetworkPluginName instead
31
+ DeprecatedNetworkPluginName string `json:"networkPluginName,omitempty"`
32
+
33
+ // NetworkConfig provides network options for the node
34
+ NetworkConfig NodeNetworkConfig `json:"networkConfig"`
32
35
33
36
// VolumeDirectory is the directory that volumes will be stored under
34
37
VolumeDirectory string `json:"volumeDirectory"`
@@ -52,6 +55,14 @@ type NodeConfig struct {
52
55
KubeletArguments ExtendedArguments `json:"kubeletArguments,omitempty"`
53
56
}
54
57
58
+ // NodeNetworkConfig provides network options for the node
59
+ type NodeNetworkConfig struct {
60
+ // NetworkPluginName is a string specifying the networking plugin
61
+ NetworkPluginName string `json:"networkPluginName"`
62
+ // Maximum transmission unit for the network packets
63
+ MTU uint `json:"mtu"`
64
+ }
65
+
55
66
// DockerConfig holds Docker related configuration options.
56
67
type DockerConfig struct {
57
68
// ExecHandlerName is the name of the handler to use for executing
@@ -150,7 +161,7 @@ type MasterConfig struct {
150
161
RoutingConfig RoutingConfig `json:"routingConfig"`
151
162
152
163
// NetworkConfig to be passed to the compiled in network plugin
153
- NetworkConfig NetworkConfig `json:"networkConfig"`
164
+ NetworkConfig MasterNetworkConfig `json:"networkConfig"`
154
165
}
155
166
156
167
type ProjectConfig struct {
@@ -207,8 +218,8 @@ type RoutingConfig struct {
207
218
Subdomain string `json:"subdomain"`
208
219
}
209
220
210
- // NetworkConfig to be passed to the compiled in network plugin
211
- type NetworkConfig struct {
221
+ // MasterNetworkConfig to be passed to the compiled in network plugin
222
+ type MasterNetworkConfig struct {
212
223
NetworkPluginName string `json:"networkPluginName"`
213
224
ClusterNetworkCIDR string `json:"clusterNetworkCIDR"`
214
225
HostSubnetLength uint `json:"hostSubnetLength"`
0 commit comments