Install kubectl
sudo snap install kubectl --classic
Install AZ CLI
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
helps you achieve understanding, develop good practices, and operate your team and organization for maximum DevOps awesomeness
sudo snap install kubectl --classic
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
sudo apt-key list apt-key export 0EBFCD88 | sudo gpg --dearmour -o /usr/share/keyrings/docker.gpg #edit file sudo vim /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list #from deb https://download.docker.com/linux/ubuntu focal stable #to deb [arch=amd64 signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu focal stable
# Get cluster health
GET _cluster/health
# Get Index helath - Look for the red/yellow index
GET /_cat/indices
# Update number_of_replicas to 0.
PUT /.ds-logs-apm.error-default-2023.10.06-000002/_settings
{
"number_of_replicas": 0
}
#This will change for all index with this patent
PUT /.ds-traces-apm-default-2023*/_settings
{
"number_of_replicas": 0
}
logrotate state -- version 2 "/var/log/ufw.log" 2022-3-20-6:25:1 "/var/log/nginx/web_xxx.access.log" 2022-3-23-6:25:1 "/var/log/nginx/access.log" 2018-8-2-21:0:0 "/var/log/apt/history.log" 2021-11-8-6:25:1 "/var/log/user.log" 2022-3-23-6:0:0
compressing log with: /bin/gzip renaming /home/deployer/apps/api_abc_co/shared/log/sidekiq.log.2.gz to /home/deployer/apps/api_abc_co/shared/log/sidekiq.log.3.gz (rotatecount 2, logstart 1, i 2), renaming /home/deployer/apps/api_abc_co/shared/log/sidekiq.log.1.gz to /home/deployer/apps/api_abc_co/shared/log/sidekiq.log.2.gz (rotatecount 2, logstart 1, i 1), renaming /home/deployer/apps/api_abc_co/shared/log/sidekiq.log.0.gz to /home/deployer/apps/api_abc_co/shared/log/sidekiq.log.1.gz (rotatecount 2, logstart 1, i 0), copying /home/deployer/apps/api_abc_co/shared/log/sidekiq.log to /home/deployer/apps/api_abc_co/shared/log/sidekiq.log.1 truncating /home/deployer/apps/api_abc_co/shared/log/sidekiq.log removing old log /home/deployer/apps/api_abc_co/shared/log/sidekiq.log.3.gz error: error opening /home/deployer/apps/api_abc_co/shared/log/sidekiq.log.3.gz: No such file or directory
// To install git
sudo apt install git// To check the git version
git --version//To setup the username and email to communitcate with any repo
git config --global user.name "Your Name"
git config --global user.email "youremal@email.com"
[root@ebs121db1-mylocal-com ~]# fdisk -l WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion. Disk /dev/sda: 50.0 GB, 50010783744 bytes, 97677312 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 1048576 bytes Disk label type: gpt Disk identifier: A21E6499-33C5-401E-9330-8331C0E94D2C # Start End Size Type Name 1 2048 411647 200M EFI System EFI System Partition 2 411648 17188863 8G Linux swap 3 17188864 97675263 38.4G Microsoft basic Disk /dev/sdb: 536.9 GB, 536870912000 bytes, 1048576000 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
[root@ebs121db1-mylocal-com ~]# resize2fs /dev/sdb resize2fs 1.45.4 (23-Sep-2019) Filesystem at /dev/sdb is mounted on /u01; on-line resizing required old_desc_blocks = 19, new_desc_blocks = 32 The filesystem on /dev/sdb is now 131072000 (4k) blocks long. [root@ebs121db1-mylocal-com ~]# df -h /u01 Filesystem Size Used Avail Use% Mounted on /dev/sdb 492G 260G 209G 56% /u01 [root@ebs121db1-mylocal-com ~]#
Install kubectl sudo snap install kubectl --classic Install AZ CLI curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash ...