Files
forge/pkg/resource/yaml/client.pkg.yaml
2025-12-31 18:58:52 +08:00

43 lines
850 B
YAML

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