Files
crawlapi/k8s/frontend.yaml
Developer 62994d4f3d
Some checks failed
CI / Test (push) Has been cancelled
Deploy / Deploy to Staging (push) Has been cancelled
CI / Build & Push (push) Has been cancelled
Deploy / Deploy to Production (push) Has been cancelled
Initial commit: Full Crawl API implementation
2026-04-29 07:03:48 +00:00

64 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
namespace: crawlapi
spec:
replicas: 2
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: crawlapi/frontend:latest
ports:
- containerPort: 3000
resources:
requests:
memory: "128Mi"
cpu: "100m"
---
apiVersion: v1
kind: Service
metadata:
name: frontend
namespace: crawlapi
spec:
selector:
app: frontend
ports:
- port: 3000
targetPort: 3000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: frontend
namespace: crawlapi
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "true"
cert-manager.io/cluster-issuer: letsencrypt
spec:
ingressClassName: nginx
tls:
- hosts:
- crawlapi.dev
- www.crawlapi.dev
secretName: frontend-tls
rules:
- host: crawlapi.dev
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: frontend
port:
number: 3000