Skip to main content

Posts

Showing posts from June, 2020

01 Getting Started with Git in Hindi

01 - Getting start with Git in Hindi

Hi Folks, I have started git video series in Hindi.  find the below youtube link.

How to achieve Node Affinity (Hard) in K8S 1/2

 If you are running with a multi-mode cluster and when you want to place your pods on specific nodes then node affinity is the best option. to achieve the node affinity you have to mention in the manifest specification. There are two types of affinity: hard and soft.  requiredDuringSchedulingIgnoredDuringExecution ( Hard) preferredDuringSchedulingIgnoredDuringExecution (soft) when we use required that means hard affinity and preferred means soft affinity. In simple way when you want to place pod on specific node then you can use the required option and when you have two nodes then you can mention the weight to place the pods. Request: you need place a nginx pod to k8s-n2 with 2 replicas. Hard Affinity -     I have 3 node cluster as follows;           my manifest file as follows. In my manifest file if you see closely the match expression has set to key and value pairs. the key is "servers" and value is "qrst-ap...