Skip to main content

Posts

Showing posts from August, 2019

Minikube Installation

There are lots of other ways to build a kube cluster, such as kubeadm, or my favourite Kubernetes the hard way. However, we will create a kube cluster locally on our workstation using Minikube. I should point that all the things I'll demo in this course will work the same way irrespective of how the Kube Cluster was built. Earlier we talked about how to install minikube, lets now if it has really installed by running a minikube command: $ minikube version minikube version: v1.0.1 Similarly you check it's status: $ minikube status host: kubelet: apiserver: kubectl: To create a new kubecluster, we run (note this can take several minutes): $ minikube start If you open up the virtualbox gui, you should see a new vm called minikube running. If you check the status again, you should now see: $ minikube status host: Running kubelet: Running apiserver: Running kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100 Here it s...

MiniKube Installation using Powershell

Minikube is a CLI tool that provisions and manages the lifecycle of single-node Kubernetes clusters running inside Virtual Machines (VM) on your local system. It runs a standalone cluster on a single virtual machine for a quick Kubernetes setup so that you can easily and quickly try your hands at deploying and testing Kubernetes on your own time. To install & configure Minikube, run the below powershell command & you can have a standalone Kubernetes cluster running locally. <# .Synopsis Install MiniKube + Kubectl .DESCRIPTION This script downloads the executables for MiniKube, Kubectl, configures Hyper-V as the hypervisor (if not configured already) together with configuring a specific network adapter for use with the Minikube virtual machine .EXAMPLE Install-MiniKube #> ## Check if running as a Administrator (needed for Hyper-V commands) $currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurre...

Overview of Kubernetes

Kubernetes is an open-source system for automating deployment, scaling and management of containerized applications. source: kubernetes.io Built from the Google project Borg. Kubernetes is all about decoupled and transient services. Decoupling means that everything has been designed to not require anything else. Transient means that the whole system expects various components to be terminated and replaced. A flexible and scalable environment means to have a framework that does not tie itself from one aspect to the next and expect objects to die and to reconnect to their replacements. Kubernetes deploy many microservices. Other parties (internal or external to K8s) expect that there are many possible microservices available to respond a request, to die and be replaced. The communication between components is API call driven. It is stored in JSON but written in YAML. K8s convert from YAML to JSON prior store it in the DB. Other solutions to Kubernetes are: • Docker Swarm • Apach...

Search string in all SQL database tables

The below script will provide the occurrence of your string in all the columns of all database tables in your SQL Server. Declare @SearchString VARCHAR(100) --Replace ASHISH with your string SET @SearchString='ASHISH' DECLARE @DatabaseName VARCHAR(100) DECLARE @SchemaName VARCHAR(100) DECLARE @TableName VARCHAR(100) DECLARE @ColumnName VARCHAR(100) DECLARE @FullyQualifiedTableName VARCHAR(500) Declare @DataType VARCHAR(50) --Create Temp Table to Save Results IF OBJECT_ID('tempdb..#Results') IS NOT NULL DROP TABLE #Results CREATE TABLE #Results ( DatabaseName VARCHAR(100) ,SchemaName VARCHAR(100) ,TableName VARCHAR(100) ,ColumnName VARCHAR(100) ,ColumnDataType VARCHAR(50) ,TotalTableRowCount INT ,StringOccuranceRecordCount INT ) DECLARE Cur CURSOR FOR SELECT C.Table_CataLog ,C.Table_Schema ,C.Table_Name ,C.Column_Name ,'[' + C.Table_CataLog + ']' + '.[' + C.Table_Schema + '].' + '[' + C.Table_Name + ...