mirror of https://github.com/kubernetes/kops.git
Set FELIX_IPTABLESBACKEND for Calico and Canal
This commit is contained in:
parent
11cec04bab
commit
dd69274cf2
|
@ -2376,6 +2376,10 @@ spec:
|
||||||
ipipMode:
|
ipipMode:
|
||||||
description: IPIPMode is mode for CALICO_IPV4POOL_IPIP
|
description: IPIPMode is mode for CALICO_IPV4POOL_IPIP
|
||||||
type: string
|
type: string
|
||||||
|
iptablesBackend:
|
||||||
|
description: 'IptablesBackend controls which variant of iptables
|
||||||
|
binary Felix uses Default: Legacy (other options: NFT)'
|
||||||
|
type: string
|
||||||
logSeverityScreen:
|
logSeverityScreen:
|
||||||
description: 'LogSeverityScreen lets us set the desired log
|
description: 'LogSeverityScreen lets us set the desired log
|
||||||
level. (Default: info)'
|
level. (Default: info)'
|
||||||
|
@ -2441,6 +2445,10 @@ spec:
|
||||||
NOT add the default ACCEPT traffic rules to the iptables FORWARD
|
NOT add the default ACCEPT traffic rules to the iptables FORWARD
|
||||||
chain
|
chain
|
||||||
type: boolean
|
type: boolean
|
||||||
|
iptablesBackend:
|
||||||
|
description: 'IptablesBackend controls which variant of iptables
|
||||||
|
binary Felix uses Default: Legacy (other options: NFT)'
|
||||||
|
type: string
|
||||||
logSeveritySys:
|
logSeveritySys:
|
||||||
description: 'LogSeveritySys the severity to set for logs which
|
description: 'LogSeveritySys the severity to set for logs which
|
||||||
are sent to syslog Default: INFO (other options: DEBUG, WARNING,
|
are sent to syslog Default: INFO (other options: DEBUG, WARNING,
|
||||||
|
|
|
@ -94,6 +94,9 @@ type CalicoNetworkingSpec struct {
|
||||||
PrometheusProcessMetricsEnabled bool `json:"prometheusProcessMetricsEnabled,omitempty"`
|
PrometheusProcessMetricsEnabled bool `json:"prometheusProcessMetricsEnabled,omitempty"`
|
||||||
// MajorVersion is the version of Calico to use
|
// MajorVersion is the version of Calico to use
|
||||||
MajorVersion string `json:"majorVersion,omitempty"`
|
MajorVersion string `json:"majorVersion,omitempty"`
|
||||||
|
// IptablesBackend controls which variant of iptables binary Felix uses
|
||||||
|
// Default: Legacy (other options: NFT)
|
||||||
|
IptablesBackend string `json:"iptablesBackend,omitempty"`
|
||||||
// IPIPMode is mode for CALICO_IPV4POOL_IPIP
|
// IPIPMode is mode for CALICO_IPV4POOL_IPIP
|
||||||
IPIPMode string `json:"ipipMode,omitempty"`
|
IPIPMode string `json:"ipipMode,omitempty"`
|
||||||
// TyphaPrometheusMetricsEnabled enables Prometheus metrics collection from Typha
|
// TyphaPrometheusMetricsEnabled enables Prometheus metrics collection from Typha
|
||||||
|
@ -119,6 +122,9 @@ type CanalNetworkingSpec struct {
|
||||||
// DisableFlannelForwardRules configures Flannel to NOT add the
|
// DisableFlannelForwardRules configures Flannel to NOT add the
|
||||||
// default ACCEPT traffic rules to the iptables FORWARD chain
|
// default ACCEPT traffic rules to the iptables FORWARD chain
|
||||||
DisableFlannelForwardRules bool `json:"disableFlannelForwardRules,omitempty"`
|
DisableFlannelForwardRules bool `json:"disableFlannelForwardRules,omitempty"`
|
||||||
|
// IptablesBackend controls which variant of iptables binary Felix uses
|
||||||
|
// Default: Legacy (other options: NFT)
|
||||||
|
IptablesBackend string `json:"iptablesBackend,omitempty"`
|
||||||
// LogSeveritySys the severity to set for logs which are sent to syslog
|
// LogSeveritySys the severity to set for logs which are sent to syslog
|
||||||
// Default: INFO (other options: DEBUG, WARNING, ERROR, CRITICAL, NONE)
|
// Default: INFO (other options: DEBUG, WARNING, ERROR, CRITICAL, NONE)
|
||||||
LogSeveritySys string `json:"logSeveritySys,omitempty"`
|
LogSeveritySys string `json:"logSeveritySys,omitempty"`
|
||||||
|
|
|
@ -94,6 +94,9 @@ type CalicoNetworkingSpec struct {
|
||||||
PrometheusProcessMetricsEnabled bool `json:"prometheusProcessMetricsEnabled,omitempty"`
|
PrometheusProcessMetricsEnabled bool `json:"prometheusProcessMetricsEnabled,omitempty"`
|
||||||
// MajorVersion is the version of Calico to use
|
// MajorVersion is the version of Calico to use
|
||||||
MajorVersion string `json:"majorVersion,omitempty"`
|
MajorVersion string `json:"majorVersion,omitempty"`
|
||||||
|
// IptablesBackend controls which variant of iptables binary Felix uses
|
||||||
|
// Default: Legacy (other options: NFT)
|
||||||
|
IptablesBackend string `json:"iptablesBackend,omitempty"`
|
||||||
// IPIPMode is mode for CALICO_IPV4POOL_IPIP
|
// IPIPMode is mode for CALICO_IPV4POOL_IPIP
|
||||||
IPIPMode string `json:"ipipMode,omitempty"`
|
IPIPMode string `json:"ipipMode,omitempty"`
|
||||||
// TyphaPrometheusMetricsEnabled enables Prometheus metrics collection from Typha
|
// TyphaPrometheusMetricsEnabled enables Prometheus metrics collection from Typha
|
||||||
|
@ -119,6 +122,9 @@ type CanalNetworkingSpec struct {
|
||||||
// DisableFlannelForwardRules configures Flannel to NOT add the
|
// DisableFlannelForwardRules configures Flannel to NOT add the
|
||||||
// default ACCEPT traffic rules to the iptables FORWARD chain
|
// default ACCEPT traffic rules to the iptables FORWARD chain
|
||||||
DisableFlannelForwardRules bool `json:"disableFlannelForwardRules,omitempty"`
|
DisableFlannelForwardRules bool `json:"disableFlannelForwardRules,omitempty"`
|
||||||
|
// IptablesBackend controls which variant of iptables binary Felix uses
|
||||||
|
// Default: Legacy (other options: NFT)
|
||||||
|
IptablesBackend string `json:"iptablesBackend,omitempty"`
|
||||||
// LogSeveritySys the severity to set for logs which are sent to syslog
|
// LogSeveritySys the severity to set for logs which are sent to syslog
|
||||||
// Default: INFO (other options: DEBUG, WARNING, ERROR, CRITICAL, NONE)
|
// Default: INFO (other options: DEBUG, WARNING, ERROR, CRITICAL, NONE)
|
||||||
LogSeveritySys string `json:"logSeveritySys,omitempty"`
|
LogSeveritySys string `json:"logSeveritySys,omitempty"`
|
||||||
|
|
|
@ -1137,6 +1137,7 @@ func autoConvert_v1alpha1_CalicoNetworkingSpec_To_kops_CalicoNetworkingSpec(in *
|
||||||
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
||||||
out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled
|
out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled
|
||||||
out.MajorVersion = in.MajorVersion
|
out.MajorVersion = in.MajorVersion
|
||||||
|
out.IptablesBackend = in.IptablesBackend
|
||||||
out.IPIPMode = in.IPIPMode
|
out.IPIPMode = in.IPIPMode
|
||||||
out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled
|
out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled
|
||||||
out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort
|
out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort
|
||||||
|
@ -1158,6 +1159,7 @@ func autoConvert_kops_CalicoNetworkingSpec_To_v1alpha1_CalicoNetworkingSpec(in *
|
||||||
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
||||||
out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled
|
out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled
|
||||||
out.MajorVersion = in.MajorVersion
|
out.MajorVersion = in.MajorVersion
|
||||||
|
out.IptablesBackend = in.IptablesBackend
|
||||||
out.IPIPMode = in.IPIPMode
|
out.IPIPMode = in.IPIPMode
|
||||||
out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled
|
out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled
|
||||||
out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort
|
out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort
|
||||||
|
@ -1174,6 +1176,7 @@ func autoConvert_v1alpha1_CanalNetworkingSpec_To_kops_CanalNetworkingSpec(in *Ca
|
||||||
out.ChainInsertMode = in.ChainInsertMode
|
out.ChainInsertMode = in.ChainInsertMode
|
||||||
out.DefaultEndpointToHostAction = in.DefaultEndpointToHostAction
|
out.DefaultEndpointToHostAction = in.DefaultEndpointToHostAction
|
||||||
out.DisableFlannelForwardRules = in.DisableFlannelForwardRules
|
out.DisableFlannelForwardRules = in.DisableFlannelForwardRules
|
||||||
|
out.IptablesBackend = in.IptablesBackend
|
||||||
out.LogSeveritySys = in.LogSeveritySys
|
out.LogSeveritySys = in.LogSeveritySys
|
||||||
out.MTU = in.MTU
|
out.MTU = in.MTU
|
||||||
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
||||||
|
@ -1195,6 +1198,7 @@ func autoConvert_kops_CanalNetworkingSpec_To_v1alpha1_CanalNetworkingSpec(in *ko
|
||||||
out.ChainInsertMode = in.ChainInsertMode
|
out.ChainInsertMode = in.ChainInsertMode
|
||||||
out.DefaultEndpointToHostAction = in.DefaultEndpointToHostAction
|
out.DefaultEndpointToHostAction = in.DefaultEndpointToHostAction
|
||||||
out.DisableFlannelForwardRules = in.DisableFlannelForwardRules
|
out.DisableFlannelForwardRules = in.DisableFlannelForwardRules
|
||||||
|
out.IptablesBackend = in.IptablesBackend
|
||||||
out.LogSeveritySys = in.LogSeveritySys
|
out.LogSeveritySys = in.LogSeveritySys
|
||||||
out.MTU = in.MTU
|
out.MTU = in.MTU
|
||||||
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
||||||
|
|
|
@ -94,6 +94,9 @@ type CalicoNetworkingSpec struct {
|
||||||
PrometheusProcessMetricsEnabled bool `json:"prometheusProcessMetricsEnabled,omitempty"`
|
PrometheusProcessMetricsEnabled bool `json:"prometheusProcessMetricsEnabled,omitempty"`
|
||||||
// MajorVersion is the version of Calico to use
|
// MajorVersion is the version of Calico to use
|
||||||
MajorVersion string `json:"majorVersion,omitempty"`
|
MajorVersion string `json:"majorVersion,omitempty"`
|
||||||
|
// IptablesBackend controls which variant of iptables binary Felix uses
|
||||||
|
// Default: Legacy (other options: NFT)
|
||||||
|
IptablesBackend string `json:"iptablesBackend,omitempty"`
|
||||||
// IPIPMode is mode for CALICO_IPV4POOL_IPIP
|
// IPIPMode is mode for CALICO_IPV4POOL_IPIP
|
||||||
IPIPMode string `json:"ipipMode,omitempty"`
|
IPIPMode string `json:"ipipMode,omitempty"`
|
||||||
// TyphaPrometheusMetricsEnabled enables Prometheus metrics collection from Typha
|
// TyphaPrometheusMetricsEnabled enables Prometheus metrics collection from Typha
|
||||||
|
@ -119,6 +122,9 @@ type CanalNetworkingSpec struct {
|
||||||
// DisableFlannelForwardRules configures Flannel to NOT add the
|
// DisableFlannelForwardRules configures Flannel to NOT add the
|
||||||
// default ACCEPT traffic rules to the iptables FORWARD chain
|
// default ACCEPT traffic rules to the iptables FORWARD chain
|
||||||
DisableFlannelForwardRules bool `json:"disableFlannelForwardRules,omitempty"`
|
DisableFlannelForwardRules bool `json:"disableFlannelForwardRules,omitempty"`
|
||||||
|
// IptablesBackend controls which variant of iptables binary Felix uses
|
||||||
|
// Default: Legacy (other options: NFT)
|
||||||
|
IptablesBackend string `json:"iptablesBackend,omitempty"`
|
||||||
// LogSeveritySys the severity to set for logs which are sent to syslog
|
// LogSeveritySys the severity to set for logs which are sent to syslog
|
||||||
// Default: INFO (other options: DEBUG, WARNING, ERROR, CRITICAL, NONE)
|
// Default: INFO (other options: DEBUG, WARNING, ERROR, CRITICAL, NONE)
|
||||||
LogSeveritySys string `json:"logSeveritySys,omitempty"`
|
LogSeveritySys string `json:"logSeveritySys,omitempty"`
|
||||||
|
|
|
@ -1179,6 +1179,7 @@ func autoConvert_v1alpha2_CalicoNetworkingSpec_To_kops_CalicoNetworkingSpec(in *
|
||||||
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
||||||
out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled
|
out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled
|
||||||
out.MajorVersion = in.MajorVersion
|
out.MajorVersion = in.MajorVersion
|
||||||
|
out.IptablesBackend = in.IptablesBackend
|
||||||
out.IPIPMode = in.IPIPMode
|
out.IPIPMode = in.IPIPMode
|
||||||
out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled
|
out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled
|
||||||
out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort
|
out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort
|
||||||
|
@ -1200,6 +1201,7 @@ func autoConvert_kops_CalicoNetworkingSpec_To_v1alpha2_CalicoNetworkingSpec(in *
|
||||||
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
||||||
out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled
|
out.PrometheusProcessMetricsEnabled = in.PrometheusProcessMetricsEnabled
|
||||||
out.MajorVersion = in.MajorVersion
|
out.MajorVersion = in.MajorVersion
|
||||||
|
out.IptablesBackend = in.IptablesBackend
|
||||||
out.IPIPMode = in.IPIPMode
|
out.IPIPMode = in.IPIPMode
|
||||||
out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled
|
out.TyphaPrometheusMetricsEnabled = in.TyphaPrometheusMetricsEnabled
|
||||||
out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort
|
out.TyphaPrometheusMetricsPort = in.TyphaPrometheusMetricsPort
|
||||||
|
@ -1216,6 +1218,7 @@ func autoConvert_v1alpha2_CanalNetworkingSpec_To_kops_CanalNetworkingSpec(in *Ca
|
||||||
out.ChainInsertMode = in.ChainInsertMode
|
out.ChainInsertMode = in.ChainInsertMode
|
||||||
out.DefaultEndpointToHostAction = in.DefaultEndpointToHostAction
|
out.DefaultEndpointToHostAction = in.DefaultEndpointToHostAction
|
||||||
out.DisableFlannelForwardRules = in.DisableFlannelForwardRules
|
out.DisableFlannelForwardRules = in.DisableFlannelForwardRules
|
||||||
|
out.IptablesBackend = in.IptablesBackend
|
||||||
out.LogSeveritySys = in.LogSeveritySys
|
out.LogSeveritySys = in.LogSeveritySys
|
||||||
out.MTU = in.MTU
|
out.MTU = in.MTU
|
||||||
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
||||||
|
@ -1237,6 +1240,7 @@ func autoConvert_kops_CanalNetworkingSpec_To_v1alpha2_CanalNetworkingSpec(in *ko
|
||||||
out.ChainInsertMode = in.ChainInsertMode
|
out.ChainInsertMode = in.ChainInsertMode
|
||||||
out.DefaultEndpointToHostAction = in.DefaultEndpointToHostAction
|
out.DefaultEndpointToHostAction = in.DefaultEndpointToHostAction
|
||||||
out.DisableFlannelForwardRules = in.DisableFlannelForwardRules
|
out.DisableFlannelForwardRules = in.DisableFlannelForwardRules
|
||||||
|
out.IptablesBackend = in.IptablesBackend
|
||||||
out.LogSeveritySys = in.LogSeveritySys
|
out.LogSeveritySys = in.LogSeveritySys
|
||||||
out.MTU = in.MTU
|
out.MTU = in.MTU
|
||||||
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
out.PrometheusGoMetricsEnabled = in.PrometheusGoMetricsEnabled
|
||||||
|
|
|
@ -721,6 +721,9 @@ spec:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: canal-config
|
name: canal-config
|
||||||
key: veth_mtu
|
key: veth_mtu
|
||||||
|
# Set Felix iptables binary variant, Legacy or NFT
|
||||||
|
- name: FELIX_IPTABLESBACKEND
|
||||||
|
value: "{{- or .Networking.Canal.IptablesBackend "Legacy" }}"
|
||||||
# Disable IPv6 on Kubernetes.
|
# Disable IPv6 on Kubernetes.
|
||||||
- name: FELIX_IPV6SUPPORT
|
- name: FELIX_IPV6SUPPORT
|
||||||
value: "false"
|
value: "false"
|
||||||
|
|
|
@ -819,6 +819,9 @@ spec:
|
||||||
value: "true"
|
value: "true"
|
||||||
|
|
||||||
# kops additions
|
# kops additions
|
||||||
|
# Set Felix iptables binary variant, Legacy or NFT
|
||||||
|
- name: FELIX_IPTABLESBACKEND
|
||||||
|
value: "{{- or .Networking.Calico.IptablesBackend "Legacy" }}"
|
||||||
# Set to enable the experimental Prometheus metrics server
|
# Set to enable the experimental Prometheus metrics server
|
||||||
- name: FELIX_PROMETHEUSMETRICSENABLED
|
- name: FELIX_PROMETHEUSMETRICSENABLED
|
||||||
value: "{{- or .Networking.Calico.PrometheusMetricsEnabled "false" }}"
|
value: "{{- or .Networking.Calico.PrometheusMetricsEnabled "false" }}"
|
||||||
|
|
|
@ -828,7 +828,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons {
|
||||||
"k8s-1.6": "2.6.9-kops.1",
|
"k8s-1.6": "2.6.9-kops.1",
|
||||||
"k8s-1.7": "2.6.12-kops.1",
|
"k8s-1.7": "2.6.12-kops.1",
|
||||||
"k8s-1.7-v3": "3.8.0-kops.2",
|
"k8s-1.7-v3": "3.8.0-kops.2",
|
||||||
"k8s-1.12": "3.9.3-kops.1",
|
"k8s-1.12": "3.9.3-kops.2",
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -912,7 +912,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons {
|
||||||
"k8s-1.8": "2.6.7-kops.3",
|
"k8s-1.8": "2.6.7-kops.3",
|
||||||
"k8s-1.9": "3.2.3-kops.1",
|
"k8s-1.9": "3.2.3-kops.1",
|
||||||
"k8s-1.12": "3.7.4",
|
"k8s-1.12": "3.7.4",
|
||||||
"k8s-1.15": "3.10.1",
|
"k8s-1.15": "3.10.1-kops.2",
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
id := "pre-k8s-1.6"
|
id := "pre-k8s-1.6"
|
||||||
|
|
Loading…
Reference in New Issue