apps(sirius-growth): blog Deployment/Service + pin site d44446c (journal mount)
- deployment-blog.yaml / service-blog.yaml: blog FastAPI on 8092, siriussec, env from sirius-growth-blog-app + sirius-growth-blog-s3, PUBLIC_BASE_URL=https://siriusgrowthsolutions.com/journal. No HTTPRoute: the site nginx proxies /journal to this ClusterIP service. - deployment.yaml: site 4285926 -> d44446c (nginx /journal proxy, nav menu). - portal Deployment untouched.
This commit is contained in:
parent
be8233079b
commit
aa71da2f31
4 changed files with 108 additions and 1 deletions
91
apps/base/sirius-growth/deployment-blog.yaml
Normal file
91
apps/base/sirius-growth/deployment-blog.yaml
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
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:d44446c87c5894de29739ee0bd25f40146148bd5
|
||||||
|
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
|
||||||
|
|
@ -21,7 +21,7 @@ spec:
|
||||||
kubernetes.io/hostname: siriussec
|
kubernetes.io/hostname: siriussec
|
||||||
containers:
|
containers:
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: forgejo.siriusdevops.com/sirius/sirius-growth-site:428592690bd7a3fecee7990a59119db4ff895079
|
image: forgejo.siriusdevops.com/sirius/sirius-growth-site:d44446c87c5894de29739ee0bd25f40146148bd5
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,13 @@ resources:
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- deployment-api.yaml
|
- deployment-api.yaml
|
||||||
- deployment-portal.yaml
|
- deployment-portal.yaml
|
||||||
|
- deployment-blog.yaml
|
||||||
- deployment-portal-gate.yaml
|
- deployment-portal-gate.yaml
|
||||||
- configmap-portal-gate.yaml
|
- configmap-portal-gate.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
- service-api.yaml
|
- service-api.yaml
|
||||||
- service-portal.yaml
|
- service-portal.yaml
|
||||||
|
- service-blog.yaml
|
||||||
- service-portal-gate.yaml
|
- service-portal-gate.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
- cluster.yaml
|
- cluster.yaml
|
||||||
|
|
|
||||||
14
apps/base/sirius-growth/service-blog.yaml
Normal file
14
apps/base/sirius-growth/service-blog.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: sirius-growth-blog
|
||||||
|
namespace: sirius-growth
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: sirius-growth-blog
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 8092
|
||||||
|
targetPort: 8092
|
||||||
|
protocol: TCP
|
||||||
Loading…
Reference in a new issue