REFACTOR(app): migrate to argocd
- Add Kustomize base and prod overlay structure - Optimize resources for 2GB RAM environment (100Mi/200Mi) - Add ArgoCD Application manifest - Remove old k8s manifests (replaced by Kustomize) - Add comprehensive deployment guide
This commit is contained in:
50
deploy/k8s/base/deployment.yaml
Normal file
50
deploy/k8s/base/deployment.yaml
Normal file
@@ -0,0 +1,50 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: jovies-app
|
||||
labels:
|
||||
app: jovies-app
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: jovies-app
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxUnavailable: 1
|
||||
maxSurge: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: jovies-app
|
||||
spec:
|
||||
containers:
|
||||
- name: jovies-app
|
||||
image: ghcr.io/mayne0213/jovies:latest
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: production
|
||||
resources:
|
||||
requests:
|
||||
memory: "100Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "200Mi"
|
||||
cpu: "150m"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3000
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
restartPolicy: Always
|
||||
Reference in New Issue
Block a user