This commit is contained in:
dxin
2025-10-31 16:47:36 +08:00
parent b9f7ef980b
commit 4053c70dcc
9 changed files with 156 additions and 14 deletions

View File

@@ -3,7 +3,7 @@
- 集群外部:`http://<Node_IP>:38000`
## Go
- 集群内部:`http://test-lessie-sourcing-api-svc.test-lessie.svc.cluster.local:8100`
- 集群内部:`http://test-lessie-go-api-svc.test-lessie.svc.cluster.local:8100`
- 集群外部:`http://<Node_IP>:30810`
## Java
@@ -18,3 +18,10 @@
- 集群外部:`http://<Node_IP>:30809`
## 主站前端

View File

@@ -38,7 +38,7 @@ spec:
type: DirectoryOrCreate
containers:
- name: test-flymoon-agent # 容器名称
image: uswccr.ccs.tencentyun.com/lessietest/flymoon-agent:v0.0.1 # 容器镜像
image: uswccr.ccs.tencentyun.com/lessietest/flymoon-agent:v0.0.2 # 容器镜像
imagePullPolicy: IfNotPresent # 镜像拉取策略 ,有则不拉
env:
- name: POD_NAME

View File

@@ -38,7 +38,7 @@ spec:
type: DirectoryOrCreate
containers:
- name: test-flymoon-payment # 容器名称
image: uswccr.ccs.tencentyun.com/lessietest/flymoon-payment:v0.0.1 # 容器镜像
image: uswccr.ccs.tencentyun.com/lessietest/flymoon-payment:v0.0.3 # 容器镜像
imagePullPolicy: IfNotPresent # 镜像拉取策略 ,有则不拉
env:
- name: POD_NAME

View File

@@ -44,7 +44,7 @@ spec:
type: DirectoryOrCreate
containers:
- name: test-lessie-agents # 容器名称
image: uswccr.ccs.tencentyun.com/lessietest/lessie-sourcing-agents:v24_dxin_9042beec_202510271811 # 容器镜像
image: uswccr.ccs.tencentyun.com/lessietest/lessie-sourcing-agents:v0.0.2 # 容器镜像
imagePullPolicy: IfNotPresent # 镜像拉取策略 ,有则不拉
env:
- name: POD_NAME

View File

@@ -0,0 +1,81 @@
# ----------------------------
# Deployment
# ----------------------------
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-lessie-ai-web-deployment
namespace: test-lessie
labels:
app: test-lessie-ai-web
environment: test
project: lessie
spec:
replicas: 1
selector:
matchLabels:
app: test-lessie-ai-web
environment: test
project: lessie
strategy:
type: RollingUpdate # 滚动更新策略
rollingUpdate:
maxSurge: 1 # 最大新增副本数(先加)
maxUnavailable: 0 # 最大不可用副本数(不减)
template:
metadata:
labels:
app: test-lessie-ai-web
environment: test
project: lessie
spec:
imagePullSecrets:
- name: dxin-image-repository
volumes:
- name: test-default-conf-volume
configMap:
name: test-default-conf
containers:
- name: test-lessie-ai-web
image: uswccr.ccs.tencentyun.com/lessiesit/lessie-ai-web:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
resources:
requests:
cpu: "200m" # 容器请求分配0.2个CPU核心这不是实际占用但调度会以这里进行参考
memory: "256Mi" # 容器请求分配1Gi内存这会实际预留
limits:
cpu: "500m" # 最多可以使用0.5个CPU核心
memory: "512Mi" # 容器最多可以使用8Gi内存
volumeMounts:
- name: test-default-conf-volume
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
---
# ----------------------------
# Service
# 集群内部http://test-lessie-ai-web-svc.test-lessie.svc.cluster.local:8000
# 集群外部http://<Node_IP>:30080
# ----------------------------
apiVersion: v1
kind: Service
metadata:
name: test-lessie-ai-web-svc
namespace: test-lessie
labels:
app: test-lessie-ai-web
environment: test
project: lessie
spec:
type: NodePort
selector:
app: test-lessie-ai-web
environment: test
project: lessie
ports:
- name: http
port: 80
targetPort: 80
nodePort: 30080

View File

@@ -38,7 +38,7 @@ spec:
type: DirectoryOrCreate
containers:
- name: test-lessie-go-api # 容器名称
image: uswccr.ccs.tencentyun.com/lessietest/go_lessie-sourcing-api:latest # 容器镜像
image: uswccr.ccs.tencentyun.com/lessietest/go_lessie-sourcing-api:v0.0.2 # 容器镜像
imagePullPolicy: IfNotPresent # 镜像拉取策略 ,有则不拉
env:
- name: POD_NAME