Pod scheduling in Kubernetes
Learn Pod Scheduling in Kubernetes
Learn Pod Scheduling in Kubernetes
Part1 : Basic Setup and Installation for Kubectl Setting up your kubectl environment is a crucial step in learning Kubernetes. Here’s a step-by-step guide to help you set up kubectl for learning purposes: 1. Install kubectl: On Linux: $sudo apt-get update && sudo apt-get install -y kubectl On macOS (using Homebrew): $brew install kubectl On …
What is the default cascade deletion strategy in Kubernetes? Kubernetes deletes dependent resources in background mode by default, which means when you delete a resource, for example, Deployment, the controller deletes the Deployment resource, returns you the result and removes ReplicaSets and Pods in the background. In the foreground mode, it waits until all dependent resources get …
Which Kubernetes component is responsible for routing Service traffic to Pods? kube-proxy is the component which is responsible for routing Service traffic to Pods. It can be run in two modes on Linux machines. iptables mode or ipvs mode. In both cases, kube-proxy configures the underlying service to route traffic from ClusterIP to Pods. Can we run a Pod …
How to access kubernetes service from external world / outside the world ? Means that wordpress I would like to hit from the external world. In docker host, container ip address is reachable within the cluster they run behind the bridge network, same applicable over here in k8s too. By default publicly we cannot access …
How to Create single endpoint to access deployment pod ? Suppose we have integrated two microservices pod , but If pod has got deleted then pod ip will change. Here kubeproxy comes into the pictures : It will provide static ip When I say in this deployment I need static ip which I will give …
“Understanding Service IPs and Endpoint Management in Kubernetes” Read More »
Cluster IP Node Port Tier Backend —-> clusterip db to to wordpress Frontend—-> node port or Ingress controller Cluster IP –>mysql Nodeport–> wordpress So we will be having two deployment one is of mysql, and other is of wordpress. And in wordpress deployment we have to put cluster ip of mysql So mysql endpoint 10.99.249.125 …
“Kubernetes WordPress Deployment with MySQL Cluster IP and NodePort” Read More »
Expectations: Practical : We have created deployment name test –image=nginx and created 3 pods. Same container who are running on the same node. We can see they can reach. But why it is happening ? 1) Kubernetes cluster network on SDN (CNI) concept. ( software defined network) which provide L3 Layer networking in k8s. 2) …
ArchitechtureMaster Node InstallationWorker Node InstallationNamespaceReplication controllerlabel and selectorReplica setDeployment ControllerPod vs ContainerPod schedulingNode label and selectorTaint and ToleranceNode level Affinity and Anti AffinityPodAffinity and Anti-AffinityResource and Compute QuotaRequest and LimitKubernetes NetworkingService Ip Cluster TypeNode PortIngress ControllerCore DNSPod network policyRBACService AccountVolume static VolumePersistence Volume Dynamic ProvisioningEKS VolumeLocal VolumeSecret and Config MapHorizontal Pod AutoscalingProbesHelm ChartOpenSource Tool like …
Kubernetes came into the picture after the Software development teams started switching from monolithic and microservices architecture to containerization because of scalability and deployment issues. Containerization does solve the issue of scalability, downtime and dependency management quite efficiently however there are still some issues that remain unsolved. Kubernetes TerminologyTerms that you should be familiar with …