<?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: Seski Ramadhan</title>
    <description>The latest articles on DEV Community by Seski Ramadhan (@seskiramadhan).</description>
    <link>https://dev.to/seskiramadhan</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%2F704526%2F6aa4c379-ccb3-44b5-85f9-0ba50db9fa4f.jpeg</url>
      <title>DEV Community: Seski Ramadhan</title>
      <link>https://dev.to/seskiramadhan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seskiramadhan"/>
    <language>en</language>
    <item>
      <title>Install Knative in Civo Kubernetes (v1.20.2+k3s1)</title>
      <dc:creator>Seski Ramadhan</dc:creator>
      <pubDate>Mon, 21 Feb 2022 16:33:41 +0000</pubDate>
      <link>https://dev.to/seskiramadhan/install-knative-in-civo-kubernetes-v1202k3s1-3gf5</link>
      <guid>https://dev.to/seskiramadhan/install-knative-in-civo-kubernetes-v1202k3s1-3gf5</guid>
      <description>&lt;p&gt;Hi gangs, today we will learn how to Install Knative in Civo Kubernetes.&lt;/p&gt;

&lt;p&gt;This tutorial still uses the old version of Kubernetes, use command below to create the cluster&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;civo kubernetes create kube-demo -v 1.20.2-k3s1 --wait
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's clone the repo below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/ludesdeveloper/civo-knative.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change directory to civo-knative&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd civo-knative
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run install-knative.sh script&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;./install-knative.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can take a look detailed code in that script, what I want to mention is the &lt;code&gt;kubectl delete svc traefik -n kube-system&lt;/code&gt; command in the script. After a few tries, I can not make istio-ingressgateway to get external-ip, so I decide to remove traefik, and it works, istio-ingressgateway get its external-ip.&lt;/p&gt;

&lt;p&gt;Now Let's take a look at our cluster.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WRSGxEy0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e8nsia01y56lbxeko3gb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WRSGxEy0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e8nsia01y56lbxeko3gb.png" alt="Image description" width="880" height="574"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gedtNoRW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iudwk6fd1qr3k948rmwy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gedtNoRW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iudwk6fd1qr3k948rmwy.png" alt="Image description" width="880" height="574"&gt;&lt;/a&gt;&lt;br&gt;
Everything looks good :)&lt;/p&gt;

&lt;p&gt;Now lets we apply some example&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 autoscaling-service-example.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1ieV0rBc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1pd4e56i2nwoudh6839g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1ieV0rBc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1pd4e56i2nwoudh6839g.png" alt="Image description" width="880" height="574"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, now we have Replicasets pods are ready.&lt;/p&gt;

&lt;p&gt;Let's test our serverless load, but first, we need to install hey load generator&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;go get -u github.com/rakyll/hey
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nUoLwd93--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hfeau0hcatpx9kf48ruk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nUoLwd93--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hfeau0hcatpx9kf48ruk.png" alt="Image description" width="880" height="574"&gt;&lt;/a&gt;&lt;br&gt;
Run script below for testing&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;./auto-scaling-testing.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kxMWjWh---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oxfx3xdtkj6jggbs9x01.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kxMWjWh---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oxfx3xdtkj6jggbs9x01.png" alt="Image description" width="880" height="574"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, pods are created when we try to test. Then what we need to do is wait until pods are disappearing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xOApPtdP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6tq4ifd6ww9r0mwr3kf0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xOApPtdP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6tq4ifd6ww9r0mwr3kf0.png" alt="Image description" width="880" height="574"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After a few seconds, we can see that pods have now disappeared. We also can see the output of &lt;strong&gt;hey&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kcO-flYm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4dieo7bgwmm9tadj8r4i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kcO-flYm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4dieo7bgwmm9tadj8r4i.png" alt="Image description" width="880" height="574"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>civo</category>
      <category>kubernetes</category>
      <category>linux</category>
      <category>cloud</category>
    </item>
    <item>
      <title>My Shortcut / Alias to Use Civo Kubernetes</title>
      <dc:creator>Seski Ramadhan</dc:creator>
      <pubDate>Mon, 21 Feb 2022 14:17:50 +0000</pubDate>
      <link>https://dev.to/seskiramadhan/my-shortcut-alias-to-use-civo-kubernetes-402m</link>
      <guid>https://dev.to/seskiramadhan/my-shortcut-alias-to-use-civo-kubernetes-402m</guid>
      <description>&lt;p&gt;Hi gangs, today I will share about my alias setup for Civo Cloud.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;alias civo_create="civo kubernetes create kube-demo --wait &amp;amp;&amp;amp; rm ~/.kube/config &amp;amp;&amp;amp; civo kubernetes config kube-demo --save"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This first alias is for provision new kubernetes cluster(kube-demo) with basic configuration, and I also remove kube config file for easily replace new config with the new one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;alias civo_remove="civo kubernetes remove kube-demo"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This alias is for removing cluster when I finish my learning / project. Let's we try this alias&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3o6LqpO8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k0lsfzuu2nv7a5fvrsgz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3o6LqpO8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k0lsfzuu2nv7a5fvrsgz.png" alt="Image description" width="880" height="658"&gt;&lt;/a&gt;&lt;br&gt;
As you can see, I just issue command &lt;code&gt;civo_create&lt;/code&gt; and cluster created in just &lt;strong&gt;1 minute 58 sec&lt;/strong&gt;, How cool is that!&lt;/p&gt;

&lt;p&gt;Now Let's remove our cluster&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--C_jIH8F4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hwemov7um1v64vivpon7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--C_jIH8F4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hwemov7um1v64vivpon7.png" alt="Image description" width="880" height="658"&gt;&lt;/a&gt;&lt;br&gt;
Just like that, then we say good bye to our cluster :)&lt;/p&gt;

</description>
      <category>civo</category>
      <category>kubernetes</category>
      <category>linux</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
