diff --git a/apps/base/sirius-growth/deployment-blog.yaml b/apps/base/sirius-growth/deployment-blog.yaml new file mode 100644 index 0000000..65f227c --- /dev/null +++ b/apps/base/sirius-growth/deployment-blog.yaml @@ -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 diff --git a/apps/base/sirius-growth/deployment.yaml b/apps/base/sirius-growth/deployment.yaml index 07e82ef..ab34513 100644 --- a/apps/base/sirius-growth/deployment.yaml +++ b/apps/base/sirius-growth/deployment.yaml @@ -21,7 +21,7 @@ spec: kubernetes.io/hostname: siriussec containers: - name: nginx - image: forgejo.siriusdevops.com/sirius/sirius-growth-site:428592690bd7a3fecee7990a59119db4ff895079 + image: forgejo.siriusdevops.com/sirius/sirius-growth-site:d44446c87c5894de29739ee0bd25f40146148bd5 imagePullPolicy: IfNotPresent ports: - containerPort: 80 diff --git a/apps/base/sirius-growth/kustomization.yaml b/apps/base/sirius-growth/kustomization.yaml index b3e796c..af13e54 100644 --- a/apps/base/sirius-growth/kustomization.yaml +++ b/apps/base/sirius-growth/kustomization.yaml @@ -5,11 +5,13 @@ resources: - deployment.yaml - deployment-api.yaml - deployment-portal.yaml + - deployment-blog.yaml - deployment-portal-gate.yaml - configmap-portal-gate.yaml - service.yaml - service-api.yaml - service-portal.yaml + - service-blog.yaml - service-portal-gate.yaml - httproute.yaml - cluster.yaml diff --git a/apps/base/sirius-growth/service-blog.yaml b/apps/base/sirius-growth/service-blog.yaml new file mode 100644 index 0000000..9508ad7 --- /dev/null +++ b/apps/base/sirius-growth/service-blog.yaml @@ -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