We currently store private settings in a local git repo on the deploy host (/srv/mediawiki-staging/private). These files will need to accompany MediaWiki deployments on k8s and so will need to exist in compatible location.
One seemingly straightforward approach might be to:
- Move the directory contents into a k8s Secret.
- Mount the secret as a volume projection in the MW container (managed by the eventual Helm chart for MW).
- For legacy deployments, create a cron job on deployment hosts that polls the k8s secret and syncs its contents with /srv/mediawiki-staging/private.
While the third item feels a bit icky, it would only be a requirement for legacy deploys and would be phased out with the completion of the k8s migration.