Skip to content

Instantly share code, notes, and snippets.

View AlexP-Elastic's full-sized avatar

Alex Piggott AlexP-Elastic

View GitHub Profile
@AlexP-Elastic
AlexP-Elastic / disable-adminconsole-indexer.sh
Created September 20, 2023 22:19 — forked from daniel-bytes/disable-adminconsole-indexer.sh
ECE found-shell script to disable indexer mode and migrations for the adminconsole container. Create this file, chmod +X it, run it with the bypass option (1), fix your env, run the script again with the cleanup option (2)
#!/bin/bash
set -e
echo "=================================================================================================="
echo "NOTE: The script will set the Adminconsole to api-only mode (no indexer), so that"
echo " migrations are bypassed and Adminconsole can boot for environment salvage operations."
echo " Please run the same script with the cleanup option afterwards."
echo ""
echo "IMPORTANT: Until the cleanup script is run, adminconsole will not be able to index "
echo " changes in the admin cluster, breaking the Deployments dashboard and "

Keybase proof

I hereby claim:

  • I am AlexP-Elastic on github.
  • I am alexpiggott (https://keybase.io/alexpiggott) on keybase.
  • I have a public key whose fingerprint is 2266 AF12 1966 2C77 0E9F 7C74 8BDD 5332 0551 E362

To claim this, I am signing this object:

{
"tags": [{
"name": "PlatformInfrastructure"
}, {
"name": "ClustersElasticsearch"
}, {
"name": "ClustersKibana"
}, {
"name": "Platform"
}, {
{
"tags": [{
"name": "PlatformInfrastructure"
}, {
"name": "ClustersElasticsearch"
}, {
"name": "ClustersKibana"
}, {
"name": "Platform"
}, {