feat: centralized K8s infra — dev/prod environments

This commit is contained in:
admin
2026-07-26 21:33:02 +08:00
commit 9ebafb97fb
15 changed files with 613 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: lpt-fe
namespace: lpt-prod
labels:
app: lpt-fe
spec:
replicas: 1
selector:
matchLabels:
app: lpt-fe
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
template:
metadata:
labels:
app: lpt-fe
spec:
imagePullSecrets:
- name: regcred
containers:
- name: lpt-fe
image: 192.168.123.199:5000/lpt-fe:prod
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
livenessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 5
periodSeconds: 15
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 3
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3