When executing mwscript-k8s --follow -- extensions/CirrusSearch/maintenance/Metastore.php --wiki testwiki --cluster codfw --show-index-version there's a failure when MW tried to connect to the search cluster:
Elastica\Exception\Connection\HttpException from line 186 of /srv/mediawiki/php-1.44.0-wmf.8/vendor/ruflin/elastica/src/Transport/Http.php: Couldn't connect to host, Elasticsearch down? #0 /srv/mediawiki/php-1.44.0-wmf.8/vendor/ruflin/elastica/src/Request.php(183): Elastica\Transport\Http->exec(Object(Elastica\Request), Array) #1 /srv/mediawiki/php-1.44.0-wmf.8/vendor/ruflin/elastica/src/Client.php(545): Elastica\Request->send() [...]
This execution is supposed to initiate a connection to the service search-omega-codfw:
- proxied via http://localhost:6203 to https://search.svc.codfw.wmnet:9443
Quickly looking at the egress rules & envoy configuration they appear to be correct.
A possible explanation might be that the tls proxy container is not yet ready when the php container entrypoint (the mwscript itself) is started.