feat: 🚛 完成了 client 资源创建

This commit is contained in:
zhaoyupeng
2025-12-31 17:31:25 +08:00
parent 0bcb138fd5
commit eb87d6fbed
20 changed files with 632 additions and 60 deletions

View File

@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: client-__os__-deployment
namespace: hsv2
spec:
replicas: %d
selector:
matchLabels:
app: client-__os__
template:
metadata:
labels:
app: client-__os__
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: client-__os__
containers:
- name: client-__os__
image: %s
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: client-__os__-service
namespace: hsv2
spec:
selector:
app: client-__os__
ports:
- protocol: TCP
port: 80
targetPort: 80
type: ClusterIP

View File

@@ -54,7 +54,7 @@ metadata:
namespace: db-registry
spec:
clusterIP: 10.96.123.45
type: NodePork
type: NodePort
selector:
app: registry
ports: