<?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: Julio</title>
    <description>The latest articles on DEV Community by Julio (@jcfausto).</description>
    <link>https://dev.to/jcfausto</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%2F582190%2Fe6a3733d-131b-4231-b121-ee82ceb67362.jpg</url>
      <title>DEV Community: Julio</title>
      <link>https://dev.to/jcfausto</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jcfausto"/>
    <language>en</language>
    <item>
      <title>Kubernetes (CKAD) - Pod Design - Understand how to use Labels, Selectors, and Annotations</title>
      <dc:creator>Julio</dc:creator>
      <pubDate>Tue, 21 Sep 2021 06:38:54 +0000</pubDate>
      <link>https://dev.to/jcfausto/kubernetes-ckad-pod-design-understand-how-to-use-labels-selectors-and-annotations-3nl0</link>
      <guid>https://dev.to/jcfausto/kubernetes-ckad-pod-design-understand-how-to-use-labels-selectors-and-annotations-3nl0</guid>
      <description>&lt;h2&gt;
  
  
  Topic: Pod Design
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Labels
&lt;/h3&gt;

&lt;p&gt;Labels are &lt;code&gt;key:pair&lt;/code&gt; values that can help you organize your resources. Any object in Kubernetes can have a label described.&lt;/p&gt;

&lt;p&gt;You can also use labels to select a set of resources. For that you'll use a selector, which we'll see later on.&lt;/p&gt;

&lt;p&gt;Example of a label:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Pod&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;onboarding-frontend&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;my-application&lt;/span&gt;
  &lt;span class="na"&gt;labels&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;service&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;onboarding&lt;/span&gt;
    &lt;span class="na"&gt;tier&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;frontend&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Listing labels
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;kubectl get pods &lt;span class="nt"&gt;--show-labels&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Listing labels as columns
&lt;/h4&gt;

&lt;p&gt;You can list labels as columns by using the -L (--label-columns) option of kubectl.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;kubectl get pods &lt;span class="nt"&gt;-L&lt;/span&gt; service,tier
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Selectors
&lt;/h3&gt;

&lt;p&gt;You can use selectors to filter a set of resources. For filtering based on labels, we can use the &lt;code&gt;-l&lt;/code&gt; selector.&lt;/p&gt;

&lt;h4&gt;
  
  
  Select only the pods related to the &lt;code&gt;onboarding&lt;/code&gt; service.
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;kubectl get pods &lt;span class="nt"&gt;-L&lt;/span&gt; service,tier &lt;span class="nt"&gt;-l&lt;/span&gt; &lt;span class="s1"&gt;'service=onboarding'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Select only the pods &lt;em&gt;NOT&lt;/em&gt; related to the &lt;code&gt;onboarding&lt;/code&gt; service.
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;kubectl get pods &lt;span class="nt"&gt;-L&lt;/span&gt; service,tier &lt;span class="nt"&gt;-l&lt;/span&gt; &lt;span class="s1"&gt;'service!=onboarding'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Select only the pods related to the &lt;code&gt;onboarding&lt;/code&gt; service in the frontend tier
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;kubectl get pods &lt;span class="nt"&gt;-L&lt;/span&gt; service,tier &lt;span class="nt"&gt;-l&lt;/span&gt; &lt;span class="s1"&gt;'service=onboarding,tier=frontend'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Select all pods that are related to &lt;code&gt;backend&lt;/code&gt; and &lt;code&gt;frontend&lt;/code&gt; tiers.
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;kubectl get pods &lt;span class="nt"&gt;-L&lt;/span&gt; service,tier &lt;span class="nt"&gt;-l&lt;/span&gt; &lt;span class="s1"&gt;'tier in (backend,frontend)'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Annotations
&lt;/h3&gt;

&lt;p&gt;Annotations allows you to store additional data for the object you're creating. Also a &lt;code&gt;key:pair&lt;/code&gt; value but with more capacity to store longer strings, including JSON.&lt;/p&gt;

&lt;p&gt;An annotation looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Pod&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;onboarding-frontend&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;my-application&lt;/span&gt;
  &lt;span class="na"&gt;labels&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;service&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;onboarding&lt;/span&gt;
    &lt;span class="na"&gt;tier&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;frontend&lt;/span&gt;
  &lt;span class="na"&gt;annotations&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;Description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;The frontend component of the onboarding service for my-application.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  List the annotations of a pod
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;kubectl describe pod onboarding-frontend | &lt;span class="nb"&gt;grep &lt;/span&gt;Annotations
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Annotations can be edited/removed/added.&lt;/p&gt;

&lt;h4&gt;
  
  
  Remove an annotation
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;kubectl annotate pod onboarding-frontend Description-
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-&lt;/code&gt; after the annotation indicates that we want to removed it.&lt;/p&gt;

&lt;h4&gt;
  
  
  Add an annotation
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;kubectl annotate pod onboarding-frontend Description-
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-&lt;/code&gt; after the annotation indicates that we want to remove it.&lt;/p&gt;

&lt;p&gt;Official docs for further reference: &lt;a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/"&gt;Object Annotations&lt;/a&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>ckad</category>
    </item>
    <item>
      <title>Running Jekyll on Docker for Easy Local Development</title>
      <dc:creator>Julio</dc:creator>
      <pubDate>Sat, 05 Jun 2021 10:04:36 +0000</pubDate>
      <link>https://dev.to/jcfausto/running-jekyll-on-docker-for-easy-local-development-1geg</link>
      <guid>https://dev.to/jcfausto/running-jekyll-on-docker-for-easy-local-development-1geg</guid>
      <description>&lt;p&gt;I'm using Jekyll for one of my blogs and I'm really liking it. It's easy to get up and running with it and it just works!&lt;/p&gt;

&lt;p&gt;If you're planning to create a blog and want something simpler that just do the job and doesn't ask you too much time to do setup, learn about it, etc, Jekyll might be a good option for you.&lt;/p&gt;

&lt;p&gt;During this process, I observed a few pain points:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;I have to manually start the server every time I want to use it.&lt;/li&gt;
&lt;li&gt;Dealing with localhost and port numbers.&lt;/li&gt;
&lt;li&gt;I have to use a code editor to make the writing and building more convenient, although there might be better alternatives to only focus on the writing part.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For pain points 1 and 2 I created a solution this morning and wanted to share with you.&lt;/p&gt;

&lt;p&gt;I wrote all the details on this article &lt;a href="https://www.codingwithjulio.com/running-jekyll-on-docker-for-easy-local-development/"&gt;Running Jekyll on Docker For Easy Local Development&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The general idea is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Use docker to keep the sever running on my machine with live reload enabled;&lt;/li&gt;
&lt;li&gt;Use a reverse proxy to map a domain to the &lt;code&gt;localhost:4000&lt;/code&gt; address.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For point 3 I'm still about to research a solution. Once I find one that I like I'll share here as well.&lt;/p&gt;

&lt;p&gt;Have a great weekend! :)&lt;/p&gt;

</description>
      <category>jekyll</category>
      <category>ruby</category>
      <category>docker</category>
      <category>nginx</category>
    </item>
    <item>
      <title>Advice for people starting their career in tech</title>
      <dc:creator>Julio</dc:creator>
      <pubDate>Wed, 12 May 2021 16:42:53 +0000</pubDate>
      <link>https://dev.to/jcfausto/advice-for-people-starting-their-career-in-tech-55a3</link>
      <guid>https://dev.to/jcfausto/advice-for-people-starting-their-career-in-tech-55a3</guid>
      <description>&lt;p&gt;Instead of writing I've decided to share a video from Dave Farley which I think everyone starting their career in tech should watch. Precious and BS free advice from someone with great experience.&lt;/p&gt;

&lt;p&gt;Check it out:)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/hjIlTaAMsbI"&gt;https://youtu.be/hjIlTaAMsbI&lt;/a&gt;&lt;/p&gt;

</description>
      <category>career</category>
    </item>
    <item>
      <title>Tips for job applicants</title>
      <dc:creator>Julio</dc:creator>
      <pubDate>Wed, 05 May 2021 16:55:08 +0000</pubDate>
      <link>https://dev.to/jcfausto/tips-for-job-applicants-3057</link>
      <guid>https://dev.to/jcfausto/tips-for-job-applicants-3057</guid>
      <description>&lt;p&gt;I'd like to share a couple of tips that might be helpful for you when applying to jobs.&lt;/p&gt;

&lt;p&gt;Bear in mind that the tips down below are based on my experience and also related to they way I usually go through the list of applicants.&lt;/p&gt;

&lt;p&gt;The tips are mostly related to specific points or visual clues that would draw my attention to a candidate's application.&lt;/p&gt;

&lt;p&gt;Let's go!&lt;/p&gt;

&lt;h2&gt;
  
  
  Some code samples created by yourself
&lt;/h2&gt;

&lt;p&gt;A Github/Gitlab/Bitbucket/Personal website with some code samples written by yourself are usually useful.&lt;/p&gt;

&lt;p&gt;For instance, if a candidate shared a Github profile, I'd go there and filter the &lt;code&gt;source&lt;/code&gt; repositories and I'd take a look. If the filter result is empty, that's already something that would raise some concern.&lt;/p&gt;

&lt;p&gt;A code sample helps the hiring manager to understand:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How do you write your code.&lt;/li&gt;
&lt;li&gt;How do you structure it.&lt;/li&gt;
&lt;li&gt;How do you write tests (After the README, the second thing I look: The test folder. 👀)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Note: I rarely run the solution though, and I think nobody does 😊&lt;/p&gt;

&lt;h2&gt;
  
  
  Real working/running project examples
&lt;/h2&gt;

&lt;p&gt;A live project of yours always give a nice touch to your application, especially for technical positions.&lt;/p&gt;

&lt;p&gt;If you're a backend person, an API that you may have created that is actually hosted somewhere with good API docs, even if small, is a nice thing to see. &lt;/p&gt;

&lt;p&gt;If you are a frontend person, a nice UI that I could actually see, your personal website maybe, would be certainly something that would draw my attention and would make me invest a bit more time on your application 🕵️&lt;/p&gt;

&lt;p&gt;I'll be looking mostly for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The quality of what you did. No matter the size of the application, was it done with care?&lt;/li&gt;
&lt;li&gt;How did you design it.&lt;/li&gt;
&lt;li&gt;Creativity/Fun.&lt;/li&gt;
&lt;li&gt;Technologies used.&lt;/li&gt;
&lt;li&gt;Where and how was it deployed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Things you shared should be working
&lt;/h2&gt;

&lt;p&gt;Make sure what you share, links to profile, pages, applications are working. There's a good chance I'll visit them. 🕵️&lt;/p&gt;

&lt;p&gt;Clicking on something and reach a broken link doesn't feel good. Would you like it?&lt;/p&gt;

&lt;h2&gt;
  
  
  Photos or your age
&lt;/h2&gt;

&lt;p&gt;Please, don't. And companies that are still asking candidates for such information should stop doing it.&lt;/p&gt;

&lt;p&gt;I don't care and I personally don't like to seem photos or your age in job applications.&lt;/p&gt;

&lt;p&gt;It may right away create some sort of unconscious bias, that we all have by the way, let's not pretend we don't, and this could play negatively against your odds.&lt;/p&gt;

&lt;p&gt;If the company you're planning to apply requires a CV with photo and your age, I recommend you to think think twice before applying anyway.&lt;/p&gt;

&lt;h2&gt;
  
  
  A CV without work experience
&lt;/h2&gt;

&lt;p&gt;Unless you're applying for an entry level position, a CV without work experiences related to the job or field you're applying for would be a NO-GO for me. I've no crystal ball 🔮.&lt;/p&gt;

&lt;h2&gt;
  
  
  A CV with lot's of personal projects
&lt;/h2&gt;

&lt;p&gt;I'd avoid adding lots of personal projects to your CV, one or two amongst the most recent or relevant ones would be ok. But a long list won't help anyways your application, specially if they are just tutorials or hello-worlds.&lt;/p&gt;

&lt;h2&gt;
  
  
  A good looking CV helps
&lt;/h2&gt;

&lt;p&gt;Of course it depends on the type of job you're applying to, but in general, I believe that a good looking CV has higher changes to attract the attention of the hiring manager. &lt;/p&gt;

&lt;p&gt;It doesn't need to be an art work, especially for dev positions, but your CV should look presentable and organized. &lt;/p&gt;

&lt;p&gt;I personally like clean CVs. I don't give much attention to colors, crazy designs, badges, etc. A well structured black-and-white CV would be very efficient to me. Helps to speed up the process and the more standardized they are in terms of appearance and structure, the more efficient and less stressful the job of the hiring manager will be.&lt;/p&gt;

&lt;p&gt;The thing is. A poorly prepared CV represents for me, and perhaps for other hiring managers as well I believe, a certain lack of care and it's already some sort of red flag for the applicant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cover letters
&lt;/h2&gt;

&lt;p&gt;I personally always read them. If you put an effort to write some words to present yourself, the minimum I can do is read it in respect of your the time you put to write it.&lt;/p&gt;

&lt;p&gt;For me, a few words about yourself, why you're applying, why do you think you're a good fit and what would be the benefits for both sides if you turn to work in the company is super helpful to understand where you're coming from, what you plan to bring to the table, and where you're planning to go.&lt;/p&gt;

&lt;p&gt;It's also interesting to understand if you thought about yourself working at that position at that company and how that would look like.&lt;/p&gt;

&lt;p&gt;Some tips:&lt;/p&gt;

&lt;p&gt;When you write "I am very much interested to work with you.", it's interesting to also write the reason why you are so interested.&lt;/p&gt;

&lt;p&gt;A two paragraph size would be optimal. More than that might not be necessary. I'd recommend reviewing and summarizing just the important information in your cover letter.&lt;/p&gt;

&lt;p&gt;Note: Some jobs or companies will requires a more formal cover letter. I'm not talking about this type of cover letter. I'm talking about the more informal ones. The ones we usually see in tech related jobs in the majority of companies out there.&lt;/p&gt;

&lt;p&gt;I am personally not much interested at the beginning at information such as hobbies, sports you do, etc. I think those will be explored later on during the process. No need to write then in your cover letter.&lt;/p&gt;

&lt;p&gt;Golden rule: Add the more relevant information first.&lt;/p&gt;

&lt;p&gt;If you applied, it's obvious that you're looking for a job. Don't waste precious space writing that in your cover letter.&lt;/p&gt;

&lt;p&gt;I've read this sentence many times:&lt;/p&gt;

&lt;p&gt;"I've keen interest in software development"&lt;/p&gt;

&lt;p&gt;I even wrote it some times in my past job applications.&lt;/p&gt;

&lt;p&gt;Today I think it's not super relevant anymore. What does that mean exactly? Perhaps a project or a code sample would tell this story better.&lt;/p&gt;

&lt;p&gt;If you're applying to a position that is different from your current position, explaining that in your cover letter is important. It could help me to understand your motivation and not discard your application due to a misfit for the position.&lt;/p&gt;

&lt;p&gt;Last but not least, the tools that support hiring process, at least the ones I used so far, they have a logic on how they display the information, and usually the cover letter part comes before your CV.&lt;/p&gt;

&lt;p&gt;If you don't write anything in your cover letter, and I reach your CV, and I look that you're a manger applying to a backend position, it might be that I'll not give much attention to your application as I'd do for someone that matches the position better especially when there are many candidates.&lt;/p&gt;

&lt;p&gt;I think that's all for now. If you feel this could help someone else, please share it. 🙏&lt;/p&gt;

&lt;p&gt;And finally, I wish all the best for your future applications! If you read this until this point, thank you very much for your time and I hope it was helpful somehow.&lt;/p&gt;

</description>
      <category>career</category>
    </item>
  </channel>
</rss>
