2026-03-09 21:44:27 +00:00
|
|
|
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
|
2026-03-09 21:44:27 +00:00
|
|
|
env:
|
2026-03-10 03:13:15 +00:00
|
|
|
- name: RAILS_ENV
|
|
|
|
|
value: "production"
|
|
|
|
|
- name: RAILS_LOG_TO_STDOUT
|
|
|
|
|
value: "true"
|
2026-03-10 03:14:03 +00:00
|
|
|
- name: RAILS_SERVE_STATIC_FILES
|
|
|
|
|
value: "true"
|
2026-03-10 03:13:15 +00:00
|
|
|
- name: SECRET_KEY_BASE
|
|
|
|
|
value: "a7b8c9d0e1f2g3h4i5j6k7l8m9n0o1p2q3r4s5t6u7v8w9x0y1z2a3b4c5d6e7f8"
|
2026-03-09 21:44:27 +00:00
|
|
|
- name: DATABASE_URL
|
|
|
|
|
value: "postgres://jam:jam@72.14.176.182:5432/jam"
|
2026-03-10 03:13:15 +00:00
|
|
|
readinessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /
|
2026-03-10 04:54:15 +00:00
|
|
|
port: 3000
|
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
|
periodSeconds: 10
|
2026-03-09 21:44:27 +00:00
|
|
|
---
|
|
|
|
|
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
|
2026-03-09 21:44:27 +00:00
|
|
|
---
|
|
|
|
|
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
|