chore: 参照后端配置,使用 kaniko 构建,添加 k8s 部署文件
This commit is contained in:
37
k8s/deployment.yaml
Normal file
37
k8s/deployment.yaml
Normal 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
|
||||
Reference in New Issue
Block a user