purgeList and a handful of other maintenance scripts are supposed to work without a wiki argument; this was certainly supported a few months ago (T368966#9947478) and is also documented on Wikitech (permalink). However, it doesn’t currently work:
lucaswerkmeister-wmde@deploy2002 ~ $ printf 'https://en.wikipedia.org/static/images/%s\n' 'mobile/copyright/wikimaniawiki-wordmark.svg' 'project-logos/wikimaniawiki-1.5x.png' 'project-logos/wikimaniawiki-2x.png' 'project-logos/wikimaniawiki.png' 'icons/wikimaniawiki.svg' | mwscript-k8s --attach -- purgeList ⏳ Starting purgeList on Kubernetes as job mw-script.codfw.0vww27bg ... ⏳ Waiting for the container to start... 🚀 Job is running. 📜 Attached to stdin/stdout: error: unable to upgrade connection: container mediawiki-0vww27bg-app not found in pod mw-script.codfw.0vww27bg-7jzmf_mw-script ☠️ Command failed with status 1: /usr/bin/kubectl attach --quiet job/mw-script.codfw.0vww27bg --container mediawiki-0vww27bg-app -i For logs (may not work) run: K8S_CLUSTER=codfw KUBECONFIG=/etc/kubernetes/mw-script-deploy-codfw.config kubectl logs -f job/mw-script.codfw.0vww27bg mediawiki-0vww27bg-app lucaswerkmeister-wmde@deploy2002 ~ $ K8S_CLUSTER=codfw KUBECONFIG=/etc/kubernetes/mw-script-deploy-codfw.config kubectl logs -f job/mw-script.codfw.0vww27bg mediawiki-0vww27bg-app Usage: mwscript scriptName.php --wiki=dbname lucaswerkmeister-wmde@deploy2002 ~ $ printf 'https://en.wikipedia.org/static/images/%s\n' 'mobile/copyright/wikimaniawiki-wordmark.svg' 'project-logos/wikimaniawiki-1.5x.png' 'project-logos/wikimaniawiki-2x.png' 'project-logos/wikimaniawiki.png' 'icons/wikimaniawiki.svg' | mwscript-k8s --attach -- purgeList enwiki ⏳ Starting purgeList on Kubernetes as job mw-script.codfw.gfsw4n1u ... ⏳ Waiting for the container to start... 🚀 Job is running. 📜 Attached to stdin/stdout: Purging 5 urls Done!
For purgeList, this is merely an inconvenience, but it might be a bigger problem for addWiki where the target wiki doesn’t exist yet.