From f816a1cc7608d910b8896152d8744b4d53506761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B3=BD=E6=84=8F?= Date: Mon, 24 Jun 2024 17:33:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=9B=B8=E5=85=B3=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/usma-api/service.yaml | 7 ++----- templates/usma-login/ui/deployment.yaml | 2 +- templates/usma-login/ui/ingressroute.yaml | 2 +- templates/usma-login/ui/service.yaml | 4 ++-- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/templates/usma-api/service.yaml b/templates/usma-api/service.yaml index b1c222d..7a1ecb3 100644 --- a/templates/usma-api/service.yaml +++ b/templates/usma-api/service.yaml @@ -9,11 +9,8 @@ metadata: versoin: {{ .Values.usmaApi.image.tag }} spec: ports: - - name: "usma-api" - protocol: "TCP" + - name: usma-api port: 80 targetPort: 8080 selector: - app: usma-api - type: ClusterIP - sessionAffinity: None + app: usma-api \ No newline at end of file diff --git a/templates/usma-login/ui/deployment.yaml b/templates/usma-login/ui/deployment.yaml index 16ecabd..e8ff8a3 100644 --- a/templates/usma-login/ui/deployment.yaml +++ b/templates/usma-login/ui/deployment.yaml @@ -33,7 +33,7 @@ spec: {{- end }} imagePullPolicy: "{{ .Values.global.imagePullPolicy }}" ports: - - containerPort: 80 + - containerPort: 8080 protocol: TCP volumeMounts: - name: localtime diff --git a/templates/usma-login/ui/ingressroute.yaml b/templates/usma-login/ui/ingressroute.yaml index 6052688..97227c5 100644 --- a/templates/usma-login/ui/ingressroute.yaml +++ b/templates/usma-login/ui/ingressroute.yaml @@ -12,6 +12,6 @@ spec: services: - kind: Service name: usma-login - port: 80 + port: 8080 tls: certResolver: default diff --git a/templates/usma-login/ui/service.yaml b/templates/usma-login/ui/service.yaml index df638dc..1e9c710 100644 --- a/templates/usma-login/ui/service.yaml +++ b/templates/usma-login/ui/service.yaml @@ -5,13 +5,13 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{ include "usma-login.labels" . | indent 4 }} - app: auto-ui + app: usma-login versoin: {{ .Values.usmaLogin.image.tag }} spec: ports: - name: usma-login protocol: TCP - port: 80 + port: 8080 targetPort: 8080 selector: app: usma-login -- 2.26.0