homek8s/apps/base/sirius-growth/deployment-blog.yaml

91 lines
2.8 KiB
YAML
Raw Permalink Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: sirius-growth-blog
namespace: sirius-growth
spec:
replicas: 1
selector:
matchLabels:
app: sirius-growth-blog
template:
metadata:
labels:
app: sirius-growth-blog
spec:
tolerations:
- key: dedicated
operator: Exists
effect: PreferNoSchedule
nodeSelector:
kubernetes.io/hostname: siriussec
containers:
- name: blog
# Pinned by immutable tag. The blog is mounted at /journal by the
# site nginx, so it has no Service hostname of its own and no
# HTTPRoute - the marketing site proxies to this ClusterIP service.
image: forgejo.siriusdevops.com/sirius/sirius-growth-blog:4378680888a7d3976106533111003e2cb257a362
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8092
name: http
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: sirius-growth-blog-app
key: database-url
- name: SESSION_SECRET
valueFrom:
secretKeyRef:
name: sirius-growth-blog-app
key: session-secret
- name: S3_ENDPOINT
valueFrom:
secretKeyRef:
name: sirius-growth-blog-s3
key: endpoint
- name: S3_BUCKET
valueFrom:
secretKeyRef:
name: sirius-growth-blog-s3
key: bucket
- name: S3_ACCESS_KEY
valueFrom:
secretKeyRef:
name: sirius-growth-blog-s3
key: access-key
- name: S3_SECRET_KEY
valueFrom:
secretKeyRef:
name: sirius-growth-blog-s3
key: secret-key
- name: S3_REGION
valueFrom:
secretKeyRef:
name: sirius-growth-blog-s3
key: region
# Every URL the service emits (canonical, RSS, sitemap, media,
# admin form actions) hangs off this; the mount is /journal.
- name: PUBLIC_BASE_URL
value: https://siriusgrowthsolutions.com/journal
- name: PORTAL_BASE_URL
value: https://siriusgrowthsolutions.com
readinessProbe:
httpGet:
path: /health
port: 8092
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /health
port: 8092
initialDelaySeconds: 20
periodSeconds: 20
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
memory: 384Mi