Skip to main content


Showing posts from October, 2019

Kubernetes ReplicaSet

We need multiple replicas of containers running at a time because: Redundancy: fault-tolerant system Scale: more requests can be served Sharding: computation can be handled in a parallel manner Multiple copies of pods can be created manually, but it’s a tedious process. We need a way in which a replicated set of pods can be managed and defined as a single entity. This what the  ReplicaSet  does: ensures the right types and number of pods are running correctly. Pods managed by a ReplicaSet are automatically rescheduled during a node failure or network partition. When defining ReplicaSet, we need: specification of the pods we want to create desired number of replicas a way of finding the pods controlled by the ReplicaSet Reconciliation Loops This is the main concept behind how ReplicaSets work and it is fundamental to the design and implementation of Kubernetes. Here we deal with two states: desired state is the state you want - the d

Deploy docker image to Azure Kubernetes Service

In this tutorial, we will learn how to deploy container image into Kubernetes cluster using Azure Kubernetes Service. I am assuming that you have already pushed an image into your Azure container registry. You may refer the below articles for Docker image & Azure container registry. Create Container image Push container image to Azure container registry NOTE: We will use Azure CLI hence install Azure CLI version 2.0.29 or later. Run az –version to find the version. Select your subscription. Replace <<subscription ID>> with your subscription id. az account set --s <<subscription ID>>      2. If you have an existing resource group, you can skip this step else you can create a new resource group. az group create --name <<resource group name>> --location <<location>> Example: az group create --name helloworldRG --location westeurope Create Azure Kubernetes Service. az aks create --resource-group <<resource

Alternative to Azure SQL Server authentication

You might have faced issues when you forget your Azure SQL Server password and unable to login in server. Follow the below steps to configure an admin in Azure SQL Server via Azure Portal. 1. Go to Azure SQL Server and navigate to Active Directory admin in you left navigation bar. Then click Set Admin and add your Azure account. 2. Open your SSMS and enter your SQL Server name and in Authentication you can select one of the Active Directory- Password (or Active Directory – Universal with MFA support if MFA is enabled).