Browse Source

更新部署配置

tags/v20240126
fans 2 years ago
parent
commit
ed168f29d3
1 changed files with 35 additions and 0 deletions
  1. +35
    -0
      k8s/k8s-12front.yaml

+ 35
- 0
k8s/k8s-12front.yaml View File

@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ci4s-front-deployment
namespace: ci4s-test
spec:
replicas: 1
selector:
matchLabels:
app: ci4s-front
template:
metadata:
labels:
app: ci4s-front
spec:
containers:
- name: ci4s-front
image: ci4s-front:20240126
ports:
- containerPort: 8000

---
apiVersion: v1
kind: Service
metadata:
name: ci4s-front-service
namespace: ci4s-test
spec:
type: NodePort
ports:
- port: 8000
nodePort: 31213
protocol: TCP
selector:
app: ci4s-front

Loading…
Cancel
Save