Terraform is a IaaC tool developed by Hashicorp. It can be used with multiple platforms like AWS, Microsoft Azure, GCP and provision different environments.
Running Terraform is simple, you simply need to install Terraform first on the host you intend to run, whether it be local, remote or cloud hosts. Move to desired location /usr/local/bin. Then create a Terraform config file – which is written in HCL (Hashicorp Config Language) that ends with .tf extension.
Using simple commands like Terraform init, plan, apply, destroy, you can manage and provision infrastructure safely and efficiently.
See my Video tutorial on setting up Terraform on AWS EC2 instance.
Category: Virtualization
IaaC and my weapons of choice
With Infrastructure as a Code IaaC, you can manage any infrastructure such as Network, Servers, Storage and Applications. There are many common IaC tools. Although you can use any combination of these tools to create similar solutions, these are strength in each tools and these are my preferences to achieve different goals.

Image Templates
You need image templates to create custom images of a Virtual Image or Container.
Then you will need software and dependencies installed on it. My weapon of Choice – Docker
Configuration Management
Ansible – the strength of this tool is that it is Idempotent. There is Ansible Playbook will which will check with repository. You can run the code multiple times and every time you run the code, it will only make changes to the difference and bring the code to defined state.
Provisioning Tools
Terraform – This Hashicorp tool supports almost every infrastructure and it can be set up on many platforms, AWS, VMware, Azure, you name it.
Cloud Formation – simply because it is AWS proprietary. If your job has alot to do with AWS, Cloud Formation is the way to go.
Teza
Installing Minikube on Linux
To put in a simplest way, Minikube is a compact version of Kubernetes. Minikube -> Mini Kubernetes
Instead of having Master – Slave nodes set up in Kubernetes, Minikube will have all components installed in one single node cluster.
Due to limitation of your infrastructure and resources or if you just want to trial out your Kubernetes clusters, Minikube is the way to go.
Minikube will have Kubernetes Features such as –
– Config Maps, Secrets
– Container Runtime : Docker
– CNI for pod networking
– Ingress
– Dashboard
Below is a set up guide for Minikube on MX Linux.
$ uname -a
Linux mx 5.10.0-5mx-amd64 #1 SMP Debian 5.10.26-1~mx19+1 (2021-04-01) x86_64 GNU/Linux
1. Update Linux
Sudo apt update
2. Install KVM ( any kind of Hypervisor, or you can also install on docker)
Link on how to install KVM
https://tutorialforlinux.com/2020/05/19/step-by-step-kvm-mx-linux-19-installation-guide/4/
3. Download and install Minikube (Minikube has Kubectl dependency, so you will need to install kubectl first)
Minikube reference : https://minikube.sigs.k8s.io/docs/
4. Install Kubectl command line
https://kubernetes.io/docs/tasks/tools/
After all components are installed, you can now start Minikube ..
Simply use the command : minikube start
or just type in the command line minikube and it will give you the list of available commands.
To run minikube in hypervisor –
minikube start –vm-driver=kvm
In my case, KVM or any hypervisor you are going to use.
List of available drivers –
https://minikube.sigs.k8s.io/docs/drivers/
- Docker – container-based (preferred)
- KVM2 – VM-based (preferred)
- VirtualBox – VM
- None – bare-metal
- Podman – container (experimental)
- SSH – remote ssh
Useful commands –
kubectl cluster-info
kubectl config view
kubectl get nodes
kubectl get pod -o wide to get more information of the pods
kubectl version
minikube status
minikube dashboard –url to access Kubernetes dashboard
You will need minikube commands only at the beginning. The rest is the same as using normal kubernetes, you just need to use kubectl command.
Regards
Teza
โ Exiting due to MK_ENABLE: run callbacks: running callbacks: [waiting for app.kubernetes.io/name=ingress-nginx pods: timed out waiting for the condition]
Apparently there seems to be an issue with creating Ingress controller in Minikube version 1.21
when you try to run – minikube addons enable ingress, it will be stuck at Verifying ingress addon and will come up with time out error. So far, doesnt seem like there is a fix for it. Edit: apparently if you stop / start and re run minikube addons enable ingress, it seems to be fixed.
$ minikube addons enable ingress
๐ Verifying ingress addonโฆ
โ Exiting due to MK_ENABLE: run callbacks: running callbacks: [waiting for app.kubernetes.io/name=ingress-nginx pods: timed out waiting for the condition]
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ ๐ฟ If the above advice does not help, please let us know: โ
โ ๐ https://github.com/kubernetes/minikube/issues/new/choose โ
โ โ
โ Please attach the following file to the GitHub issue: โ
โ – /tmp/minikube_addons_b9d409a27fb1ea07e9f9f77a8866bd7b473d6d28_0.log
Launching EC2 Instances on AWS
After reviewing my video, when i was first accessing my DB instance from my local server, I could not access and the reason was because of the internal IP. ๐ what was I thinking, anyways its just a demo video so I hope you can forgive me with that.
Anyways, more video tutorials to come. Please like and subscribe. That will motivate me to create more videos. Cheers
AWS Virtual Private Cloud Setup
This is my Video tutorial on how to manually set up Virtual Private Cloud VPC on Amazon AWS.
This will include setting up, VPCs, Subnets, Internet Gateways, Security Policy etc.
If you like this video and want more contents like this, please like and subscribe.
Why not! Its just one simple click and you will not lose anything!
Hyper V not connected to the internet
Are you having issues with Hyper-V not connected to internet?
There could be a few reasons.
But the most likely issue is with your Virtual Switch.
Here is a tutorial I created on how to set up your virtual switch to get internet connection on your VM.
If you find this video helpful, please like and subscribe.
I have more contents to share.
Creating VMs using Azure quickstart templates
Cloud virtualization is a thing these days.
Its not hard. In fact, its very simple. There are existing preconfigured templates which you can use.
A few clicks and you are good to go.
All you need to do is start using it.
Here is my video tutorial on how to create Virtual machines on Azure cloud using quickstart template.
If you like my video tutorials, please like and subscribe.