<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sophie Shittu on Medium]]></title>
        <description><![CDATA[Stories by Sophie Shittu on Medium]]></description>
        <link>https://medium.com/@sophieshittu61?source=rss-825b6012cf0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wARWGNun06VogDHcxtxxYQ@2x.jpeg</url>
            <title>Stories by Sophie Shittu on Medium</title>
            <link>https://medium.com/@sophieshittu61?source=rss-825b6012cf0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 15:39:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sophieshittu61/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Do you understand Pods or are they Puddles to you?]]></title>
            <link>https://medium.com/@sophieshittu61/do-you-understand-pods-or-are-they-puddles-to-you-88170667e581?source=rss-825b6012cf0------2</link>
            <guid isPermaLink="false">https://medium.com/p/88170667e581</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-engineering]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops-tool]]></category>
            <dc:creator><![CDATA[Sophie Shittu]]></dc:creator>
            <pubDate>Sun, 26 Jun 2022 11:48:01 GMT</pubDate>
            <atom:updated>2022-06-26T11:53:15.370Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*G-KkBbZYIIQ7T1-vXqbpkg.jpeg" /><figcaption>Water Puddles Unsplash</figcaption></figure><p>In this post we are going to explore the concept of Pods. We will see how these concepts of pods and the concepts that make pods an important basic in DevOps.</p><h4>What are Kubernetes Pods?</h4><p>As a cell is the smallest structural and functional unit of an organism. A pod is the smallest execution unit in Kubernetes. A pod encapsulates one or more applications. Pods are ephemeral by nature, if a pod (or the node it executes on) fails, Kubernetes can automatically create a new replica of that pod to continue operations.</p><blockquote>Pods are the smallest deployable units of computing that you can create and manage in Kubernetes.</blockquote><p><strong>Note</strong>: While Kubernetes supports more container runtime than just Docker, Docker is the most commonly known runtime.</p><p>Let’s take a little detour, let’s understand the meaning of <em>container runtime.</em></p><blockquote>A container runtime, also known as container engine, is a software component that can run containers on a host operating system.</blockquote><p>The shared context of a Pod is a set of Linux namespaces, groups, and potentially other facets of isolation — the same things that isolate a Docker container.</p><p><strong>Using Pods</strong></p><p>Kubectl provides a number of commands that allows a user to create pods, run them by using deployments, check on status of running pods, and halt pods that are no longer needed. Either JSON (JavaScript Object Notation) or YAML (YAML Ain’t Markup Language) commands are valid for encoding commands.</p><p>Commonly used basic kubectl commands can be found <a href="https://medium.com/@sophieshittu61/top-basic-recommended-kubectl-commands-b0f274f5826f">here</a>.</p><h4>Workload resources for managing pods</h4><p>Usually you don’t need to create Pods directly, even singleton Pods. Instead, create them using workload resources such as Deployment in a Kubernetes cluster are used in two main ways:</p><p><em>Pods that run as single containers</em>: The “one-container-per-Pod” model is the most common Kubernetes use case; in this case, you can think of a Pod as a wrapper around a single container. Kubernetes manages Pods rather than managing the containers directly.</p><p><em>Pods that run multiple containers: </em>A Pod can encapsulate an application composed of multiple co-located containers that are tightly coupled and need to share resources. These co-located containers form a single cohesive unit of service. The Pod wraps these containers, storage resources, and an ephemeral network identity together as a single unit.</p><p>Each Pod is meant to run a single instance of a given application. If you want to scale your application horizontally (to provide more overall resources by running more instances), you should use multiple Pods, one for each instance. In Kubernetes, this is typically referred to as <strong><em>replication</em></strong>. Replicated Pods are usually created and managed as a group by a workload resource and its controller.</p><h4>What are the benefits of a pod?</h4><p>When pods contain multiple containers, communications, and data sharing between them is simplified. Since all containers in a pod share the same network namespace, they can locate each other and communicate via localhost.</p><blockquote>Kubernetes does not run containers directly, instead it allows running pods to ensure that each container within them shares the same resources and local network.</blockquote><p>Grouping containers in this way allows them to communicate between each other as if they shared the same physical hardware, while still remaining isolated to some degree.</p><h4>Pods and controllers</h4><p>You can use workload resources to create and manage multiple Pods for you. A controller handles replication and rollout and automatic healing in case of Pod failure. For example, if a Node fails, a controller notices that Pods on that Node have stopped working and creates a replacement Pod. The <em>scheduler</em> places the replacement Pod onto a healthy Node.</p><p>Here are some examples of workload resources that manage one or more Pods: Deployment, StatefulSet, DaemonSet</p><h4>Resource sharing and communication</h4><p>Pods contain one or more <em>containers</em>, such as Docker containers. When a Pod runs multiple containers, the containers are managed as a single entity and share the Pod’s resources. Pods enable data sharing and communication among their constituent containers.</p><p><strong>Storage in Pods</strong></p><p>A Pod can specify a set of shared storage volumes. All containers in the Pod can access the shared volumes, allowing those containers to share data. Volumes also allow persistent data in a Pod to survive in case one of the containers within needs to be restarted.</p><p><strong>Pod networking</strong></p><p>Each Pod is assigned a unique IP address for each address family. Every container in a Pod shares the network namespace, including the IP address and network ports. Inside a Pod (and only then), the containers that belong to the Pod can communicate with one another using localhost.</p><blockquote>Containers that want to interact with a container running in a different Pod can use IP networking to communicate.</blockquote><h4>Static Pods</h4><p>Static Pods are managed directly by the kubelet daemon on a specific node, without the API Server, observing them. Whereas most Pods are managed by the control plane (for example, a Deployment), for static Pods, the kubelet directly supervises each static Pod (and restarts it if it fails).</p><p>Static Pods are always bound to one Kubelet on a specific node. The main use for static Pods is to run a self-hosted control plane: in other words, using the kubelet to supervise the individual control plane components.</p><p>The kubelet automatically tries to create a mirror Pod on the Kubernetes API server for each static Pod. This means that the Pods running on a node are visible on the API server, but cannot be controlled from there.</p><h4>Pod lifecycle</h4><p>Pods are ephemeral. They are not designed to run forever, and when a Pod is terminated it cannot be brought back. In general, Pods do not disappear until they are deleted by a user or by a controller.</p><p>Pods do not “heal” or repair themselves. For example, if a Pod is scheduled on a node which later fails, the Pod is deleted. Similarly, if a Pod is evicted from a node for any reason, the Pod does not replace itself.</p><p>The phase of a Pod is a high-level summary of the Pod in its current state.</p><blockquote>When you run<strong> kubectl get pod </strong>to inspect a Pod running on your cluster, a Pod can be in one of the following possible phases:</blockquote><p><strong>Pending</strong>: Pod has been created and accepted by the cluster, but one or more of its containers are not yet running. This phase includes time spent being scheduled on a node and downloading images.</p><p><strong>Running</strong>: Pod has been bound to a node, and all of the containers have been created. At least one container is running, is in the process of starting, or is restarting.</p><p><strong>Succeeded</strong>: All containers in the Pod have terminated successfully. Terminated Pods do not restart.</p><p><strong>Failed</strong>: All containers in the Pod have terminated, and at least one container has terminated in failure. A container “fails” if it exits with a non-zero status.</p><p><strong>Unknown</strong>: The state of the Pod cannot be determined. For some reason the state of the Pod could not be obtained.</p><h3>Conclusion</h3><p>In this post, Pods, the definition, the benefits, the importance of controllers and pods, the lifecycle of pods was explored. Pods provide the fundamental building blocks for deploying applications.</p><p>References</p><p><a href="https://kubernetes.io/docs/concepts/workloads/pods/">https://kubernetes.io/docs/concepts/workloads/pods/</a></p><p><a href="https://cloud.google.com/kubernetes-engine/docs/concepts/pod">https://cloud.google.com/kubernetes-engine/docs/concepts/pod</a></p><p><a href="https://www.vmware.com/topics/glossary/content/kubernetes-pods.html#:~:text=A%20pod%20is%20the%20smallest,that%20pod%20to%20continue%20operations">https://www.vmware.com/topics/glossary/content/kubernetes-pods.html#:~:text=A%20pod%20is%20the%20smallest,that%20pod%20to%20continue%20operations</a>.</p><p><a href="https://www.redhat.com/en/topics/containers/what-is-kubernetes-pod">https://www.redhat.com/en/topics/containers/what-is-kubernetes-pod</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88170667e581" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Kubectl Commands]]></title>
            <link>https://medium.com/@sophieshittu61/top-basic-recommended-kubectl-commands-b0f274f5826f?source=rss-825b6012cf0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0f274f5826f</guid>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Sophie Shittu]]></dc:creator>
            <pubDate>Mon, 06 Jun 2022 16:45:17 GMT</pubDate>
            <atom:updated>2022-06-06T16:53:59.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*BJZf97pTx7d9qCcJ.png" /></figure><h4>What is Kubernetes?</h4><p>Kubernetes is the most popular containerized orchestration system, and company deployments range from simple to complex.</p><p>Kubernetes provides a command line tool for communicating with a Kubernetes cluster’s controlplane, using the Kubernetes API.</p><p>This tool is named <strong><em>kubectl</em></strong></p><p>Kubectl controls the Kubernetes Cluster. It is one of the key components of Kubernetes which runs on the workstation on any machine when the setup is done. It has the capability to manage the nodes in the cluster. Kubectl commands are used to interact and manage Kubernetes objects and the cluster. Using Kubectl allows you to create, inspect, update, and delete Kubernetes objects.</p><h4>Syntax</h4><p>According to Oxf<a href="https://www.google.com/search?q=synatx&amp;rlz=1C1CHBD_enAE870AE870&amp;oq=synatx&amp;aqs=chrome..69i57j0i10i433l3j0i10l6.1984j0j7&amp;sourceid=chrome&amp;ie=UTF-8">o</a>rd Languages, the word syntax means the arrangement of words and phrases to create well-formed sentences in a language.</p><p>Before you jump into kubectl, it’s important to have a basic understanding of how commands are structured. All commands use the following structure in the CLI — and keeping each component in order is critical.</p><blockquote>kubectl command [type] [name] [flag]</blockquote><p>where command, type, name and flags are:</p><h3>Command</h3><p>The command portion describes what sort of operation you want to perform — namely create, describe, get, apply, and delete. You can perform these commands on one or more resources, since it’s possible to designate multiple resources within a single command.</p><h3>Type</h3><p>The TYPE attribute describes the kind of resource kubectl is targeting. What are these resources, exactly? Things like pods, services, daemonsets, deployments, nodes are critical components within Kubernetes system. Because they impact how your deployments behave, it makes sense that you’d want to modify them.</p><h3>Name</h3><p>The NAME field is case sensitive and specifies the name of the resource in question. Tacking a name onto a command restricts that command to that sole resource. Omitting names from your command will pull details from all resources, like pods or jobs.</p><h3>Flags</h3><p>Finally, flags help denote special options or requests made to a certain resource. They work as modifiers that override any default values or environmental variables.</p><p>Examples:</p><p>kubectl describe deployment myapp-deployment.</p><p>describe is the command</p><p>deployment is the type</p><p>myapp-deployment is the name of the folder</p><h3>1. Kubectl get:</h3><blockquote>Use get to pull a list of resources you have currently on your cluster. The types of resources you can use get for include: Namespace, Pod, Node, Deployment, Service, ReplicaSets.</blockquote><p>for example, how many nodes are available in the default namespace?</p><blockquote>$ kubectl get nodes<br>minikube Ready master 9d v1.18.0</blockquote><h3>2. Kubectl cre<strong>ate</strong></h3><blockquote>Use <strong>create</strong> to generates new resources from files or standard input devices <strong>create</strong> requires another parameter to name the namespace service. Resources you can create include: service, cronjob, deployment, job, namespace (ns)</blockquote><p>for example, create a service called hello-there, we run;</p><blockquote>$ kubectl create service hello-there<br>namespace<strong>/</strong>hello-there created</blockquote><h3>3. Kubectl edit</h3><blockquote>You can <strong>edit</strong> any resource in your cluster when you run this command. It will open your default text editor.</blockquote><p>for example, to edit an existing cron job, we run:</p><blockquote>kubectl edit cronjob/my-existing</blockquote><h3>4. Kubectl delete</h3><blockquote>Use <strong>delete</strong> to erases resources as required</blockquote><p>for example, to delete a cronjob named my-exisiting-cron, we run;</p><blockquote>$ kubectl delete cronjob my-existing-cron<br>cronjob.batch “my-existing-cron” deleted</blockquote><h3>5. Kubectl apply</h3><blockquote>The <strong>apply</strong> command allows you to apply configurations via files for resources within your cluster. This can also be done through standard in (STDIN) on the command line, but the suggestion is always by file.</blockquote><p>for example, to push changes into configuration files, commands.yaml, we can run;</p><blockquote>$ kubectl apply -f commands.yaml <br>serviceaccount<strong>/</strong>tiller created</blockquote><h3>6. Kubectl describe</h3><blockquote>Use<strong> describe</strong> to show the details of the resource you’re looking at. The most common use case is describing a pod or node to check if there’s an error in the events, or if resources are too limited to use.</blockquote><p>for example, to find extra details on a deployment called myapp-deployment, we run;</p><blockquote>kubectl describe deployment myapp-deployment</blockquote><h3>7. Kubectl logs</h3><blockquote>While the <strong>describe</strong> command gives you the events occurring for the applications inside a pod, <strong>logs</strong> offer detailed insights into what’s happening inside Kubernetes in relation to the pod.</blockquote><p>for example, to check the log for cherry-chart</p><p>$ kubectl logs cherry-chart-88d49478c-dmcfv -n charts</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0f274f5826f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All Good Things]]></title>
            <link>https://medium.com/@sophieshittu61/all-good-things-a1db386e7f54?source=rss-825b6012cf0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1db386e7f54</guid>
            <dc:creator><![CDATA[Sophie Shittu]]></dc:creator>
            <pubDate>Wed, 18 May 2022 19:04:29 GMT</pubDate>
            <atom:updated>2022-05-18T19:04:29.108Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*43YOmFTd1gghD_D1KRuv4A@2x.jpeg" /></figure><p>When you open your eyes</p><p><em>Do you see light or do you behold darkness?</em></p><p>When you are scared</p><p><em>Do you feel the fear or do you smell it?</em></p><p>When you hate</p><p><em>Do you taste the bitterness or do you hold it?</em></p><p>So when you love</p><p><em>Do you applaud the genuineness or do you forbid the vulnerability?</em></p><p>Why do you question it? Love</p><p>Why do you try to understand the meaning of it?</p><p>Why do you become fearful when good things happen to you?</p><p>I don’t think you’d believe me</p><p>However, I will speak my truth</p><p>You deserve it.</p><p>All the Good things that come to you</p><p>All the happiness that you feel</p><p>That peace that follows when you pour cold water on your head.</p><p>Don’t ask me why bad things happen</p><p>All I know is that you do not deserve them.</p><p>I really do hope you believe these words…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1db386e7f54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THE IMPORTANCE OF SHELL SCRIPTING IN DEVOPS]]></title>
            <link>https://medium.com/@sophieshittu61/the-importance-of-shell-scripting-in-devops-563bcacc4118?source=rss-825b6012cf0------2</link>
            <guid isPermaLink="false">https://medium.com/p/563bcacc4118</guid>
            <category><![CDATA[shell-script]]></category>
            <category><![CDATA[devops-tool]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sophie Shittu]]></dc:creator>
            <pubDate>Mon, 14 Mar 2022 13:26:27 GMT</pubDate>
            <atom:updated>2022-03-14T13:26:27.905Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*-EMP1tOY62o9vPuSOpUWNg.jpeg" /><figcaption>Shell Scripting (See what I did there)</figcaption></figure><h4>The Dilemma</h4><p>Why should I bother learning Shell Scripting? What can I do with it in real life? Could you show me some of the strong things it can do or some of its unique characteristics to persuade me that I should start learning shell scripting right away?</p><p>These were questions that came to me when my mentor, Jesse asked me to learn Shell Scripting. A lot of time has gone by, really and I still ask these questions whenever I have to learn something new. The curious cat in me likes to ask questions. Lol.</p><p>There are many scripting languages, and nearly any programming language can be used to write scripts (python, ruby, JavaScript, etc.). As a beginner in DevOps, these have many advantages over bash with regard to data manipulation and simplicity. However, bash has the advantage of running on nearly any Linux machine without prior install effort.</p><p>By the time you’ve finished reading this article, you should have a million and one reasons to want to learn shell scripting.</p><h4>History of the Shell</h4><p>A little throwback wouldn’t hurt…</p><p>There was a shell program by the name the V6 Shell starting with Unix in the 1970s developed by Ken Thomson. It lacked scripting ability for developers and was then followed by the Bourne Shell in 1977. Further, there were many improvements made in the 1980s which gave rise to C-Shell and Korn Shell. Bash Shell is the most popular shell today. Bash stands for Bourne-Again-Shell and is the finest improved variant of the original Bourne Shell.</p><blockquote>Bash is a scripting language that usually provides a command-line user interface for interactive command language and scripting.</blockquote><h4><strong>LETS GET TO THE COOL STUFF!</strong></h4><p>What is Shell?</p><p><strong>Shell</strong> is a UNIX term for an interface between a user and an operating system service. Shell provides users with an interface and accepts human-readable commands into the system and executes those commands which can run automatically and give the program’s output in a shell script.</p><blockquote>It is called a shell script because it combines a sequence of commands, that would otherwise have to be typed into the keyboard one at a time, into a single script.</blockquote><p>Shell scripts provide an easy way to carry out tedious commands, large or complicated sequences of commands, and routine tasks.</p><p>To know what shell you are currently on, type;</p><p><em>echo $Shell</em></p><p>Shell scripts can be used to automate repetitive tasks such as performing daily backups of your system or installing packages on multiple servers, or monitoring the system periodically such as to check the memory, disk usage and raise alarms if required etc.</p><h4>How shell scripting works</h4><p>The basic steps involved with shell scripting are writing the script, making the script accessible to the shell and giving the shell execute permission.</p><p>The following steps are general guidelines for writing shell scripts:</p><ol><li>Using a text editor, create and save a file.</li><li>Use the chmod command to allow only the owner to run (or execute) the file. For example, if your file is named script1, type the following:</li></ol><p><em>chmod u=rwx script1</em></p><p>Shell scripts contain ASCII text and are written using a text editor or word processor. The content of the script is a series of commands in a language that can be interpreted by the shell. Functions that shell scripts support include <a href="https://whatis.techtarget.com/definition/loop">l</a>oops, variables, if/then/else statements. We will get to these a bit later. Once complete, the file is saved typically with a .txt or .sh extension and in a location that the shell can access.</p><h4>Basic Example of what A typical script might look like this:</h4><p>#!/bin/bash</p><p>echo “Welcome!! Please Enter Your Name”</p><p>read name</p><p>echo “Hello $name”</p><h4>LETS BREAK DOWN THIS CODE</h4><p><strong><em>#!/bin/bash</em></strong></p><p><strong>“#!”</strong> is an operator called SHEBANG which directs the script to the interpreter location. A line starting with <strong>#!</strong> is used to tell the OS which interpreter to use to execute the file.</p><p>There are many shell interpreters like ksh, csh(C shell), ssh(secure shell), (bash)bourne shell etc. The above line asks the system to use the bash interpreter.</p><p><strong><em>echo “Welcome! Please Enter Your Name’’</em></strong></p><p>The <em>echo </em>keyword is used to output the strings that it is being passed as arguments.</p><p><strong><em>read name</em></strong></p><p>The <em>read </em>command is used to receive input while running the script. When we wrote <em>read name</em> it initialized a variable named <em>name </em>and stored the input in it.</p><p><strong><em>echo “Hello $name”</em></strong></p><p>The <strong>$ </strong>symbol is used to print the <strong>value</strong> of a variable. In the above example, it prints whatever input was given.</p><p><strong>Advantages of shell scripts</strong></p><p>Shell scripting is meant to be simple and efficient.</p><p>It uses the same syntax in the script as it would on the shell command line, removing any interpretation issues.</p><p>Writing code for a shell script is also faster and requires less of learning curve than other programming languages.</p><h4>Conclusion</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*1xSdx6C2j1ieW8nNPm8hGw.png" /></figure><p>Dude, you don’t need to learn shell programming right now if you don’t want to. But if you want to actually do things on your computer, it can come in handy. Pretty much any kind of computer will have its system scripts written in its native shell code.</p><blockquote>So, if you want to understand and configure what it does, you will need to learn the shell script.</blockquote><p>References</p><ul><li><a href="https://kodekloud.com/devops-beginners-guide-to-scripting/">DevOps: Beginners Guide to Scripting</a></li><li><a href="https://www.section.io/engineering-education/introduction-to-shell-scripting/">Introduction to Shell Scripting</a></li></ul><p><a href="https://www.guru99.com/introduction-to-shell-scripting.html">https://www.guru99.com/introduction-to-shell-scripting.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=563bcacc4118" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>