video-iac/k8s/jam-cloud/admin.yaml

84 lines
1.8 KiB
YAML
Raw Permalink Normal View History

apiVersion: v1
kind: Namespace
metadata:
name: jam-cloud
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: admin
namespace: jam-cloud
spec:
replicas: 1
selector:
matchLabels:
app: admin
template:
metadata:
labels:
app: admin
spec:
imagePullSecrets:
- name: gitea-registry
containers:
- name: web
# This will be replaced by the Dagger build pipeline on first run
image: git.staging.jamkazam.com/seth/jam-cloud-admin:latest
ports:
2026-03-10 04:54:15 +00:00
- containerPort: 3000
env:
- name: RAILS_ENV
value: "production"
- name: RAILS_LOG_TO_STDOUT
value: "true"
- name: RAILS_SERVE_STATIC_FILES
value: "true"
- name: SECRET_KEY_BASE
value: "a7b8c9d0e1f2g3h4i5j6k7l8m9n0o1p2q3r4s5t6u7v8w9x0y1z2a3b4c5d6e7f8"
- name: DATABASE_URL
value: "postgres://jam:jam@72.14.176.182:5432/jam"
readinessProbe:
httpGet:
path: /
2026-03-10 04:54:15 +00:00
port: 3000
initialDelaySeconds: 30
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: admin
namespace: jam-cloud
spec:
selector:
app: admin
ports:
- protocol: TCP
port: 80
2026-03-10 04:54:15 +00:00
targetPort: 3000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: admin
namespace: jam-cloud
annotations:
cert-manager.io/cluster-issuer: letsencrypt-nginx-production
spec:
ingressClassName: nginx
tls:
- secretName: admin-tls
hosts:
- admin.staging.jamkazam.com
rules:
- host: admin.staging.jamkazam.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: admin
port:
number: 80