
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
>
  <channel>
    <atom:link href="https://alaskar.dev//rss.xml" rel="self" type="application/rss+xml" />
    <title>Sager Alaskar</title>
    <link>https://alaskar.dev/</link>
    <description>Sager Alaskar personal space.</description>
    <image>
      <url>https://alaskar.dev//favicons/favicon-32x32.png</url>
      <title>Sager Alaskar</title>
      <link>https://alaskar.dev/</link>
      <width>32</width>
      <height>32</height>
    </image>
    
        <item>
          <guid>https://alaskar.dev//kube-1</guid>
          <title>My Journey to Kubernetes land #1</title>
          <description>From a single Docker container to a full homelab setup - this is how it all started.</description>
          <link>https://alaskar.dev//kube-1</link>
          <pubDate>Wed, 08 Jan 2025 03:00:00 +0300</pubDate>
          <category>homelab</category><category>kubernetes</category><category>media server</category>
          <content:encoded><![CDATA[
            <div style="margin: 50px 0; font-style: italic;">
              If anything looks wrong, 
              <strong>
                <a href="https://alaskar.dev//kube-1">
                  read on the site!
                </a>
              </strong>
            </div>

            
<h1 id="the-kubernetes-way"><a class="heading-link" title="Permalink" aria-hidden="true" href="#the-kubernetes-way"><span>#</span></a>The Kubernetes way</h1>
<p>The love story started with a single docker container. In this posts I will try to go through how I started, the process and how I ended up with this setup. as much as I could since it was never a straight path 🐋</p>
<h3 id="the-discovery"><a class="heading-link" title="Permalink" aria-hidden="true" href="#the-discovery"><span>#</span></a>The Discovery</h3>
<p>Years ago it all started when I discovered docker containers. I remember I needed a solution to cache downloaded games so I dont consume alot of bandwith and resources. The main goal was to make it faster. I downloaded Game A in PC#1. I redownload the same game in PC#2 but this time it will fetch it from the local cache server.   </p>
<p>I had no clue what docker was. Yes you heard that right. Not a single clue! I found a project called lancache. Im comfortable with computers so I thought lets give it a go. So I did.</p>
<h3 id="the-meetup"><a class="heading-link" title="Permalink" aria-hidden="true" href="#the-meetup"><span>#</span></a>The meetup</h3>
<p>I had a Desktop PC with 32GB Ram and intel i5. and about 6TB for storage. I thought well this gonna be a server “lets just install linux server on it, and we will go from there” I barley knew how to cd and ls. Today my main daily driver is linux. funny how things work 🤣. Anyways I installed ubuntu server. Followed the instructions on running lancache from github and the docs. Aaaand it was running successfully! I was happy. its doing what its inteded to do. I have <strong>Orchestrated</strong> this I thought.   </p>
<p>One of my friends was my tech guy for the tech guy if you know what I mean. I myself was the tech guy for everyone else. But he was my tech guy! I was proudly showing him the setup. He said and I quote “Oh you are running it in a docker container” I had no clue what was that. I just followed the instructions I knew docker was involved because I wrote some commands started with docker. However I had no clue what it was. He is software engineer, Backend specifically not a devop so he knew what is it just not fully. I told him yeah “uhh yeah docker!“. What the hell is that? where can I see the cached files why everything looks gibbresh! He proceeded with explainging docker to me. “its basically a small virtual machine running ubuntu in your ubuntu except it shares the kerneal so its lighter than a VM”.   </p>
<p><img src="https://images.gr-assets.com/hostedimages/1395589252ra/9017005.gif" alt="noclue"></p>
<p>He lost me at kernal. But I kind of understood the idea. I did my own search. Found another project called jellyfin where you can watch movies and series streamed locally! At first I wasnt excited for the project per se. I just wanted to go through the journy of running it. So I did what I do best. Google it, Follow this instruction I found in a blog post. I spent few hours and it was running! on the same server that i was using for lancache. however all of this is not at home <strong>yet</strong>.</p>
<h3 id="the-compose"><a class="heading-link" title="Permalink" aria-hidden="true" href="#the-compose"><span>#</span></a>The Compose</h3>
<p>This little project intoduced me to docker compose. I dont exactly remember when but its around this timeline. After I tested around thats its working I got excited with the project. It was amazing! I looked for a way to securly connect to it from home. And stumbled on tailscale, I installed it on the server. So now I got a tunnel I could connect to it from home! I was excited. I shared it with my family! Installed tailscale and jellyfin TV Client on all TVs. its great! but It was still just a little project. proof of concept that it works how I <strong>orchestrated</strong> it. I slowly began to get addicted to this. I could command a machine to do exactly what I want when I want automatically.</p>
<h3 id="the-orchestra"><a class="heading-link" title="Permalink" aria-hidden="true" href="#the-orchestra"><span>#</span></a>The Orchestra</h3>
<h5 id="hardware"><a class="heading-link" title="Permalink" aria-hidden="true" href="#hardware"><span>#</span></a>Hardware</h5>
<p>After that I was using it as is. tailscale and client. I myself wasnt using it much at first. I noticed my wife and my little brother was using it almost daily! I thought 💡 “Hey, why dont I just do the whole thing here locally?” At that point I didn’t even knew “Homelab” was an actual term. So I did. But first! we need hardware dont we.   </p>
<p>I had an old desktop pc it was missing some components. I know that on of my friends got me covered he is PC componenets hoarder big time. I gave him a call he was happy to get rid of it. everytime I needed sata cable or whatever I would give him a call first see if its available in his <em>store</em> 🤣. Extra points for beign a neighbour as well.</p>
<h5 id="software"><a class="heading-link" title="Permalink" aria-hidden="true" href="#software"><span>#</span></a>Software</h5>
<p>Okay, I got my hardware now. Its mix and match from old parts:   </p>
<ul><li>Ram 8GB Currenlty (16GB)</li>
<li>AMD Ryzen 7 1800X (16) @ 3.600GHz</li>
<li>And some old GTX 280 Nvidia I think Currently (NVIDIA GeForce GTX 1080 Ti)</li></ul>
<p>Great! lets get that ubuntu server on it! This is where I was starting to get comfortable with docker compose. Not so comfortable just getting started. I began on getting the stack passing the volumes here and there. Slowly and surely getting how things works. Its not a straight line from here to where I am now.   </p>
<p>Finally the stack is working locally! To the users who are just 2 now. nothing much changed. except they dont need to run tailscale now!   </p>
<div class="code-block svelte-zmlhy2">
	<div class="lang svelte-zmlhy2">yaml</div>
	
	<button class="copy-button svelte-zmlhy2">📋</button>
	
	<div class="code-container svelte-zmlhy2"><pre class="language-yaml"><!-- HTML_TAG_START --><code class="language-yaml">  <span class="token punctuation">-</span> <span class="token key atrule">Jellyfin</span>       <span class="token punctuation">:</span> The media server
  <span class="token punctuation">-</span> <span class="token key atrule">Jellyseer</span>      <span class="token punctuation">:</span> Requesting new media
  <span class="token punctuation">-</span> <span class="token key atrule">Sonarr</span>         <span class="token punctuation">:</span> Series tracker
  <span class="token punctuation">-</span> <span class="token key atrule">Radarr</span>         <span class="token punctuation">:</span> Movies tracker
  <span class="token punctuation">-</span> <span class="token key atrule">Transmission</span>   <span class="token punctuation">:</span> Download client
  <span class="token punctuation">-</span> <span class="token key atrule">Jackett</span>        <span class="token punctuation">:</span> Proxy server</code><!-- HTML_TAG_END --></pre></div>
</div>
<p>Fast forward configuring Caddy and sharing these services with friends and family. Currently around 60 users ☃️</p>
<p>And this is where I started my real journy into Dockers, Containers, Homelab, Selfhosting as Hobby and eventually Devops, Kubernetes, and CI/CD.</p>
<p>we will get into all of that in another blog post since this is getting long 🥱
for now if you are intersted you can see some of my CI/CD 👇🏼</p>
<p><a href="https://git.askar.tv/nomad" rel="nofollow">Git with CI/CD Repos</a><br>
<a href="https://github.com/nomadics9" rel="nofollow">Github</a></p>
          ]]></content:encoded>
          <media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://alaskar.dev///images/posts/kube.jpeg"/>
          <media:content xmlns:media="http://search.yahoo.com/mrss/" medium="image" url="https://alaskar.dev///images/posts/kube.jpeg"/>          
        </item>
      
        <item>
          <guid>https://alaskar.dev//launching</guid>
          <title>Houston Houston!</title>
          <description>Apollo</description>
          <link>https://alaskar.dev//launching</link>
          <pubDate>Wed, 11 Dec 2024 01:13:25 +0300</pubDate>
          <category>launch</category>
          <content:encoded><![CDATA[
            <div style="margin: 50px 0; font-style: italic;">
              If anything looks wrong, 
              <strong>
                <a href="https://alaskar.dev//launching">
                  read on the site!
                </a>
              </strong>
            </div>

            <h1 id="testing"><a class="heading-link" title="Permalink" aria-hidden="true" href="#testing"><span>#</span></a>Testing</h1>
<p>Apollo to Houston its working!</p>
<div class="code-block svelte-zmlhy2">
	<div class="lang svelte-zmlhy2">go</div>
	
	<button class="copy-button svelte-zmlhy2">📋</button>
	
	<div class="code-container svelte-zmlhy2"><pre class="language-go"><!-- HTML_TAG_START --><code class="language-go"><span class="token keyword">package</span> main

<span class="token keyword">import</span> <span class="token string">"fmt"</span>

<span class="token keyword">func</span> <span class="token function">main</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">&#123;</span>
    fmt<span class="token punctuation">.</span><span class="token function">Println</span><span class="token punctuation">(</span><span class="token string">"🚀"</span><span class="token punctuation">)</span>
<span class="token punctuation">&#125;</span></code><!-- HTML_TAG_END --></pre></div>
</div>
          ]]></content:encoded>
          <media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://alaskar.dev///images/posts/launching.jpeg"/>
          <media:content xmlns:media="http://search.yahoo.com/mrss/" medium="image" url="https://alaskar.dev///images/posts/launching.jpeg"/>          
        </item>
      
  </channel>
</rss>