mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 18:22:54 +02:00
Split deployment in 2 files
This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: lingo
|
||||||
|
name: lingo
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: lingo
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: lingo
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: ghcr.io/rubenhensen/lingo-api:master
|
||||||
|
name: lingo-api
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "100m"
|
||||||
|
limits:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
restartPolicy: Always
|
||||||
@@ -17,18 +17,6 @@ spec:
|
|||||||
app: lingo
|
app: lingo
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: ghcr.io/rubenhensen/lingo-api:master
|
|
||||||
name: lingo-api
|
|
||||||
ports:
|
|
||||||
- containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "128Mi"
|
|
||||||
cpu: "100m"
|
|
||||||
limits:
|
|
||||||
memory: "512Mi"
|
|
||||||
cpu: "500m"
|
|
||||||
- image: ghcr.io/rubenhensen/lingo-frontend:master
|
- image: ghcr.io/rubenhensen/lingo-frontend:master
|
||||||
name: lingo-frontend
|
name: lingo-frontend
|
||||||
ports:
|
ports:
|
||||||
Reference in New Issue
Block a user