2026-10-19 03:30:03 -04:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: sirius-growth-portal
|
|
|
|
|
namespace: sirius-growth
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: sirius-growth-portal
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: sirius-growth-portal
|
|
|
|
|
spec:
|
|
|
|
|
tolerations:
|
|
|
|
|
- key: dedicated
|
|
|
|
|
operator: Exists
|
|
|
|
|
effect: PreferNoSchedule
|
|
|
|
|
nodeSelector:
|
2026-10-20 09:01:01 -04:00
|
|
|
kubernetes.io/hostname: siriussec
|
2026-10-19 03:30:03 -04:00
|
|
|
containers:
|
|
|
|
|
- name: portal-api
|
2026-10-19 03:47:28 -04:00
|
|
|
image: forgejo.siriusdevops.com/sirius/sirius-growth-portal:latest
|
2026-10-19 03:30:03 -04:00
|
|
|
imagePullPolicy: Always
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8091
|
|
|
|
|
name: http
|
|
|
|
|
env:
|
|
|
|
|
- name: DATABASE_URL
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: sirius-growth-portal-app
|
|
|
|
|
key: database-url
|
|
|
|
|
- name: SESSION_SECRET
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: sirius-growth-portal-app
|
|
|
|
|
key: session-secret
|
|
|
|
|
- name: ADMIN_USERNAME
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: sirius-growth-portal-app
|
|
|
|
|
key: admin-username
|
|
|
|
|
- name: ADMIN_PASSWORD
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: sirius-growth-portal-app
|
|
|
|
|
key: admin-password
|
|
|
|
|
- name: S3_ENDPOINT
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: sirius-growth-portal-app
|
|
|
|
|
key: s3-endpoint
|
|
|
|
|
- name: S3_BUCKET
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: sirius-growth-portal-app
|
|
|
|
|
key: s3-bucket
|
|
|
|
|
- name: S3_ACCESS_KEY
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: sirius-growth-portal-app
|
|
|
|
|
key: s3-access-key
|
|
|
|
|
- name: S3_SECRET_KEY
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: sirius-growth-portal-app
|
|
|
|
|
key: s3-secret-key
|
|
|
|
|
- name: S3_REGION
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: sirius-growth-portal-app
|
|
|
|
|
key: s3-region
|
|
|
|
|
readinessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /api/portal/health
|
|
|
|
|
port: 8091
|
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /api/portal/health
|
|
|
|
|
port: 8091
|
|
|
|
|
initialDelaySeconds: 20
|
|
|
|
|
periodSeconds: 20
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 50m
|
|
|
|
|
memory: 128Mi
|
|
|
|
|
limits:
|
|
|
|
|
memory: 384Mi
|