Files
Spring-cloud-2025.1.1/k8s/gateway-deployment.yaml
lingxiao865 0f38d49b66 1
2026-02-10 08:22:09 +08:00

35 lines
599 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: gateway-deployment
labels:
app: gateway
spec:
replicas: 1
selector:
matchLabels:
app: gateway
template:
metadata:
labels:
app: gateway
spec:
containers:
- name: gateway
image: 192.168.1.14:5000/gateway:v19
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8083
---
apiVersion: v1
kind: Service
metadata:
name: gateway-service
spec:
selector:
app: gateway
ports:
- protocol: TCP
port: 8083
targetPort: 8083
type: LoadBalancer