35 lines
599 B
YAML
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 |