mirror of
https://gitee.com/julywhj/sms-getway.git
synced 2025-12-24 08:12:51 +08:00
* 支持nacos配置 * Merge remote-tracking branch 'origin/develop' into develop * 修改k8s发布镜像 * add default pipeline template yaml * 修改k8s发布镜像 * 修改k8s发布镜像 * 修改DockerFile添加k8s部署文件 * 优化代码,支持阿里云短信 * 优化短信网关代码 * 优化短信网关代码 * 修改登录背景 * 精简项目
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: sms-gateway
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: sms-gateway
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: sms-gateway
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: jdd-cloud
|
|
containers:
|
|
- name: sms-gateway
|
|
imagePullPolicy: Always
|
|
image: wellyspring.tencentcloudcr.com/jdd/new-jdd-sms-gateway:latest
|
|
resources:
|
|
requests:
|
|
memory: 1024Mi
|
|
cpu: 500m
|
|
limits:
|
|
memory: 1024Mi
|
|
cpu: 500m
|
|
ports:
|
|
- name: http-port
|
|
containerPort: 3000
|
|
volumeMounts:
|
|
- name: business-log
|
|
mountPath: /home/yaoll/logs
|
|
volumes:
|
|
- name: business-log
|
|
emptyDir: { }
|
|
---
|
|
#service
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: sms-gateway
|
|
spec:
|
|
selector:
|
|
app: sms-gateway
|
|
ports:
|
|
- port: 3000
|
|
protocol: TCP
|
|
targetPort: 3000
|
|
type: ClusterIP |