research-notes/deploy/k8s/notes.yaml
jordan 33f475723a
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: use nginx ingress class instead of traefik
2026-02-10 19:31:25 -07:00

77 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: research-notes
namespace: projects
spec:
replicas: 1
selector:
matchLabels:
app: research-notes
template:
metadata:
labels:
app: research-notes
spec:
containers:
- name: web
image: registry.threesix.ai/research-notes/web:latest
ports:
- containerPort: 3000
resources:
requests:
memory: "64Mi"
cpu: "25m"
limits:
memory: "256Mi"
cpu: "250m"
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: research-notes
namespace: projects
spec:
selector:
app: research-notes
ports:
- port: 80
targetPort: 3000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: research-notes
namespace: projects
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: nginx
tls:
- hosts:
- notes.orchard9.ai
secretName: research-notes-tls
rules:
- host: notes.orchard9.ai
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: research-notes
port:
number: 80