If you want to know on which nodes your pods are running, use this alias:
konode='k get pod -o=custom-columns=NAME:.metadata.name,STATUS:.status.phase,NODE:.spec.nodeName'If you want to know on which nodes your pods are running, use this alias:
konode='k get pod -o=custom-columns=NAME:.metadata.name,STATUS:.status.phase,NODE:.spec.nodeName'To show all collections for the specific database:
mongo <dbName> --quiet --eval "db.getCollectionNames().join('\n')”To get information about disk usage on every elasticsearch node:
curl -XGET "http://localhost:9200/_cat/allocation?v&pretty"If you are getting the following error while indexing:
{
"error": {
"root_cause": [
{
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
}
To create a ssh key:
ssh-keygen -f ~/.ssh/keyName_rsa -t rsa -b 4096Then, upload it to AWS Secret Manager to be used as Terraform key_name when creating instances for example:
aws secretsmanager create-secret --name "Path/To/KeyName" --description "Added Manually" --secret-string "$(cat ~/.ssh/keyName_rsa.pub)"To extend a logical volume after increasing the disk size, lets say AWS EBS:
sudo pvresize /dev/sdb
sudo lvextend -l +100%FREE /dev/vgName/lvName
sudo resize2fs /dev/vgName/lvName