diff --git a/ghost-en/configmap-redirects.yaml b/ghost-en/configmap-redirects.yaml new file mode 100644 index 0000000..35232d9 --- /dev/null +++ b/ghost-en/configmap-redirects.yaml @@ -0,0 +1,14 @@ +--- +# Ghost custom redirects (content/data/redirects.yaml). +# Managed via GitOps so it survives content PVC recreation. +# Mounted read-only via subPath into the Ghost container; edits require a +# `kubectl rollout restart` (subPath mounts do not hot-reload on ConfigMap change). +apiVersion: v1 +kind: ConfigMap +metadata: + name: ghost-en-redirects + namespace: ghost-en +data: + redirects.yaml: | + 301: + ^/pentagon-second-uap-declassification-may-2026-apollo-12-sandia/?$: /pentagon-uap-second-release-may-2026/ diff --git a/ghost-en/deployment.yaml b/ghost-en/deployment.yaml index 110dc17..1b0b831 100644 --- a/ghost-en/deployment.yaml +++ b/ghost-en/deployment.yaml @@ -101,10 +101,19 @@ spec: volumeMounts: - name: ghost-en-content mountPath: /var/lib/ghost/content + # Custom redirects, GitOps-managed via the ghost-en-redirects ConfigMap. + # Nested read-only file mount inside the content PVC's data dir. + - name: redirects + mountPath: /var/lib/ghost/content/data/redirects.yaml + subPath: redirects.yaml + readOnly: true volumes: - name: ghost-en-content persistentVolumeClaim: claimName: ghost-en-content + - name: redirects + configMap: + name: ghost-en-redirects --- apiVersion: v1