<?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>DEV Community: onieio</title>
    <description>The latest articles on DEV Community by onieio (@onieio).</description>
    <link>https://dev.to/onieio</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F221560%2Fd40457d9-abb6-4e92-b140-f82360463b12.png</url>
      <title>DEV Community: onieio</title>
      <link>https://dev.to/onieio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/onieio"/>
    <language>en</language>
    <item>
      <title>HTML Basics: Essential Tags</title>
      <dc:creator>onieio</dc:creator>
      <pubDate>Thu, 07 Dec 2023 01:26:14 +0000</pubDate>
      <link>https://dev.to/onieio/html-basics-essential-tags-145g</link>
      <guid>https://dev.to/onieio/html-basics-essential-tags-145g</guid>
      <description>&lt;p&gt;HTML (Hypertext Markup Language) is the standard language for creating and designing web pages. It uses various tags to structure content and define elements on a webpage. Here are some fundamental HTML tags that every web developer should know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/code&gt;
This declaration specifies the HTML version being used. It should be placed at the very beginning of an HTML document.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt;
The root element of an HTML document.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;html&amp;gt;
  &amp;lt;!-- Content goes here --&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;
Contains meta-information about the HTML document, such as title, character set, and linked stylesheets.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;head&amp;gt;
  &amp;lt;title&amp;gt;Document Title&amp;lt;/title&amp;gt;
  &amp;lt;!-- Other metadata goes here --&amp;gt;
&amp;lt;/head&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;
Encloses the content of the HTML document, including text, images, links, and more.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;body&amp;gt;
  &amp;lt;h1&amp;gt;Hello, World!&amp;lt;/h1&amp;gt;
  &amp;lt;p&amp;gt;This is a sample paragraph.&amp;lt;/p&amp;gt;
  &amp;lt;!-- Other content goes here --&amp;gt;
&amp;lt;/body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;h1&amp;gt; to &amp;lt;h6&amp;gt;&lt;/code&gt;
Heading tags, ranging from the largest &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; to the smallest &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt;.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h1&amp;gt;Heading 1&amp;lt;/h1&amp;gt;
&amp;lt;h2&amp;gt;Heading 2&amp;lt;/h2&amp;gt;
&amp;lt;!-- ... --&amp;gt;
&amp;lt;h6&amp;gt;Heading 6&amp;lt;/h6&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;
Defines a paragraph.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;This is a paragraph.&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;
Creates hyperlinks to navigate to other pages or resources.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;a href="https://www.example.com"&amp;gt;Visit Example.com&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;
Embeds images in the document.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src="image.jpg" alt="Description of the image"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;ul&amp;gt;, &amp;lt;ol&amp;gt;, &amp;lt;li&amp;gt;&lt;/code&gt;
Defines unordered and ordered lists with list items.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Unordered List:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;ul&amp;gt;
  &amp;lt;li&amp;gt;Item 1&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;Item 2&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ordered List:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;ol&amp;gt;
  &amp;lt;li&amp;gt;Item 1&amp;lt;/li&amp;gt;
  &amp;lt;li&amp;gt;Item 2&amp;lt;/li&amp;gt;
&amp;lt;/ol&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;
A generic container that does not carry any semantic meaning.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div&amp;gt;
  &amp;lt;!-- Content goes here --&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt;
Similar to &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;, but used for inline elements.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;This is &amp;lt;span style="color: red;"&amp;gt;red&amp;lt;/span&amp;gt; text.&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt;
Creates a line break within text.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;This is the first line.&amp;lt;br&amp;gt;This is the second line.&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;hr&amp;gt;&lt;/code&gt;
Represents a thematic break or horizontal rule.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;hr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These are just a few of the essential HTML tags. As you continue learning, you'll discover more tags and attributes to enhance the structure and presentation of your web pages.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Kubernetes Basics: Understanding Key Resources</title>
      <dc:creator>onieio</dc:creator>
      <pubDate>Wed, 06 Dec 2023 16:33:35 +0000</pubDate>
      <link>https://dev.to/onieio/kubernetes-basics-understanding-key-resources-58n</link>
      <guid>https://dev.to/onieio/kubernetes-basics-understanding-key-resources-58n</guid>
      <description>&lt;h2&gt;
  
  
  Static Pods
&lt;/h2&gt;

&lt;p&gt;Overview:&lt;br&gt;
Static pods are Kubernetes pods that are managed directly by the kubelet on a node. They are not part of the Kubernetes control plane, making them suitable for running system-level daemons or essential services on individual nodes.&lt;/p&gt;

&lt;p&gt;Usage:&lt;/p&gt;
&lt;h4&gt;
  
  
  Create a Static Pod:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Write a pod manifest file.&lt;/li&gt;
&lt;li&gt;Place the file in the kubelet's specified directory (e.g., /etc/kubernetes/manifests).&lt;/li&gt;
&lt;li&gt;Restart the kubelet to start the static pod.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo systemctl restart kubelet
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Check the status of the static pod using kubectl or kubelet logs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl get pods
kubectl describe pod my-static-pod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Cleanup:
&lt;/h4&gt;

&lt;p&gt;Delete the manifest file and restart the kubelet.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo rm /etc/kubernetes/manifests/my-static-pod.yaml
sudo systemctl restart kubelet
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Pods
&lt;/h2&gt;

&lt;p&gt;Overview:&lt;br&gt;
Pods are the smallest deployable units in Kubernetes. They represent one or more containers that share storage, network, and specifications.&lt;/p&gt;

&lt;p&gt;Usage:&lt;/p&gt;
&lt;h4&gt;
  
  
  Create a Pod:
&lt;/h4&gt;

&lt;p&gt;Write a pod manifest file (YAML) defining containers, volumes, and metadata.&lt;br&gt;
Apply the manifest using kubectl.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl apply -f my-pod.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Monitor Pod:
&lt;/h4&gt;

&lt;p&gt;Check the status of the pod.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl get pods
kubectl describe pod my-pod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Update Pod:
&lt;/h4&gt;

&lt;p&gt;Modify the manifest file and apply the changes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl apply -f my-updated-pod.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Deployments
&lt;/h2&gt;

&lt;p&gt;Overview:&lt;br&gt;
Deployments provide a declarative way to manage pod replicas, enabling easy updates and rollbacks.&lt;/p&gt;

&lt;p&gt;Usage:&lt;/p&gt;
&lt;h4&gt;
  
  
  Create a Deployment:
&lt;/h4&gt;

&lt;p&gt;Write a deployment manifest file specifying the desired state.&lt;br&gt;
Apply the manifest using kubectl.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl apply -f my-deployment.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Scale Deployment:
&lt;/h4&gt;

&lt;p&gt;Update the replica count in the deployment manifest.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl scale deployment my-deployment --replicas=3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Update Deployment:
&lt;/h4&gt;

&lt;p&gt;Modify the container image or other specifications in the deployment manifest.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl apply -f my-updated-deployment.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  StatefulSets
&lt;/h2&gt;

&lt;p&gt;Overview:&lt;br&gt;
StatefulSets manage the deployment and scaling of stateful applications, maintaining stable network identities and storage.&lt;/p&gt;

&lt;p&gt;Usage:&lt;br&gt;
Create a StatefulSet:&lt;/p&gt;

&lt;p&gt;Write a StatefulSet manifest file specifying pod templates and persistent volume claims.&lt;br&gt;
Apply the manifest using kubectl.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl apply -f my-statefulset.yaml

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Scale StatefulSet:
&lt;/h4&gt;

&lt;p&gt;Update the replica count in the StatefulSet manifest.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl scale statefulset my-statefulset --replicas=3

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Update StatefulSet:
&lt;/h4&gt;

&lt;p&gt;Modify the pod template or other specifications in the StatefulSet manifest.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl apply -f my-updated-statefulset.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  DaemonSets
&lt;/h2&gt;

&lt;p&gt;Overview:&lt;br&gt;
DaemonSets ensure that a copy of a pod runs on every node in the cluster, typically for system daemons or logging agents.&lt;/p&gt;

&lt;p&gt;Usage:&lt;/p&gt;
&lt;h4&gt;
  
  
  Create a DaemonSet:
&lt;/h4&gt;

&lt;p&gt;Write a DaemonSet manifest file specifying pod templates.&lt;br&gt;
Apply the manifest using kubectl.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl apply -f my-daemonset.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Update DaemonSet:
&lt;/h4&gt;

&lt;p&gt;Modify the pod template or other specifications in the DaemonSet manifest.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl apply -f my-updated-daemonset.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Monitor DaemonSet:
&lt;/h4&gt;

&lt;p&gt;Check the status of the DaemonSet and the pods on each node.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl get daemonset
kubectl get pods -l app=my-daemon
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This document provides a basic understanding of key Kubernetes resources and commands, including static pods, pods, deployments, StatefulSets, and DaemonSets. Each section includes an overview, usage examples, and common operations.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>GO Cheatsheet</title>
      <dc:creator>onieio</dc:creator>
      <pubDate>Mon, 11 Jul 2022 06:48:14 +0000</pubDate>
      <link>https://dev.to/onieio/go-cheatsheet-570c</link>
      <guid>https://dev.to/onieio/go-cheatsheet-570c</guid>
      <description>&lt;h3&gt;
  
  
  defer
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Prints the content at the end of the call.&lt;/li&gt;
&lt;li&gt;defer fmt.Println("End of the statement")&lt;/li&gt;
&lt;/ul&gt;

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