feat: initial landing page with K8s deploy config

- Nginx static serving with APP_URL env var
- K8s manifests for prod and staging
- Gitea Actions CI/CD pipeline
This commit is contained in:
2026-04-17 11:56:26 -03:00
commit 27093a26eb
5 changed files with 1993 additions and 0 deletions

52
k8s/prod.yaml Normal file
View File

@@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: batida-landing
namespace: prod
spec:
replicas: 1
selector:
matchLabels:
app: batida-landing
template:
metadata:
labels:
app: batida-landing
spec:
tolerations:
- key: prod
operator: Equal
value: "true"
effect: NoSchedule
nodeSelector:
dedicated: prod
containers:
- name: batida-landing
image: git.batida.io/batida/batida-landing:latest
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 30
resources:
requests:
memory: "16Mi"
cpu: "10m"
limits:
memory: "64Mi"
cpu: "100m"
---
apiVersion: v1
kind: Service
metadata:
name: batida-landing
namespace: prod
spec:
selector:
app: batida-landing
ports:
- port: 80
targetPort: 80

52
k8s/staging.yaml Normal file
View File

@@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: batida-landing
namespace: staging
spec:
replicas: 1
selector:
matchLabels:
app: batida-landing
template:
metadata:
labels:
app: batida-landing
spec:
tolerations:
- key: staging
operator: Equal
value: "true"
effect: NoSchedule
nodeSelector:
dedicated: staging
containers:
- name: batida-landing
image: git.batida.io/batida/batida-landing:staging-latest
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 30
resources:
requests:
memory: "16Mi"
cpu: "10m"
limits:
memory: "64Mi"
cpu: "100m"
---
apiVersion: v1
kind: Service
metadata:
name: batida-landing
namespace: staging
spec:
selector:
app: batida-landing
ports:
- port: 80
targetPort: 80