There was a requirement in one of the projects to create multiple (approx. 60) datastores using a PowerCLI script. We wrote a PowerCLI script to perform this operation on multiple LUNs presented to all ESXi hosts in the cluster.
Just replace the vCenter_Server_IP_Address/FQDN, Path of File Containing Datastore Names, NAA Ids, ESXi Host, Cluster Name and Sleep Interval after each Datastore creation operation with the details of your environment. BOOM!!
There was a requirement in one of the projects to export permissions assigned to each Virtual Machine hosted in a vSphere Environment. We wrote a PowerCLI script to fetch the list of users along with the Role assigned to each user and export these details to a CSV file.
Just replace the vCenter_Server_IP_Address/FQDN and Path of CSV File and run the script to export VI Permissions assigned to each Virtual Machine in vSphere environment. BOOM!!
In order to leverage Kubernetes platform for deploying Containerized Applications, we need to set up a Kubernetes cluster. In my Home Lab, i have used 2 Ubuntu 18.0.4.03 Virtual Machines to create a Kubernetes cluster. Ubuntu machines should have Internet connectivity, name resolution should work between both the machines and machines should be patched & updated.
Configuring a Kubernetes Cluster on Ubuntu:
Pre-requisites:
1. 2 X Ubuntu 18.04.3 VMs 2. Each VM should have minimum of 2 vCPUs and 2 GB RAM
Configuration Steps:
1.Install Docker on both the nodes:
sudo apt install docker.io
Run the below command to check the verion of Docker:
docker –version
2.Enable Docker on both the nodes:
sudo systemctl enable docker
Run the following command to install curl on both the VMs: sudo apt install curl
4.Add the Kubernetes signing key on both the nodes:
For those of you who didn’t knew, Kubernetes has a GUI based Dashboard which can be used for almost every admin task once the cluster has been set up. Use the below steps to deploy the Dashboard UI:
Use the following command to check the status of all the Cluster Nodes:
sudo kubectl get nodes
If you have followed all the above steps the Output should be something like this:
Pro-Tip: Some people like to use Pycharm for writing YAML files for Kuberetes but i like to use Visual Studio Code for all my Command Line stuff. You can install an extension for Remote-SSH in Visual Studio Code and connect to your Kubernetes Cluster using Visual Stutio Code.