55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: platform-gateway
|
|
namespace: studio-system
|
|
labels:
|
|
app: platform-gateway
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: platform-gateway
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: platform-gateway
|
|
spec:
|
|
containers:
|
|
- name: platform-gateway
|
|
image: localhost:5000/platform-gateway:0.1.0
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: http
|
|
containerPort: 4500
|
|
envFrom:
|
|
- secretRef:
|
|
name: platform-gateway-env
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 4500
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 4500
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: platform-gateway
|
|
namespace: studio-system
|
|
labels:
|
|
app: platform-gateway
|
|
spec:
|
|
selector:
|
|
app: platform-gateway
|
|
ports:
|
|
- name: http
|
|
port: 4500
|
|
targetPort: 4500
|