<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Debug School: prashant</title>
    <description>The latest articles on Debug School by prashant (@pkpupri_358).</description>
    <link>https://www.debug.school/pkpupri_358</link>
    <image>
      <url>https://www.debug.school/images/N0s00unD3sbW-rC_JSpQeoFy0ZlcCOk5Ot2gAwsXo60/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvdXNl/ci9wcm9maWxlX2lt/YWdlLzE5Ny81MDQ2/YzVkNC02NTc2LTQ3/OTctYTU1Ny05ZDYy/ZWJlYjE5ZDEucG5n</url>
      <title>Debug School: prashant</title>
      <link>https://www.debug.school/pkpupri_358</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/pkpupri_358"/>
    <language>en</language>
    <item>
      <title>Learning in Kubernetes</title>
      <dc:creator>prashant</dc:creator>
      <pubDate>Fri, 11 Nov 2022 05:57:36 +0000</pubDate>
      <link>https://www.debug.school/pkpupri_358/learning-in-kubernetes-mf3</link>
      <guid>https://www.debug.school/pkpupri_358/learning-in-kubernetes-mf3</guid>
      <description>&lt;p&gt;ETCD-Kubernetes cluster uses etcd as its back up plan for data.&lt;br&gt;
Controller Manager:-responsible for onboarding new nodes to the cluster handling situations where nodes become unavailable or get destroyed to keep our application running&lt;br&gt;
API Server:-determines if a request is valid and then processes it &lt;br&gt;
Schedule:- a control plane process which assigns Pods to Nodes &lt;br&gt;
POD- Pod is not a physical entity. It just like isolate containers.&lt;br&gt;
Configmap:- store key value pair.&lt;br&gt;
Secret:- store key value in encoded form &lt;br&gt;
PV:-have a lifecycle independent of any individual Pod that uses the PV&lt;br&gt;
PVC:-PersistentVolumeClaim is a request for storage by a user &lt;br&gt;
Job:- run the process once &lt;br&gt;
Cronjob:- run the process in repeated interval &lt;/p&gt;

</description>
    </item>
    <item>
      <title>How Kubernetes works? All components and roles of their components</title>
      <dc:creator>prashant</dc:creator>
      <pubDate>Wed, 09 Nov 2022 07:44:50 +0000</pubDate>
      <link>https://www.debug.school/pkpupri_358/how-kubernetes-works-all-components-and-roles-of-their-components-1bk5</link>
      <guid>https://www.debug.school/pkpupri_358/how-kubernetes-works-all-components-and-roles-of-their-components-1bk5</guid>
      <description>&lt;p&gt;k8s cluster contains master and workers node. Master nodes distributes the workloads to the worker nodes and Worker nodes hosts the containers/pods.&lt;/p&gt;

&lt;p&gt;Master Node components:&lt;br&gt;
apiserver: Api server is used to establish any communication with the k8s cluster through REST APIs. Any input to k8s cluster is received in JSONs or .yml.&lt;br&gt;
Cluster storage: Its used to store all configuratons and state information of the cluster. It uses etcd to store the data. apiserver will connect with cluster store to fetch these informations.&lt;br&gt;
Kube Contoller manager- It runs in infinite loop and watches for any changes in the cluster. Status is collected and shared with apiserver thus ensuring apiserver has the latest status. Each component in the cluster has a separate controller. Eg: Node, Endpoint, Namespace etc.&lt;br&gt;
Kube scheduler - It watches apiserver for any new pods and schedules them in the available nodes.&lt;/p&gt;

&lt;p&gt;Worker Nodes components:&lt;br&gt;
Kubelet: kublet is an agent deployed in worker nodes and communicates with master node through apiserver. Kubelet instantiates pods in the nodes. Any nodes to be added to cluster requires kubelet to be setup.&lt;br&gt;
Container Engine: Container engine is used for Container management like pulling images and starting and stopping containers. &lt;br&gt;
Kube Proxy: Kube-proxy handles all networking requirements including load balancing across all pods, POD IP addresses.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What is POD?</title>
      <dc:creator>prashant</dc:creator>
      <pubDate>Wed, 09 Nov 2022 07:36:24 +0000</pubDate>
      <link>https://www.debug.school/pkpupri_358/what-is-pod-59f9</link>
      <guid>https://www.debug.school/pkpupri_358/what-is-pod-59f9</guid>
      <description>&lt;ol&gt;
&lt;li&gt;atomic unit of scheduling.&lt;/li&gt;
&lt;li&gt;containers always run inside the pod.&lt;/li&gt;
&lt;li&gt;pods is an virtual object.&lt;/li&gt;
&lt;li&gt;pods can have multiple containers and each container have different port.&lt;/li&gt;
&lt;li&gt;all the container in a pod share the pod environment. &lt;/li&gt;
&lt;li&gt;if a pod contain single container known as loose coupling.&lt;/li&gt;
&lt;li&gt;if a pod contain multiple container known as tight coupling.&lt;/li&gt;
&lt;li&gt;we cant restart or stop the pods.&lt;/li&gt;
&lt;li&gt;pod life-cycle contains pending, running, succeeded/failed phase.&lt;/li&gt;
&lt;li&gt;inter pod communication can be done using pod network.&lt;/li&gt;
&lt;li&gt;intra pod communication is done using pod ip address.&lt;/li&gt;
&lt;li&gt;Ephemeral - no Pod is ever “redeployed”&lt;/li&gt;
&lt;li&gt;Atomicity - they’re there or NOT&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Why we need Kubernetes?</title>
      <dc:creator>prashant</dc:creator>
      <pubDate>Wed, 09 Nov 2022 07:23:12 +0000</pubDate>
      <link>https://www.debug.school/pkpupri_358/why-we-need-kubernetes-1cn7</link>
      <guid>https://www.debug.school/pkpupri_358/why-we-need-kubernetes-1cn7</guid>
      <description>&lt;ol&gt;
&lt;li&gt;high deployment speed.&lt;/li&gt;
&lt;li&gt;ability to absorb change quickly.&lt;/li&gt;
&lt;li&gt;ability to recover quickly.&lt;/li&gt;
&lt;li&gt;hide complexity in the cluster.&lt;/li&gt;
&lt;li&gt;Automated rollouts and rollbacks.&lt;/li&gt;
&lt;li&gt;service discovery mechanism.&lt;/li&gt;
&lt;li&gt;load balancing.&lt;/li&gt;
&lt;li&gt;Storage orchestration.&lt;/li&gt;
&lt;li&gt;Self-healing&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>What is Kubernetes?</title>
      <dc:creator>prashant</dc:creator>
      <pubDate>Wed, 09 Nov 2022 07:19:16 +0000</pubDate>
      <link>https://www.debug.school/pkpupri_358/what-is-kubernetes-3o8e</link>
      <guid>https://www.debug.school/pkpupri_358/what-is-kubernetes-3o8e</guid>
      <description>&lt;ol&gt;
&lt;li&gt;container orchestrator.&lt;/li&gt;
&lt;li&gt;workload placement.&lt;/li&gt;
&lt;li&gt;infrastructure abstraction.&lt;/li&gt;
&lt;li&gt;desired state.&lt;/li&gt;
&lt;li&gt;open-source system for automating deployment.&lt;/li&gt;
&lt;li&gt;management of containerized applications.&lt;/li&gt;
&lt;li&gt;scaling of containerized applications.&lt;/li&gt;
&lt;li&gt;It groups containers that make up an application into logical units for easy management and discovery.&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>diff between docker pause and docker unpause?</title>
      <dc:creator>prashant</dc:creator>
      <pubDate>Mon, 07 Nov 2022 11:16:21 +0000</pubDate>
      <link>https://www.debug.school/pkpupri_358/diff-between-docker-pause-and-docker-unpause-3g4l</link>
      <guid>https://www.debug.school/pkpupri_358/diff-between-docker-pause-and-docker-unpause-3g4l</guid>
      <description>&lt;p&gt;Docker pause cmd:- suspends all processes in the specified container that means allocated cpu to that process is 0%.&lt;/p&gt;

&lt;p&gt;Docker unpause cmd:- un-suspends all processes in the specified containers. On Linux, it does this using the freezer cgroup.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;[root@localhost ~]# docker ps -a&lt;br&gt;
CONTAINER ID   IMAGE     COMMAND              CREATED             STATUS                        PORTS                                           NAMES&lt;br&gt;
c91a0f994f47   httpd     "httpd-foreground"   21 minutes ago      Exited (137) 12 minutes ago                                                   kind_meitner&lt;br&gt;
66d23993e0e4   httpd     "httpd-foreground"   22 minutes ago      Exited (0) 11 minutes ago                                                     clever_leavitt&lt;br&gt;
c213671a8288   httpd     "httpd-foreground"   22 minutes ago      Up 22 minutes                 0.0.0.0:80-&amp;gt;80/tcp, :::80-            &amp;gt;80/tcp   admiring_faraday&lt;br&gt;
708a7964a45f   httpd     "httpd-foreground"   23 minutes ago      Up 23 minutes                 80/tcp                                          romantic_kepler&lt;br&gt;
b21cb4ba98f8   httpd     "httpd-foreground"   About an hour ago   Up 50 minutes                 80/tcp                                          raj2&lt;br&gt;
a5151e54aa53   httpd     "httpd-foreground"   About an hour ago   Created                                                                       objective_austin&lt;br&gt;
[root@localhost ~]# docker pause c213671a8288&lt;br&gt;
c213671a8288&lt;br&gt;
[root@localhost ~]# docker ps -a&lt;br&gt;
CONTAINER ID   IMAGE     COMMAND              CREATED             STATUS                        PORTS                                           NAMES&lt;br&gt;
c91a0f994f47   httpd     "httpd-foreground"   22 minutes ago      Exited (137) 12 minutes ago                                                   kind_meitner&lt;br&gt;
66d23993e0e4   httpd     "httpd-foreground"   23 minutes ago      Exited (0) 12 minutes ago                                                     clever_leavitt&lt;br&gt;
c213671a8288   httpd     "httpd-foreground"   23 minutes ago      Up 23 minutes (Paused)        0.0.0.0:80-&amp;gt;80/tcp, :::80-            &amp;gt;80/tcp   admiring_faraday&lt;br&gt;
708a7964a45f   httpd     "httpd-foreground"   23 minutes ago      Up 23 minutes                 80/tcp                                          romantic_kepler&lt;br&gt;
b21cb4ba98f8   httpd     "httpd-foreground"   About an hour ago   Up 51 minutes                 80/tcp                                          raj2&lt;br&gt;
a5151e54aa53   httpd     "httpd-foreground"   About an hour ago   Created                                                                       objective_austin&lt;br&gt;
[root@localhost ~]# docker stats&lt;br&gt;
CONTAINER ID   NAME               CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
c213671a8288   admiring_faraday   0.00%     8.781MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
[root@localhost ~]# docker unpause c213671a8288&lt;br&gt;
c213671a8288&lt;br&gt;
[root@localhost ~]# docker ps&lt;br&gt;
CONTAINER ID   IMAGE     COMMAND              CREATED             STATUS          PORTS                               NAME            S&lt;br&gt;
c213671a8288   httpd     "httpd-foreground"   23 minutes ago      Up 23 minutes   0.0.0.0:80-&amp;gt;80/tcp, :::80-&amp;gt;80/tcp   admi            ring_faraday&lt;br&gt;
708a7964a45f   httpd     "httpd-foreground"   24 minutes ago      Up 24 minutes   80/tcp                              roma            ntic_kepler&lt;br&gt;
b21cb4ba98f8   httpd     "httpd-foreground"   About an hour ago   Up 51 minutes   80/tcp                              raj2&lt;br&gt;
[root@localhost ~]# docker stats&lt;br&gt;
CONTAINER ID   NAME               CPU %     MEM USAGE / LIMIT     MEM %     NET I/O     BLOCK I/O   PIDS&lt;br&gt;
c213671a8288   admiring_faraday   0.00%     8.781MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
708a7964a45f   romantic_kepler    0.00%     8.777MiB / 3.701GiB   0.23%     656B / 0B   0B / 0B     82&lt;br&gt;
b21cb4ba98f8   raj2               0.00%  &lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
