Add Kubernetes manifests for Flux CD deployment

This commit is contained in:
Unchained
2026-03-06 14:25:28 +02:00
parent 927dfc45e7
commit 8a720f5335
4 changed files with 78 additions and 0 deletions

43
k8s/deployment.yaml Normal file
View File

@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: storefront
namespace: manoonoils
labels:
app: storefront
spec:
replicas: 1
selector:
matchLabels:
app: storefront
template:
metadata:
labels:
app: storefront
spec:
containers:
- name: storefront
image: manoonoils-store:repo
imagePullPolicy: Never
ports:
- containerPort: 3000
env:
- name: NODE_ENV
value: production
- name: PORT
value: "3000"
- name: HOSTNAME
value: 0.0.0.0
startupProbe:
httpGet:
path: /
port: 3000
periodSeconds: 10
failureThreshold: 30
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"