feature:适配mrzcpd使用MRZCPD_CTRLMSG_LISTEN_ADDR环境变量

This commit is contained in:
fumingwei
2022-08-31 15:39:18 +08:00
parent f8f8ee78e2
commit 81cda21741
2 changed files with 12 additions and 1 deletions

View File

@@ -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

View File

@@ -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: