k8s: Switch faster between clusters and namespaces in kubectl

Managing cluster and namespace in k8s sometime is quite complicated especially when you have to deal with multiples resources. There is a great project called kubectx that makes your life easy. kubectx helps you switch between clusters back and forth and kubens helps you switch…

Keep reading

MariaDB useful commands

Checking current max connections. show status where `variable_name` = 'Max_used_connections'; Checking threads connect show status where `variable_name` = 'Threads_connected'; Checking current process show full processlist;…

Keep reading

Ansible: Azure Resource Manager inventory plugin (part 2)

Continuing the ARM inventory plugin post. Follow below some useful settings to help you to generate a good dynamic inventory. Working with group conditionalconditional_groups: # since this will be true for every host, every host sourced from this inventory plugin config will be in the…

Keep reading

Ansible: string vault

Ansible Vault is a feature of ansible that allows you to keep sensitive data such as passwords or keys in encrypted files, rather than as plaintext in playbooks or roles. These vault files can then be distributed or placed in source control. The ansible-vault encrypt_…

Keep reading

MariaDB: How-to check connections and threads connected

Sometimes we have to do some troubleshooting inside our database environment such as checking the current connections and threads for instance. The number of connections and threads are good indicators for capacity planning as well. In this post, I will show some commands to get…

Keep reading