修改tfe.conf.j2,添加两行动态配置

This commit is contained in:
zhangzhihan
2020-01-15 12:15:13 +08:00
committed by 崔一鸣
parent 5a63196b44
commit 5d10c09630
2 changed files with 5 additions and 3 deletions

View File

@@ -60,6 +60,8 @@ kni:
enabled: 1 enabled: 1
tfe: tfe:
nr_threads: 16 nr_threads: 16
kni_ip: 192.168.100.1
mc_cache_eth: ens1.100
keykeeper: keykeeper:
mode: "normal" mode: "normal"
no_cache: 0 no_cache: 0

View File

@@ -6,7 +6,7 @@ breakpad_minidump_dir=/run/tfe/crashreport/
breakpad_upload_url=http://127.0.0.1:9000/ breakpad_upload_url=http://127.0.0.1:9000/
[kni] [kni]
ip=192.168.100.1 ip={{ tfe.kni_ip }}
scm_port=2475 scm_port=2475
watchdog_switch=1 watchdog_switch=1
watchdog_port=2476 watchdog_port=2476
@@ -30,7 +30,7 @@ service_cache_expire_seconds=600
# default 0 # default 0
mc_cache_enable=1 mc_cache_enable=1
# default eth0 # default eth0
mc_cache_eth=ens1.100 mc_cache_eth={{ tfe.mc_cache_eth }}
# default NULL # default NULL
mc_cache_broker_list={{ log_kafkabrokers.address }} mc_cache_broker_list={{ log_kafkabrokers.address }}
# default PXY-EXCH-INTERMEDIA-CERT # default PXY-EXCH-INTERMEDIA-CERT
@@ -46,7 +46,7 @@ cert_store_port= {{ cert_store_server.port }}
ca_path=resource/tfe/tango-ca-v3-trust-ca.pem ca_path=resource/tfe/tango-ca-v3-trust-ca.pem
untrusted_ca_path=resource/tfe/tango-ca-v3-untrust-ca.pem untrusted_ca_path=resource/tfe/tango-ca-v3-untrust-ca.pem
[debug] [debug]
passthrough_all_tcp=0 passthrough_all_tcp=0
[traffic_mirror] [traffic_mirror]