chore: 参照后端配置,使用 kaniko 构建,添加 k8s 部署文件

This commit is contained in:
Agent
2026-03-23 13:27:55 +00:00
parent 63da0788f8
commit c4d83d18bb
3 changed files with 72 additions and 44 deletions

37
k8s/deployment.yaml Normal file
View File

@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: todo-frontend
namespace: drone
labels:
app: todo-frontend
spec:
replicas: 1
selector:
matchLabels:
app: todo-frontend
template:
metadata:
labels:
app: todo-frontend
spec:
imagePullSecrets:
- name: tencentyun-secret
containers:
- name: todo-frontend
image: ccr.ccs.tencentyun.com/violin/todo-frontend:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: todo-frontend
namespace: drone
spec:
selector:
app: todo-frontend
ports:
- port: 80
targetPort: 80
type: ClusterIP