feature:适配mrzcpd使用MRZCPD_CTRLMSG_LISTEN_ADDR环境变量
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user