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: