From fc5e350bd3d7857ecdfa6ab18da4effd18d6dc48 Mon Sep 17 00:00:00 2001 From: tsiji Date: Tue, 28 Jul 2026 14:56:07 +0800 Subject: [PATCH] fix(dev): correct mobile and print startup --- dev/imes-custom-nalinv-mobile.yaml | 10 +++++----- dev/imes-custom-nalinv-print.yaml | 32 +++++++++++++++++++++++++----- 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/dev/imes-custom-nalinv-mobile.yaml b/dev/imes-custom-nalinv-mobile.yaml index 921df94..010442d 100644 --- a/dev/imes-custom-nalinv-mobile.yaml +++ b/dev/imes-custom-nalinv-mobile.yaml @@ -32,16 +32,17 @@ spec: values: - amd64 containers: - - args: - - start - - web - env: + - env: - name: PORT value: '80' - name: GR2740169999_HOST value: mom-gateway - name: GR2740169999_PORT value: '9999' + - name: GATEWAY_HOST + value: mom-gateway + - name: GATEWAY_PORT + value: '9999' - name: HOST_IP valueFrom: fieldRef: @@ -75,4 +76,3 @@ spec: schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 10 - diff --git a/dev/imes-custom-nalinv-print.yaml b/dev/imes-custom-nalinv-print.yaml index 660052c..505cb33 100644 --- a/dev/imes-custom-nalinv-print.yaml +++ b/dev/imes-custom-nalinv-print.yaml @@ -34,9 +34,14 @@ spec: values: - amd64 containers: - - args: - - start - - web + - command: + - java + - -Xms256m + - -Xmx1g + - -Dfile.encoding=UTF-8 + - -Djava.security.egd=file:/dev/./urandom + - -jar + - nlv-print.jar env: - name: GR05A18C8848_HOST value: mom-register @@ -73,7 +78,7 @@ spec: imagePullPolicy: IfNotPresent name: nalinv-print ports: - - containerPort: 80 + - containerPort: 6066 protocol: TCP resources: limits: @@ -89,4 +94,21 @@ spec: schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 10 - +--- +apiVersion: v1 +kind: Service +metadata: + labels: + app: imes-custom-nalinv-print + name: imes-custom-nalinv-print + namespace: dev +spec: + type: NodePort + selector: + app: imes-custom-nalinv-print + ports: + - name: http + port: 80 + protocol: TCP + targetPort: 6066 + nodePort: 30657