Initial commit: NutriApp - Rust + Axum + Dioxus - CI/CD con Gitea Runner
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
# ─── NutriApp K3s Deployment ─────────────────────────────────
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nutriapp
|
||||
namespace: nutriapp
|
||||
labels:
|
||||
app: nutriapp
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nutriapp
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nutriapp
|
||||
spec:
|
||||
containers:
|
||||
- name: nutriapp
|
||||
image: k3s.proyectosjoel.com/nutriapp:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 3100
|
||||
name: http
|
||||
env:
|
||||
- name: DATABASE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nutriapp-db
|
||||
key: url
|
||||
- name: SESSION_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nutriapp-db
|
||||
key: session-key
|
||||
resources:
|
||||
requests:
|
||||
memory: "32Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 3100
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 3100
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nutriapp
|
||||
namespace: nutriapp
|
||||
labels:
|
||||
app: nutriapp
|
||||
spec:
|
||||
selector:
|
||||
app: nutriapp
|
||||
ports:
|
||||
- port: 3100
|
||||
targetPort: 3100
|
||||
name: http
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user