Kubernetes (k8s) – Open-source container orchestration platform that automates many of the manual processes involved in deploying, managing, and scaling containerized applications. Namespaces – Virtual cluster backed by the same physical cluster. Namespaces are the way to separate and organize objects such as pods and containers in your cluster Role-Based Access Control (RBAC) – Method…
Git Bash Quick New Repo Push
1. Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these files after your project has been pushed to GitHub. 2. Open Git Bash, Change the current working directory to your local project, Initialize the local directory as a Git…
S3 Sync Bandwidth Limitations
By default S3 Sync will consume around 40 MB/s (320 Mbps) We can limit the bandwidth by using the limitation parameters in AWS Config Example : To limit to 5 MB/s aws configure set default.s3.max_bandwidth 5MB/s Only adding the above parameter will not work, we need to update concurrent threads too, because here the limiting bandwidth…
AWS Errors
After adding your configuration with aws configure, when you try to connect to AWS the following error occurs [ansible@awsclient ~]$ aws s3 ls An error occurred (RequestTimeTooSkewed) when calling the ListBuckets operation: The difference between the request time and the current time is too large. Solution: Install and Configure NTP client for your AWS Client …
CentOS Alternatives
CentOS (Community Enterprise Operating System) is the Project affiliated with RedHat, initially released in the month of May 2004 under FOSS (Free and Open-Source Software) & General Public License. CentOS released the versions according to the Red Hat Enterprise Linux (RHEL) life cycle which is Commercial under RedHat EULA (End User License Agreement). The Presence…
Amazon Linux On-Premise VM
Use the Amazon Linux 2 virtual machine (VM) images for on-premises development and testing. These images are available for use on the following virtualization platforms: VMWare, KVM, VirtualBox (Oracle VM), Microsoft Hyper-V https://cdn.amazonlinux.com/os-images/2.0.20201111.0/vmware/ https://cdn.amazonlinux.com/os-images/2.0.20201111.0/kvm/ https://cdn.amazonlinux.com/os-images/2.0.20201111.0/virtualbox/ https://cdn.amazonlinux.com/os-images/2.0.20201111.0/hyperv/ How to Install Amazon Linux on On-Premises VMWare 1. Download the VM Image and upload to VM Datastore: For…
Ansible Vault
The ansible vault allows file encryption and requires a password to unencrypt Command: ansible-vault encrypt <file> The ansible-vault rekey command will allow you to re–encrypt a file and reset the password To supply the vault password during play execution, you must use either of the –ask-vault-password or –ask-vault-file flags Ansible 2.4 introduces the –vault-id feature…
Ansible Parallelism
It is possible to control the number of hosts acted upon at once tie by Ansible. The Ansible process will create forks to execute actions in parallel. Parallelism is the word used for Ansible default ability to interact with multiple hosts at the same time. The parallel processes spawned by Ansible are known as forks…
Ansible Galaxy
Ansible Galaxy (https://galaxy.ansible.com/) is essentially a large public repository for sharing and downloading community developed ansible roles. Roles ship with readmes detailing role use and available variables. Galaxy contains a large number of roles that are constantly evolving and increasing. Galaxy can use git allowing for other role sources such as GitHub. The ansible-galaxy utility…
Ansible Roles
Roles The default location for roles is /etc/ansible/roles Roles provide a way to automatically load certain vars_files, tasks and handlers based on a known file structure Roles expect a particular directory structure Directories not being used may be excluded Each directory in use contains a main.yml with relevant content Roles Directories Tasks – Contains the…