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