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:
52
k8s/prod.yaml
Normal file
52
k8s/prod.yaml
Normal 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
52
k8s/staging.yaml
Normal 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
|
||||
Reference in New Issue
Block a user