From 89efefd7c14001e8eb290420da694104df6b0268 Mon Sep 17 00:00:00 2001 From: bamanker Date: Tue, 28 Nov 2023 00:39:56 +0800 Subject: [PATCH] =?UTF-8?q?fix=E4=BA=86k8s=20devops=E7=9A=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy.yaml b/deploy.yaml index b8751f2..8097efa 100644 --- a/deploy.yaml +++ b/deploy.yaml @@ -5,7 +5,7 @@ metadata: app: $APP_NAME version: $TAG name: $APP_NAME - namespace: my-proj #一定要写名称空间 + namespace: dl-proj #一定要写名称空间 spec: progressDeadlineSeconds: 600 replicas: 1 @@ -42,7 +42,7 @@ spec: resources: limits: cpu: 300m - memory: 120Mi + memory: 100Mi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File env: @@ -58,13 +58,13 @@ metadata: labels: app: $APP_NAME name: $APP_NAME - namespace: my-proj + namespace: dl-proj spec: ports: - name: http - port: 13146 + port: 13145 protocol: TCP - targetPort: 13146 + targetPort: 13145 selector: app: $APP_NAME sessionAffinity: None @@ -74,6 +74,6 @@ apiVersion: v1 kind: ServiceAccount metadata: name: $APP_NAME # ServiceAccount的名字 - namespace: my-proj # serviceaccount的namespace + namespace: dl-proj # serviceaccount的namespace labels: app: $APP_NAME #ServiceAccount的标签