Class GatewayConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.GatewayConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<GatewayConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class GatewayConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<GatewayConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
GatewayConfig holds node gateway-related parsed config file parameters and command-line overrides- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GatewayConfig()No args constructor for use in serializationGatewayConfig(String ipForwarding, IPv4GatewayConfig ipv4, IPv6GatewayConfig ipv6, Boolean routingViaHost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GatewayConfigBuilderedit()Map<String,Object>getAdditionalProperties()StringgetIpForwarding()ipForwarding controls IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex).IPv4GatewayConfiggetIpv4()GatewayConfig holds node gateway-related parsed config file parameters and command-line overridesIPv6GatewayConfiggetIpv6()GatewayConfig holds node gateway-related parsed config file parameters and command-line overridesBooleangetRoutingViaHost()routingViaHost allows pod egress traffic to exit via the ovn-k8s-mp0 management port into the host before sending it out.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetIpForwarding(String ipForwarding)ipForwarding controls IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex).voidsetIpv4(IPv4GatewayConfig ipv4)GatewayConfig holds node gateway-related parsed config file parameters and command-line overridesvoidsetIpv6(IPv6GatewayConfig ipv6)GatewayConfig holds node gateway-related parsed config file parameters and command-line overridesvoidsetRoutingViaHost(Boolean routingViaHost)routingViaHost allows pod egress traffic to exit via the ovn-k8s-mp0 management port into the host before sending it out.GatewayConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
GatewayConfig
public GatewayConfig()
No args constructor for use in serialization
-
GatewayConfig
public GatewayConfig(String ipForwarding, IPv4GatewayConfig ipv4, IPv6GatewayConfig ipv6, Boolean routingViaHost)
-
-
Method Detail
-
getIpForwarding
public String getIpForwarding()
ipForwarding controls IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex). By default this is set to Restricted, and Kubernetes related traffic is still forwarded appropriately, but other IP traffic will not be routed by the OCP node. If there is a desire to allow the host to forward traffic across OVN-Kubernetes managed interfaces, then set this field to "Global". The supported values are "Restricted" and "Global".
-
setIpForwarding
public void setIpForwarding(String ipForwarding)
ipForwarding controls IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex). By default this is set to Restricted, and Kubernetes related traffic is still forwarded appropriately, but other IP traffic will not be routed by the OCP node. If there is a desire to allow the host to forward traffic across OVN-Kubernetes managed interfaces, then set this field to "Global". The supported values are "Restricted" and "Global".
-
getIpv4
public IPv4GatewayConfig getIpv4()
GatewayConfig holds node gateway-related parsed config file parameters and command-line overrides
-
setIpv4
public void setIpv4(IPv4GatewayConfig ipv4)
GatewayConfig holds node gateway-related parsed config file parameters and command-line overrides
-
getIpv6
public IPv6GatewayConfig getIpv6()
GatewayConfig holds node gateway-related parsed config file parameters and command-line overrides
-
setIpv6
public void setIpv6(IPv6GatewayConfig ipv6)
GatewayConfig holds node gateway-related parsed config file parameters and command-line overrides
-
getRoutingViaHost
public Boolean getRoutingViaHost()
routingViaHost allows pod egress traffic to exit via the ovn-k8s-mp0 management port into the host before sending it out. If this is not set, traffic will always egress directly from OVN to outside without touching the host stack. Setting this to true means hardware offload will not be supported. Default is false if GatewayConfig is specified.
-
setRoutingViaHost
public void setRoutingViaHost(Boolean routingViaHost)
routingViaHost allows pod egress traffic to exit via the ovn-k8s-mp0 management port into the host before sending it out. If this is not set, traffic will always egress directly from OVN to outside without touching the host stack. Setting this to true means hardware offload will not be supported. Default is false if GatewayConfig is specified.
-
edit
public GatewayConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<GatewayConfigBuilder>
-
toBuilder
public GatewayConfigBuilder toBuilder()
-
-