From 2b2f75ee1f1e6878184d6893c29c497b4c0b35eb Mon Sep 17 00:00:00 2001 From: william Date: Fri, 25 Apr 2025 06:26:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8B=E8=BD=BD=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gp2504/download-api-deployment.yaml | 21 +++++++++++++++++++++ gp2504/download-api-service.yaml | 11 +++++++++++ gp2504/download-deployment.yaml | 28 ++++++++++++++++++++++++++++ gp2504/download-service.yaml | 11 +++++++++++ gp2504/kustomization.yaml | 4 ++++ 5 files changed, 75 insertions(+) create mode 100644 gp2504/download-api-deployment.yaml create mode 100644 gp2504/download-api-service.yaml create mode 100644 gp2504/download-deployment.yaml create mode 100644 gp2504/download-service.yaml diff --git a/gp2504/download-api-deployment.yaml b/gp2504/download-api-deployment.yaml new file mode 100644 index 0000000..39a1160 --- /dev/null +++ b/gp2504/download-api-deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: download-api +spec: + replicas: 1 + selector: + matchLabels: + app: download-api + template: + metadata: + labels: + app: download-api + spec: + containers: + - name: download-api + image: juyou.tencentcloudcr.com/juyoutech/download_api:latest + ports: + - containerPort: 3000 + imagePullSecrets: + - name: juyou-docker-tcr-secret \ No newline at end of file diff --git a/gp2504/download-api-service.yaml b/gp2504/download-api-service.yaml new file mode 100644 index 0000000..2b62b8e --- /dev/null +++ b/gp2504/download-api-service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: download-api-service +spec: + ports: + - port: 80 + targetPort: 3000 + name: download-api + selector: + app: download-api \ No newline at end of file diff --git a/gp2504/download-deployment.yaml b/gp2504/download-deployment.yaml new file mode 100644 index 0000000..8e9930a --- /dev/null +++ b/gp2504/download-deployment.yaml @@ -0,0 +1,28 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: download-web-h5 +spec: + replicas: 1 + selector: + matchLabels: + app: download-web-h5 + template: + metadata: + labels: + app: download-web-h5 + spec: + containers: + - name: download-web-h5 + image: juyou.tencentcloudcr.com/juyoutech/download_web:latest + ports: + - containerPort: 80 + resources: + requests: + cpu: "0.125" + memory: "125Mi" + limits: + cpu: "0.25" + memory: "250Mi" + imagePullSecrets: + - name: juyou-docker-tcr-secret \ No newline at end of file diff --git a/gp2504/download-service.yaml b/gp2504/download-service.yaml new file mode 100644 index 0000000..bf8b1fd --- /dev/null +++ b/gp2504/download-service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: download-web-h5-service +spec: + ports: + - port: 80 + targetPort: 80 + name: download-web-h5 + selector: + app: download-web-h5 \ No newline at end of file diff --git a/gp2504/kustomization.yaml b/gp2504/kustomization.yaml index 3987eab..b8cb6c2 100644 --- a/gp2504/kustomization.yaml +++ b/gp2504/kustomization.yaml @@ -7,6 +7,10 @@ resources: - api2-service.yaml - market-endpoints.yaml - market-service.yaml + - download-deployment.yaml + - download-service.yaml + - download-api-deployment.yaml + - download-api-service.yaml - ../base/projects/stock2 - ../base/redis - ../base/redis-nodeport