Skip to content

Commit f87786f

Browse files
author
Deng Yun
authored
Merge pull request #212 from timdengyun/sync_ncp_4.1.0_confimap_release
Sync NCP 4.1.0 configmap yamls
2 parents 7a1d92a + 8a101b1 commit f87786f

File tree

2 files changed

+65
-61
lines changed

2 files changed

+65
-61
lines changed

Diff for: deploy/kubernetes/configmap.yaml

+33-31
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ data:
174174
# ALLOW_NAMESPACE_STRICT inherits the behaviors of ALLOW_NAMESPACE, and
175175
# also restricts service talk to resources outside the cluster. By default,
176176
# no baseline rule will be created and the cluster will assume the default
177-
# behavior as specified by the backend.
177+
# behavior as specified by the backend. The option is only supported on
178+
# Policy API.
178179
# Choices: <None> allow_cluster allow_namespace allow_namespace_strict
179180
#baseline_policy_type = <None>
180181
@@ -184,19 +185,6 @@ data:
184185
# using k8s event
185186
#enable_ncp_event = False
186187
187-
# Set this to True to enable multus to create multiple interfaces for one
188-
# pod. Requires policy_nsxapi set to True to take effect. If passthrough
189-
# interface is used as additional interface, user should deploy the network
190-
# device plugin to provide device allocation information for NCP. Pod
191-
# annotations with prefix "k8s.v1.cni.cncf.io" cannot be modified once pod
192-
# is realized. User defined IP will not be allocated from the Segment
193-
# IPPool. The "gateway" in NetworkAttachmentDefinition is not used to
194-
# configure secondary interfaces, as the default gateway of Pod is
195-
# configured by the primary CNI on the main network interface. User must
196-
# define IP and/or MAC if no "ipam" is configured. Only available if node
197-
# type is HOSTVM and not to be leveraged in conjunction with 3rd party CNI
198-
# plugin
199-
#enable_multus = False
200188
201189
# Set this to True to enable NSX restore support (only effective in NSX
202190
# Policy API mode).
@@ -341,11 +329,12 @@ data:
341329
#thumbprint = []
342330
343331
344-
# The time in seconds before aborting a HTTP connection to a NSX manager.
332+
# The time in seconds before aborting a HTTP connection to NSX manager.
333+
# Defaults to 10 seconds, minimum 5seconds.
345334
#http_timeout = 10
346335
347-
# The time in seconds before aborting a HTTP read response from a NSX
348-
# manager.
336+
# The time in seconds (minimum 10 seconds) before aborting a HTTP read
337+
# operation from NSX manager.
349338
#http_read_timeout = 180
350339
351340
# Maximum number of times to retry a HTTP connection.
@@ -372,6 +361,7 @@ data:
372361
#v6_subnet_prefix = 64
373362
374363
364+
375365
# Indicates whether distributed firewall DENY rules are logged.
376366
#log_dropped_traffic = False
377367
@@ -434,24 +424,35 @@ data:
434424
435425
436426
427+
# Option to use ip blocks in order when creating subnets. Default is set to
428+
# false. If set to false, a random ip block will be selected from container
429+
# ip blocks list. If set to true, first IP Block in the container_ip_blocks
430+
# list that has the capacity to allow the creation of subnet will be
431+
# selected. Note that if ip blocks were shared by multiple clusters then
432+
# the selection in order is not guranteed.
433+
#use_ip_blocks_in_order = False
434+
437435
# Name or ID of the container ip blocks that will be used for creating
438436
# subnets. If name, it must be unique. If policy_nsxapi is enabled, it also
439437
# support automatically creating the IP blocks. The definition is a comma
440438
# separated list: CIDR,CIDR,... Mixing different formats (e.g. UUID,CIDR)
441-
# is not supported.
439+
# is also supported.
442440
#container_ip_blocks = []
443441
444442
# Resource ID of the container ip blocks that will be used for creating
445443
# subnets for no-SNAT projects. If specified, no-SNAT projects will use
446-
# these ip blocks ONLY. Otherwise they will use container_ip_blocks
444+
# these ip blocks ONLY. Otherwise they will use container_ip_blocks.If
445+
# policy_nsxapi is enabled, it also support automatically creating the IP
446+
# blocks. The definition is a comma separated list: CIDR,CIDR,... Mixing
447+
# different formats (e.g. UUID,CIDR) is also supported.
447448
#no_snat_ip_blocks = []
448449
449450
# Name or ID of the external ip pools that will be used for allocating IP
450451
# addresses which will be used for translating container IPs via SNAT
451452
# rules. If policy_nsxapi is enabled, it also support automatically
452453
# creating the ip pools. The definition is a comma separated list:
453454
# CIDR,IP_1-IP_2,... Mixing different formats (e.g. UUID, CIDR&IP_Range) is
454-
# not supported.
455+
# also supported.
455456
#external_ip_pools = []
456457
457458
@@ -472,7 +473,7 @@ data:
472473
# allocating IP addresses for Ingress controller and LB service. If
473474
# policy_nsxapi is enabled, it also supports automatically creating the ip
474475
# pools. The definition is a comma separated list: CIDR,IP_1-IP_2,...
475-
# Mixing different formats (e.g. UUID, CIDR&IP_Range) is not supported.
476+
# Mixing different formats (e.g. UUID, CIDR&IP_Range) is also supported.
476477
#external_ip_pools_lb = []
477478
478479
# Name or ID of the NSX overlay transport zone that will be used for
@@ -563,24 +564,25 @@ data:
563564
#failover_mode = NON_PREEMPTIVE
564565
565566
# Set this to ACTIVATE to enable NCP enforced pool member limit for all
566-
# load balancer servers in cluster. Set this to CRD_LB_ONLY will only
567-
# enforce the limit for load balancer servers created using lb CRD. Set
568-
# this to DEACTIVATE to turn off all limit checks. This option requires
569-
# relax_scale_validation set to True, l4_lb_auto_scaling set to False, and
567+
# load balancer servers in cluster. Set this to DEACTIVATE to turn off all
568+
# limit checks. This option requires l4_lb_auto_scaling set to False, and
570569
# works on Policy API only. When activated, NCP will enforce a pool member
571570
# limit on LBS to prevent one LBS from using up all resources on edge
572-
# nodes.
573-
# Choices: DEACTIVATE ACTIVATE CRD_LB_ONLY
571+
# nodes. Also note that when relax_scale_validation is set to False and
572+
# members_per_small_lbs or members_per_medium_lbs set to values higher than
573+
# NSX scale limit, NSX scale check kicks in before NCP, making this config
574+
# unnecessary.
575+
# Choices: DEACTIVATE ACTIVATE
574576
#ncp_enforced_pool_member_limit = DEACTIVATE
575577
576578
# Maximum number of pool member allowed for each small load balancer
577-
# service. Requires ncp_enforced_pool_member_limit set to ACTIVATE or
578-
# CRD_LB_ONLY to take effect.
579+
# service. Requires ncp_enforced_pool_member_limit set to ACTIVATE to take
580+
# effect. The value should be in range [1, 7500].
579581
#members_per_small_lbs = 2000
580582
581583
# Maximum number of pool member allowed for each medium load balancer
582-
# service. Requires ncp_enforced_pool_member_limit set to ACTIVATE or
583-
# CRD_LB_ONLY to take effect.
584+
# service. Requires ncp_enforced_pool_member_limit set to ACTIVATE to take
585+
# effect. The value should be in range [1, 7500].
584586
#members_per_medium_lbs = 2000
585587
586588

Diff for: deploy/openshift4/configmap.yaml

+32-30
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ data:
174174
# ALLOW_NAMESPACE_STRICT inherits the behaviors of ALLOW_NAMESPACE, and
175175
# also restricts service talk to resources outside the cluster. By default,
176176
# no baseline rule will be created and the cluster will assume the default
177-
# behavior as specified by the backend.
177+
# behavior as specified by the backend. The option is only supported on
178+
# Policy API.
178179
# Choices: <None> allow_cluster allow_namespace allow_namespace_strict
179180
#baseline_policy_type = <None>
180181
@@ -184,19 +185,6 @@ data:
184185
# using k8s event
185186
#enable_ncp_event = False
186187
187-
# Set this to True to enable multus to create multiple interfaces for one
188-
# pod. Requires policy_nsxapi set to True to take effect. If passthrough
189-
# interface is used as additional interface, user should deploy the network
190-
# device plugin to provide device allocation information for NCP. Pod
191-
# annotations with prefix "k8s.v1.cni.cncf.io" cannot be modified once pod
192-
# is realized. User defined IP will not be allocated from the Segment
193-
# IPPool. The "gateway" in NetworkAttachmentDefinition is not used to
194-
# configure secondary interfaces, as the default gateway of Pod is
195-
# configured by the primary CNI on the main network interface. User must
196-
# define IP and/or MAC if no "ipam" is configured. Only available if node
197-
# type is HOSTVM and not to be leveraged in conjunction with 3rd party CNI
198-
# plugin
199-
#enable_multus = False
200188
201189
# Set this to True to enable NSX restore support (only effective in NSX
202190
# Policy API mode).
@@ -343,11 +331,12 @@ data:
343331
#thumbprint = []
344332
345333
346-
# The time in seconds before aborting a HTTP connection to a NSX manager.
334+
# The time in seconds before aborting a HTTP connection to NSX manager.
335+
# Defaults to 10 seconds, minimum 5seconds.
347336
#http_timeout = 10
348337
349-
# The time in seconds before aborting a HTTP read response from a NSX
350-
# manager.
338+
# The time in seconds (minimum 10 seconds) before aborting a HTTP read
339+
# operation from NSX manager.
351340
#http_read_timeout = 180
352341
353342
# Maximum number of times to retry a HTTP connection.
@@ -374,6 +363,7 @@ data:
374363
#v6_subnet_prefix = 64
375364
376365
366+
377367
# Indicates whether distributed firewall DENY rules are logged.
378368
#log_dropped_traffic = False
379369
@@ -436,18 +426,29 @@ data:
436426
437427
438428
429+
# Option to use ip blocks in order when creating subnets. Default is set to
430+
# false. If set to false, a random ip block will be selected from container
431+
# ip blocks list. If set to true, first IP Block in the container_ip_blocks
432+
# list that has the capacity to allow the creation of subnet will be
433+
# selected. Note that if ip blocks were shared by multiple clusters then
434+
# the selection in order is not guranteed.
435+
#use_ip_blocks_in_order = False
436+
439437
440438
# Resource ID of the container ip blocks that will be used for creating
441439
# subnets for no-SNAT projects. If specified, no-SNAT projects will use
442-
# these ip blocks ONLY. Otherwise they will use container_ip_blocks
440+
# these ip blocks ONLY. Otherwise they will use container_ip_blocks.If
441+
# policy_nsxapi is enabled, it also support automatically creating the IP
442+
# blocks. The definition is a comma separated list: CIDR,CIDR,... Mixing
443+
# different formats (e.g. UUID,CIDR) is also supported.
443444
#no_snat_ip_blocks = []
444445
445446
# Name or ID of the external ip pools that will be used for allocating IP
446447
# addresses which will be used for translating container IPs via SNAT
447448
# rules. If policy_nsxapi is enabled, it also support automatically
448449
# creating the ip pools. The definition is a comma separated list:
449450
# CIDR,IP_1-IP_2,... Mixing different formats (e.g. UUID, CIDR&IP_Range) is
450-
# not supported.
451+
# also supported.
451452
#external_ip_pools = []
452453
453454
@@ -468,7 +469,7 @@ data:
468469
# allocating IP addresses for Ingress controller and LB service. If
469470
# policy_nsxapi is enabled, it also supports automatically creating the ip
470471
# pools. The definition is a comma separated list: CIDR,IP_1-IP_2,...
471-
# Mixing different formats (e.g. UUID, CIDR&IP_Range) is not supported.
472+
# Mixing different formats (e.g. UUID, CIDR&IP_Range) is also supported.
472473
#external_ip_pools_lb = []
473474
474475
# Name or ID of the NSX overlay transport zone that will be used for
@@ -559,24 +560,25 @@ data:
559560
#failover_mode = NON_PREEMPTIVE
560561
561562
# Set this to ACTIVATE to enable NCP enforced pool member limit for all
562-
# load balancer servers in cluster. Set this to CRD_LB_ONLY will only
563-
# enforce the limit for load balancer servers created using lb CRD. Set
564-
# this to DEACTIVATE to turn off all limit checks. This option requires
565-
# relax_scale_validation set to True, l4_lb_auto_scaling set to False, and
563+
# load balancer servers in cluster. Set this to DEACTIVATE to turn off all
564+
# limit checks. This option requires l4_lb_auto_scaling set to False, and
566565
# works on Policy API only. When activated, NCP will enforce a pool member
567566
# limit on LBS to prevent one LBS from using up all resources on edge
568-
# nodes.
569-
# Choices: DEACTIVATE ACTIVATE CRD_LB_ONLY
567+
# nodes. Also note that when relax_scale_validation is set to False and
568+
# members_per_small_lbs or members_per_medium_lbs set to values higher than
569+
# NSX scale limit, NSX scale check kicks in before NCP, making this config
570+
# unnecessary.
571+
# Choices: DEACTIVATE ACTIVATE
570572
#ncp_enforced_pool_member_limit = DEACTIVATE
571573
572574
# Maximum number of pool member allowed for each small load balancer
573-
# service. Requires ncp_enforced_pool_member_limit set to ACTIVATE or
574-
# CRD_LB_ONLY to take effect.
575+
# service. Requires ncp_enforced_pool_member_limit set to ACTIVATE to take
576+
# effect. The value should be in range [1, 7500].
575577
#members_per_small_lbs = 2000
576578
577579
# Maximum number of pool member allowed for each medium load balancer
578-
# service. Requires ncp_enforced_pool_member_limit set to ACTIVATE or
579-
# CRD_LB_ONLY to take effect.
580+
# service. Requires ncp_enforced_pool_member_limit set to ACTIVATE to take
581+
# effect. The value should be in range [1, 7500].
580582
#members_per_medium_lbs = 2000
581583
582584

0 commit comments

Comments
 (0)