From 81cda217419df5b9288ea92af375ee5cc9ba7fe5 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Wed, 31 Aug 2022 15:39:18 +0800 Subject: [PATCH] =?UTF-8?q?feature:=E9=80=82=E9=85=8Dmrzcpd=E4=BD=BF?= =?UTF-8?q?=E7=94=A8MRZCPD=5FCTRLMSG=5FLISTEN=5FADDR=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../traffic-engine/files/helm/conf/provision-init.sh | 2 +- .../files/helm/templates/traffic-engine.yaml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ansible/roles/traffic-engine/files/helm/conf/provision-init.sh b/ansible/roles/traffic-engine/files/helm/conf/provision-init.sh index 9c5cf6ce..33a959b4 100644 --- a/ansible/roles/traffic-engine/files/helm/conf/provision-init.sh +++ b/ansible/roles/traffic-engine/files/helm/conf/provision-init.sh @@ -6,7 +6,7 @@ chmod 0755 /opt/tsg/tsg-os-provision/scripts/obtain_sn.sh /opt/tsg/tsg-os-provision/scripts/obtain_sn.sh ip tuntap add mode tap ctrl_mock ifconfig ctrl_mock up -ifconfig ctrl_mock $NODE_IP/32 +ifconfig ctrl_mock 192.0.2.100/32 ifconfig ctrl_mock mtu 2000 {{ if eq .Values.proxy.enable .Values.define_enable_val_yes }} ip tuntap add dev tap0 mode tap multi_queue diff --git a/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml b/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml index 13d2d545..e0d11038 100644 --- a/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml +++ b/ansible/roles/traffic-engine/files/helm/templates/traffic-engine.yaml @@ -6,6 +6,7 @@ metadata: app: traffic-engine-{{ .Release.Name }} spec: + replicas: 1 selector: matchLabels: app: traffic-engine @@ -28,6 +29,11 @@ spec: imagePullPolicy: Never workingDir: /opt/tsg/sapp command: ["/opt/tsg/sapp/sapp"] + env: + - name: MRZCPD_CTRLMSG_LISTEN_ADDR + valueFrom: + fieldRef: + fieldPath: status.hostIP securityContext: privileged: true livenessProbe: @@ -103,6 +109,11 @@ spec: imagePullPolicy: Never workingDir: /opt/tsg/tfe command: ["/opt/tsg/tfe/bin/tfe"] + env: + - name: MRZCPD_CTRLMSG_LISTEN_ADDR + valueFrom: + fieldRef: + fieldPath: status.hostIP securityContext: privileged: true livenessProbe: