mirror of https://github.com/kubernetes/kops.git
Merge pull request #7429 from ReillyProcentive/issue-7390
Add support for netExtraArgs
This commit is contained in:
commit
013a167191
|
@ -110,6 +110,20 @@ spec:
|
|||
mtu: 8912
|
||||
```
|
||||
|
||||
### Configuring Weave Net EXTRA_ARGS
|
||||
|
||||
Weave allows you to pass command line arguments to weave by adding those arguments to the EXTRA_ARGS environmental variable.
|
||||
This can be used for debugging or for customizing the logging level of weave net.
|
||||
|
||||
```
|
||||
spec:
|
||||
networking:
|
||||
weave:
|
||||
netExtraArgs: "--log-level=info"
|
||||
```
|
||||
|
||||
Note that it is possible to break the cluster networking if flags are improperly used and as such this option should be used with caution.
|
||||
|
||||
### Configuring Weave network encryption
|
||||
|
||||
The Weave network encryption is configurable by creating a weave network secret password.
|
||||
|
|
|
@ -61,9 +61,10 @@ type KopeioNetworkingSpec struct {
|
|||
|
||||
// WeaveNetworkingSpec declares that we want Weave networking
|
||||
type WeaveNetworkingSpec struct {
|
||||
MTU *int32 `json:"mtu,omitempty"`
|
||||
ConnLimit *int32 `json:"connLimit,omitempty"`
|
||||
NoMasqLocal *int32 `json:"noMasqLocal,omitempty"`
|
||||
MTU *int32 `json:"mtu,omitempty"`
|
||||
ConnLimit *int32 `json:"connLimit,omitempty"`
|
||||
NoMasqLocal *int32 `json:"noMasqLocal,omitempty"`
|
||||
NetExtraArgs string `json:"netExtraArgs,omitempty"`
|
||||
}
|
||||
|
||||
// FlannelNetworkingSpec declares that we want Flannel networking
|
||||
|
|
|
@ -61,9 +61,10 @@ type KopeioNetworkingSpec struct {
|
|||
|
||||
// WeaveNetworkingSpec declares that we want Weave networking
|
||||
type WeaveNetworkingSpec struct {
|
||||
MTU *int32 `json:"mtu,omitempty"`
|
||||
ConnLimit *int32 `json:"connLimit,omitempty"`
|
||||
NoMasqLocal *int32 `json:"noMasqLocal,omitempty"`
|
||||
MTU *int32 `json:"mtu,omitempty"`
|
||||
ConnLimit *int32 `json:"connLimit,omitempty"`
|
||||
NoMasqLocal *int32 `json:"noMasqLocal,omitempty"`
|
||||
NetExtraArgs string `json:"netExtraArgs,omitempty"`
|
||||
}
|
||||
|
||||
// FlannelNetworkingSpec declares that we want Flannel networking
|
||||
|
|
|
@ -4538,6 +4538,7 @@ func autoConvert_v1alpha1_WeaveNetworkingSpec_To_kops_WeaveNetworkingSpec(in *We
|
|||
out.MTU = in.MTU
|
||||
out.ConnLimit = in.ConnLimit
|
||||
out.NoMasqLocal = in.NoMasqLocal
|
||||
out.NetExtraArgs = in.NetExtraArgs
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -4550,6 +4551,7 @@ func autoConvert_kops_WeaveNetworkingSpec_To_v1alpha1_WeaveNetworkingSpec(in *ko
|
|||
out.MTU = in.MTU
|
||||
out.ConnLimit = in.ConnLimit
|
||||
out.NoMasqLocal = in.NoMasqLocal
|
||||
out.NetExtraArgs = in.NetExtraArgs
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -61,9 +61,10 @@ type KopeioNetworkingSpec struct {
|
|||
|
||||
// WeaveNetworkingSpec declares that we want Weave networking
|
||||
type WeaveNetworkingSpec struct {
|
||||
MTU *int32 `json:"mtu,omitempty"`
|
||||
ConnLimit *int32 `json:"connLimit,omitempty"`
|
||||
NoMasqLocal *int32 `json:"noMasqLocal,omitempty"`
|
||||
MTU *int32 `json:"mtu,omitempty"`
|
||||
ConnLimit *int32 `json:"connLimit,omitempty"`
|
||||
NoMasqLocal *int32 `json:"noMasqLocal,omitempty"`
|
||||
NetExtraArgs string `json:"netExtraArgs,omitempty"`
|
||||
}
|
||||
|
||||
// FlannelNetworkingSpec declares that we want Flannel networking
|
||||
|
|
|
@ -4866,6 +4866,7 @@ func autoConvert_v1alpha2_WeaveNetworkingSpec_To_kops_WeaveNetworkingSpec(in *We
|
|||
out.MTU = in.MTU
|
||||
out.ConnLimit = in.ConnLimit
|
||||
out.NoMasqLocal = in.NoMasqLocal
|
||||
out.NetExtraArgs = in.NetExtraArgs
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -4878,6 +4879,7 @@ func autoConvert_kops_WeaveNetworkingSpec_To_v1alpha2_WeaveNetworkingSpec(in *ko
|
|||
out.MTU = in.MTU
|
||||
out.ConnLimit = in.ConnLimit
|
||||
out.NoMasqLocal = in.NoMasqLocal
|
||||
out.NetExtraArgs = in.NetExtraArgs
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -157,6 +157,10 @@ spec:
|
|||
- name: CONN_LIMIT
|
||||
value: "{{ .Networking.Weave.ConnLimit }}"
|
||||
{{- end }}
|
||||
{{- if .Networking.Weave.NetExtraArgs }}
|
||||
- name: EXTRA_ARGS
|
||||
value: "{{ .Networking.Weave.NetExtraArgs }}"
|
||||
{{- end }}
|
||||
{{- if WeaveSecret }}
|
||||
- name: WEAVE_PASSWORD
|
||||
valueFrom:
|
||||
|
|
|
@ -139,6 +139,10 @@ spec:
|
|||
- name: CONN_LIMIT
|
||||
value: "{{ .Networking.Weave.ConnLimit }}"
|
||||
{{- end }}
|
||||
{{- if .Networking.Weave.NetExtraArgs }}
|
||||
- name: EXTRA_ARGS
|
||||
value: "{{ .Networking.Weave.NetExtraArgs }}"
|
||||
{{- end }}
|
||||
{{- if WeaveSecret }}
|
||||
- name: WEAVE_PASSWORD
|
||||
valueFrom:
|
||||
|
|
|
@ -149,6 +149,10 @@ spec:
|
|||
- name: CONN_LIMIT
|
||||
value: "{{ .Networking.Weave.ConnLimit }}"
|
||||
{{- end }}
|
||||
{{- if .Networking.Weave.NetExtraArgs }}
|
||||
- name: EXTRA_ARGS
|
||||
value: "{{ .Networking.Weave.NetExtraArgs }}"
|
||||
{{- end }}
|
||||
{{- if WeaveSecret }}
|
||||
- name: WEAVE_PASSWORD
|
||||
valueFrom:
|
||||
|
|
|
@ -153,6 +153,10 @@ spec:
|
|||
- name: CONN_LIMIT
|
||||
value: "{{ .Networking.Weave.ConnLimit }}"
|
||||
{{- end }}
|
||||
{{- if .Networking.Weave.NetExtraArgs }}
|
||||
- name: EXTRA_ARGS
|
||||
value: "{{ .Networking.Weave.NetExtraArgs }}"
|
||||
{{- end }}
|
||||
{{- if WeaveSecret }}
|
||||
- name: WEAVE_PASSWORD
|
||||
valueFrom:
|
||||
|
|
Loading…
Reference in New Issue