MediaWiki
MediaWiki is the wiki software that powers Wikipedia. It provides a full-featured collaborative wiki with a rich extension ecosystem.
Dependencies
- MySQL - Database for storing wiki content
- SMTP - For email notifications and password resets
Configuration
Key settings in config.yaml:
- domain - Where MediaWiki will be accessible
- storage - Persistent volume size (default:
2Gi) - siteName - Name of your wiki (default:
My Wiki) - adminUser - Admin account username (default:
admin)
First-Time Setup
MediaWiki requires a web-based installer after deployment to generate LocalSettings.php.
-
Add and deploy the app:
wild app add mediawiki wild app deploy mediawiki -
Visit
/mw-config/to run the web installer. -
In the installer:
- Database type: MySQL
- Database host: value of
db.hostfrom your config - Database name: value of
db.name(default:mediawiki) - Database user/password: from your config and
secrets.yaml - Admin username/password: set to the values in your config and
secrets.yaml
-
At the end of the installer, download
LocalSettings.phpand copy it into the pod:kubectl cp LocalSettings.php mediawiki/<pod-name>:/var/www/html/LocalSettings.php -
The wiki is now live.
Notes
- The
secretKeyandupgradeKeyare auto-generated insecrets.yaml - Extensions can be installed by copying them into the pod's
/var/www/html/extensions/directory - The wiki will show a "maintenance mode" page until
LocalSettings.phpis in place