<?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 sendilkumarn on Medium]]></title>
        <description><![CDATA[Stories by sendilkumarn on Medium]]></description>
        <link>https://medium.com/@sendilkumarn?source=rss-3893f6499f7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NT6888EumfZyP-fEvTeFow.jpeg</url>
            <title>Stories by sendilkumarn on Medium</title>
            <link>https://medium.com/@sendilkumarn?source=rss-3893f6499f7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 08:58:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sendilkumarn/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[Easy Microservices with Kubernetes, Linkerd, and Kotlin]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://sendilkumarn.medium.com/easy-microservices-with-kubernetes-linkerd-and-kotlin-6541d6793507?source=rss-3893f6499f7------2"><img src="https://cdn-images-1.medium.com/max/800/1*X38OZA_43tTBp2Aw3QJFRg.png" width="800"></a></p><p class="medium-feed-snippet">KHipster is a development platform to generate, develop and deploy Spring Boot + Angular/React/Vue Fullstack Web applications and Spring&#x2026;</p><p class="medium-feed-link"><a href="https://sendilkumarn.medium.com/easy-microservices-with-kubernetes-linkerd-and-kotlin-6541d6793507?source=rss-3893f6499f7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://sendilkumarn.medium.com/easy-microservices-with-kubernetes-linkerd-and-kotlin-6541d6793507?source=rss-3893f6499f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6541d6793507</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[jhipster]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[linkerd]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[sendilkumarn]]></dc:creator>
            <pubDate>Mon, 30 Nov 2020 11:09:58 GMT</pubDate>
            <atom:updated>2020-11-30T11:09:58.224Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Eclipse Collections — the features your collections need]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://sendilkumarn.medium.com/eclipse-collections-the-features-your-collections-need-6280b99cb1c5?source=rss-3893f6499f7------2"><img src="https://cdn-images-1.medium.com/max/946/1*WHxixmrLvY5i29owQJ1uGQ.png" width="946"></a></p><p class="medium-feed-snippet">Deny it or not data structures are important. Picking the right one will enormously increase the performance of your&#x2026;</p><p class="medium-feed-link"><a href="https://sendilkumarn.medium.com/eclipse-collections-the-features-your-collections-need-6280b99cb1c5?source=rss-3893f6499f7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://sendilkumarn.medium.com/eclipse-collections-the-features-your-collections-need-6280b99cb1c5?source=rss-3893f6499f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6280b99cb1c5</guid>
            <category><![CDATA[functional-datastructure]]></category>
            <category><![CDATA[eclipse]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[eclipse-collections]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[sendilkumarn]]></dc:creator>
            <pubDate>Sat, 11 Jan 2020 09:47:04 GMT</pubDate>
            <atom:updated>2020-01-14T13:14:28.283Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Kotlin — Getting Started]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://sendilkumarn.medium.com/kotlin-getting-started-8238e30731e7?source=rss-3893f6499f7------2"><img src="https://cdn-images-1.medium.com/max/1200/1*cGzR28vmALhAAHXnqT5TSQ.png" width="1200"></a></p><p class="medium-feed-snippet">What if we make a language that takes all the good parts from other popular language&#x200A;&#x2014;&#x200A;the language is Kotlin</p><p class="medium-feed-link"><a href="https://sendilkumarn.medium.com/kotlin-getting-started-8238e30731e7?source=rss-3893f6499f7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://sendilkumarn.medium.com/kotlin-getting-started-8238e30731e7?source=rss-3893f6499f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8238e30731e7</guid>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[sendilkumarn]]></dc:creator>
            <pubDate>Fri, 10 Jan 2020 23:30:37 GMT</pubDate>
            <atom:updated>2020-01-11T09:11:30.127Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Kotlin Hipster — Spring Boot + Kotlin]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://sendilkumarn.medium.com/kotlin-hipster-spring-boot-kotlin-7663b36291d3?source=rss-3893f6499f7------2"><img src="https://cdn-images-1.medium.com/max/600/1*box32ELVBEtfsZe3sOyVQg.png" width="600"></a></p><p class="medium-feed-snippet">&gt; Scripts are awesome isn&#x2019;t it? Remember how we generate applications few years before, with scripts.</p><p class="medium-feed-link"><a href="https://sendilkumarn.medium.com/kotlin-hipster-spring-boot-kotlin-7663b36291d3?source=rss-3893f6499f7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://sendilkumarn.medium.com/kotlin-hipster-spring-boot-kotlin-7663b36291d3?source=rss-3893f6499f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7663b36291d3</guid>
            <category><![CDATA[jhipster]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[sendilkumarn]]></dc:creator>
            <pubDate>Fri, 10 Jan 2020 22:47:17 GMT</pubDate>
            <atom:updated>2020-01-11T09:08:46.463Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[SafeVarargs & Variable arguments in Java]]></title>
            <link>https://sendilkumarn.medium.com/safevarargs-variable-arguments-in-java-b9fdd5d996bb?source=rss-3893f6499f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9fdd5d996bb</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[jvm]]></category>
            <category><![CDATA[core-java]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[sendilkumarn]]></dc:creator>
            <pubDate>Fri, 21 Dec 2018 01:54:52 GMT</pubDate>
            <atom:updated>2018-12-21T01:59:28.529Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*e_CvwXlP5B1UcwrW" /></figure><p>There are languages that enforce types at the compile time but forgets about the types in runtime. This is called as <em>Type Erasure</em>.</p><blockquote>Erase types in runtime</blockquote><p>For example in C, the compiler will ensure that the code is entirely type-proofed. So the bytecode generated will not worry about type information during runtime.</p><p>Just like two sides of a coin, on the other side. There are languages that do type checking on runtime (maybe also on compile time). This is called as <em>reification</em>.</p><blockquote>Checks types in runtime</blockquote><p>For example in Java, even though you can outsmart the compiler and assign things to the compiler. The types are checked at the runtime.</p><p>The classic example for Java type reification,</p><pre><strong>class</strong> TypeReificationSample {</pre><pre><strong>    public</strong> <strong>static</strong> <strong>void</strong> main(<strong>String</strong>[] args) {</pre><pre><strong>        Object</strong>[] strArr = new <strong>String</strong>[1];</pre><pre>        strArr[0] = (Object) 13;</pre><pre>    }</pre><pre>}</pre><p>Here when you compile, you outsmarted the compiler by typecasting it to Object. But when you run the compiled class, you will see ❌</p><pre>Exception in thread &quot;main&quot; java.lang.ArrayStoreException: java.lang.Integer<br> at TypeReificationSample.main(TypeReificationSample.java:4)</pre><p>This shows that Java checks the array on the runtime.</p><p>When Generics was implemented in Java, the type erasure is introduced to make the language backwards compatible.</p><p>Let us take the classic example again,</p><pre><strong>class</strong> TypeCheck {</pre><pre><strong>    public</strong> <strong>static</strong> <strong>void</strong> main(<strong>String</strong>[] args) {</pre><pre><strong>        List</strong>&lt;<strong>String</strong>&gt; strList = new <strong>ArrayList</strong>&lt;<strong>String</strong>&gt;();</pre><pre>        strList.add(&quot;Hello&quot;);</pre><pre><strong>        String</strong> hello = strList.get(0);</pre><pre>        System.out.println(hello); // &quot;Hello&quot;</pre><pre>    }</pre><pre>}</pre><p>Generic type check</p><pre><strong>class</strong> GenericTypeCheck {</pre><pre><strong>    public</strong> <strong>static</strong> <strong>void</strong> main(<strong>String</strong>[] args) {</pre><pre><strong>        List</strong> strList = new <strong>ArrayList</strong>();</pre><pre>        strList.add(&quot;Hello&quot;);</pre><pre><strong>        String</strong> hello = (String) strList.get(0);</pre><pre>        System.out.println(hello); // &quot;Hello&quot;</pre><pre>   }</pre><pre>}</pre><p>Both the classes compile down to the same bytecode.</p><pre>class TypeCheck {<br>  TypeCheck();<br>    Code:<br>       0: aload_0<br>       1: invokespecial #1                  // Method java/lang/Object.&quot;&lt;init&gt;&quot;:()V<br>       4: return</pre><pre>public static void main(java.lang.String[]);<br>    Code:<br>       0: new           #2                  // class java/util/ArrayList<br>       3: dup<br>       <strong>4: invokespecial #3                  // Method java/util/ArrayList.&quot;&lt;init&gt;&quot;:()V</strong><br>       7: astore_1<br>       8: aload_1<br>       9: ldc           #4                  // String Hello<br>      11: invokeinterface #5,  2            // InterfaceMethod java/util/List.add:(Ljava/lang/Object;)Z<br>      16: pop<br>      17: aload_1<br>      18: iconst_0<br>      19: invokeinterface #6,  2            // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;<br>      24: checkcast     #7                  // class java/lang/String<br>      27: astore_2<br>      28: getstatic     #8                  // Field java/lang/System.out:Ljava/io/PrintStream;<br>      31: aload_2<br>      32: invokevirtual #9                  // Method java/io/PrintStream.println:(Ljava/lang/String;)V<br>      35: return<br>}</pre><p>Check the 4th index of the stack. It is not having any information about the type.</p><p>Java 5 introduced variable arguments. This means that you can pass multiple arguments via ...</p><pre>public void someMethodTakesMultipleArguments(String... args) { }</pre><pre>// Pass in generic arguments<br>public &lt;T&gt; void someMethodTakesMultipleArguments(T... generic) { }</pre><p>The ... tells the compiler that it expects an array of String in the first case and an array of T in the second case.</p><p>The generic arguments will lead to potentially unsafe operations. It is possible that the method will cast or potentially change the type. This will lead to uncertainty.</p><p>So the compiler will issue a warning when compiling.</p><pre>Note: GenericArguments.java uses unchecked or unsafe operations.</pre><p>Because varargs can cause heap pollution.</p><pre>Varargs method could cause heap pollution from non-reifiable varargs parameter</pre><p>In order to solve that, Java7 introduced @SafeVarargs annotation. That will tell the compiler that the method or constructor does not perform potentially unsafe operations on varargs parameter.</p><p>Applying the @SafeVarargs annotation to the method will suppress the compiler warning about the unchecked warnings.</p><p>But adding @SafeVarargs to a potentially unsafe method will lead to ClassCastException at the runtime.</p><p><em>When to apply this annotation:</em> When you pass in variable arguments to a method or constructor and you don’t mutate or cast the object type. The method is potentially safe.</p><p><em>Where to apply this annotation: </em>To the final and static methods. This prevents it from overriding the methods. The methods in the interface should not have this annotation.</p><pre>If the varargs parameter array is used only to transmit a variable number of arguments from the caller to the method—which is, after all, the purpose of varargs—then the method is safe.<br>                                                    - <strong>Effective Java</strong></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9fdd5d996bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying JHipster in Oracle Kubernetes Engine]]></title>
            <link>https://sendilkumarn.medium.com/deploying-jhipster-in-oracle-kubernetes-engine-ba2729fb64e3?source=rss-3893f6499f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba2729fb64e3</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[jhipster]]></category>
            <dc:creator><![CDATA[sendilkumarn]]></dc:creator>
            <pubDate>Sun, 02 Dec 2018 22:04:29 GMT</pubDate>
            <atom:updated>2018-12-02T22:04:29.694Z</atom:updated>
            <content:encoded><![CDATA[<p>Speaking at <a href="https://www.oracle.com/code-one/">Oracle Codeone</a> this year was an amazing experience. I was able to see many of my Java (super)heroes there. Last but not least made some amazing friends there. That is the best thing about any conference right, make friends 👫, see legends 🤓, (re)learn from the community 📖.</p><p>Note: The icing on the cake was getting a 4.45 / 5 rating for my talk 😃</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4bc8sPThLw1GUsL1_WnR5A.jpeg" /><figcaption>Hipsters in action :)</figcaption></figure><p>After the conference, I made a todo list of the things that I want to learn and experiment. Few of them are</p><ul><li>The Fibers in Java</li><li>Play with Oracle Cloud</li><li>OpenJ9 &amp; its GC</li><li>Micronaut</li></ul><p>This post is all about <a href="https://cloud.oracle.com/home">Oracle Cloud</a>. While there are a lot of exciting things in Oracle Cloud. I chose to start with <a href="https://cloud.oracle.com/containers/kubernetes-engine">Oracle Kubernetes Engine</a>.</p><p>Let us dive into action. The very first thing is, of course, create a Kubernetes cluster.</p><p>Goto menu &gt; Developer services &gt; Container Clusters(OKE).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t4lDcl67rryWmBZLkAP4Nw.png" /><figcaption>Finding OKE presence in the sidebar</figcaption></figure><p>Then click on “Create Cluster”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*gla8AprdQVTxMMm1Pux6Zw.png" /><figcaption>Create Cluster button</figcaption></figure><p>In the modal popup, enter the required details like the cluster name, Kubernetes engine version, and Node pool details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7l1Bcgop8x0Nd3W54x69ww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aq0WcCug3GcSeDHlYsAZWA.png" /><figcaption>Create Kubernetes cluster</figcaption></figure><p>Added to that, you also have those additional add-ons at the bottom. While Kubernetes Dashboard is somewhat essential for any use case. Tiller (Helm Enabled) is an additional and interesting option. I have chosen both. But it is not mandatory for the application that we will be deploying today.</p><p><em>Note: Are you facing an error, when creating the Kubernetes cluster? Fear not check this amazing blog post from Lucas. </em><a href="https://goo.gl/jZXhjL"><em>https://goo.gl/jZXhjL</em></a></p><p>Wait, what is the application that we are gonna deploy today?</p><p>A Spring Boot based application with Angular frontend. With Spring Data, Spring Security, Actuators wired. Add a database and few deployment scripts to create Docker files and Kubernetes configurations. Well that is a lot. Don’t worry we have JHipster for that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkaNq3IAnaCjq054n7K0Zw.png" /><figcaption>JHipster</figcaption></figure><p><a href="https://jhipster.tech/">JHipster</a> is a development platform that helps you to build, develop and deploy Spring boot based Angular or React or VueJS applications.</p><p>Creating an application is so easy with JHipster. Let us create an application.</p><p>Open your terminal and enter</p><pre>npm install -g generator-jhipster</pre><p>Create a folder and then run jhipster inside the folder.</p><p>Choose default values for all the questions. The application is generated now.</p><p>For Kubernetes configuration files, create another folder and then run the jhipster kubernetes command. Answer all the default values. Check the screenshot below for more details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*34oHt84hx-jyH-8who1UVQ.png" /></figure><p><em>Note: JHipster kubernetes command expects “Docker” to be installed and running.</em></p><p>That is it, now we will go to our applications folder and run ./mvnw package -Pprod verify jib:dockerBuild</p><p>This will build the application and create a Docker image.</p><p>Now we can have to tag the image and push it into the Docker repository.</p><pre>$ docker image tag jhipster sendilkumarn/jhipster<br>$ docker push sendilkumarn/jhipster</pre><p>Now you are ready to deploy your applications into Oracle Kubernetes cluster.</p><p>But we have just created an engine but there are no nodes available for the Kubernetes cluster to operate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*FEXps3Xc_lqJo2wud7xdbA.png" /></figure><p>To create node in the OKE, Go to the cluster and click on “Add Node Pool”.</p><p>Fill in the node name, the Kubernetes version, the OS, the subnet where it will live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TraGw_8Gs9VcsKk_O0P3yQ.png" /><figcaption>Create Node pools</figcaption></figure><p>Now let us connect our K8s running in Oracle cloud into our local terminal.</p><p>Click on “Access KubeConfig“ and follow the instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*955TwUTH2nS9MFhxdqH26Q.png" /><figcaption>Access kubeconfig</figcaption></figure><p>Once you have connected, you can then check the Kubernetes cluster information. To get the available pods in the OKE cluster, run</p><p>kubectl get pods --namespace kube-system</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhz-A4rpd5S0EQ2zcIl4FQ.png" /><figcaption>Kube-system pods</figcaption></figure><p>Now go to the folder, where you have created K8s configuration file with JHipster and run ./kubectl-apply.sh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*HZCcnkhI9fvVx--aPV19uQ.png" /><figcaption>Deploying into Kuberenetes</figcaption></figure><p>After few seconds, the application is started and available in the following external IP. (since we have chosen LoadBalancer for Kubernetes service type).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*alAtDEdpP0eXOGdSlCRSDw.png" /><figcaption>Deployed in Kubernetes</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*asFp9OW9lAq98gS2iZuQ0g.png" /></figure><p>Great that you have reached this point. Congrats on deploying your application into Oracle Kubernetes Engine.</p><p>Check out <a href="https://medium.com/@sendilkumarn/hello-istio-%EF%B8%8F-welcome-to-jhipster-b67dc68ecb19">this</a> post for Microservices deployment with Istio and Kubernetes.</p><p>Interested to do JHipster with <a href="https://kotlinlang.org/">Kotlin</a>. Check <a href="https://github.com/jhipster/jhipster-kotlin">this</a> out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nqttFFuX-8t0mCzFqn6ciA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba2729fb64e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Migrate from angular 6 to 7]]></title>
            <link>https://sendilkumarn.medium.com/how-to-migrate-from-angular-6-to-7-1efc0da86d4f?source=rss-3893f6499f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1efc0da86d4f</guid>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[migration-guide]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[sendilkumarn]]></dc:creator>
            <pubDate>Thu, 18 Oct 2018 22:01:36 GMT</pubDate>
            <atom:updated>2018-10-23T22:36:45.574Z</atom:updated>
            <content:encoded><![CDATA[<p>The <strong>Angular 7 </strong>was released. It is time for all of our ngx-* projects to upgrade to the latest version and live on the edge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Oron57cSkwts6xkbN80Gzg.png" /><figcaption>The Angular logo</figcaption></figure><p>This release focused on improving the entire platform. Drag and Drop and Angular Elements were one of the key features in this release.</p><p>Note: There was a breaking change in 6.1 (wait, are breaking changes should be part of major releases, you know about it. We are talking about Angular 😉) which affects only those who use <strong>bazel</strong> for the building. (check out <a href="https://github.com/angular/angular/blob/master/CHANGELOG.md#breaking-changes">here</a>)</p><blockquote>The all new and exciting IVY is still in active development and not in this release. 😢</blockquote><p>The full list of changelog can be found <a href="https://github.com/angular/angular/blob/master/CHANGELOG.md">here</a>, <a href="https://github.com/angular/material2/blob/master/CHANGELOG.md">here</a> and <a href="https://github.com/angular/angular-cli/releases">here</a>.</p><p>With the introduction of <a href="https://blog.angular.io/schematics-an-introduction-dc1dfbc2a2b2">Schematics</a>, Angular CLI adds in new prompts feature. This will definitely increase developer productivity and customising the code transformations that will be built on top of Angular CLI.</p><p>The ng new command, will prompt you to ask whether you need routing and stylesheet format. Upon selecting the default options to both questions. That is no routing and CSS stylesheet format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YfiPqOU0JNBB2z2Qoiioig.png" /></figure><p>The ng serve command, In Angular7, it takes 5.4s (✅) to build and <strong>3.5MB</strong> (✅) bundle size for a basic app generated by angular-cli. Slightly lesser than Angular 6.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JWhQLkVspOwvsce04GY4Lg.png" /></figure><p>On the other hand, aot builds without minification and suppling prod flags takes around 5.6s (✅) and <strong>3.4MB</strong> (🔻🔻) bundle size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MyDM7PwrMwuSC2_uYSSDug.png" /></figure><p>With — prod flag, it takes around 23s (🔻) to build and the bundle size is around <strong>107KB</strong>(✅✅)</p><p>There is a significant increase in the build time, but the bundle size is decreased drastically in the prod build. It is really awesome.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/10edd597311ff556510674dcd8743783/href">https://medium.com/media/10edd597311ff556510674dcd8743783/href</a></iframe><p>With Schematics, it will be easier for Angular team to introduce breaking changes and handle them gracefully with the developers. You can use</p><pre>ng update @angular/cli @angular/core</pre><p>The major change, with this upgrade is updating the dependent libraries like rxjs and TypeScript.</p><p>Angular 7 supports Node 10 🎉. It also supports <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-1.html">TypeScript 3.1</a> and Rxjs 6 ( check the<a href="https://github.com/ReactiveX/rxjs/blob/master/docs_app/content/guide/v6/migration.md"> migration guide</a>). There will be a lot of rxjs library imports upgrade.</p><p>If you are tired of regular benchmarks with angular cli generated app and interested in more of a real-world complex application example, here we go.</p><p>For this example, as we did <a href="https://medium.com/@sendilkumarn/migrating-from-angular-4-to-angular-5-in-jhipster-c2d6464e7dfe">before</a>, we will take a sample JHipster application, share our story of what we did to migrate to angular 7.</p><p><a href="https://github.com/jhipster/generator-jhipster/pull/8161">Angular: Update to Typescript 3 and Angular 7 by wmarques · Pull Request #8161 · jhipster/generator-jhipster</a></p><p>If you haven’t heard about JHipster, you should definitely check it <a href="https://jhipster.tech/">here</a>. If you are (dream of) doing full stack development and interested to learn the newest technology and also how to do things faster and more awesome you should check out <a href="https://www.packtpub.com/application-development/full-stack-development-jhipster">here</a>.</p><p>You can find the bundle differences between angular 5, angular 6 and angular 7 below,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e3bbee138571aa0b71e303fd34fc5cc/href">https://medium.com/media/1e3bbee138571aa0b71e303fd34fc5cc/href</a></iframe><p>This version also supports prompts in CLI. So you can create your own schematics for migration. This will tremendously reduce the amount of manual changes that you have to do.</p><p>Now you need <a href="https://github.com/reactivex/rxjs/compare/6.2.2...6.3.0">RxJS 6.3</a> and <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-1.html">TypeScript 3.1 </a>for Angular 7.</p><p>Other exciting things to notice are</p><ul><li>Angular Elements now supports Shadow DOM v1 and slots — Check out <a href="https://angular.io/guide/elements">here</a></li></ul><p>Why would you update to Angular 6?</p><ul><li>Bundle size is reduced</li><li>One step closer to ivy</li></ul><p>Why you should take some time and think?</p><ul><li>With new TypeScript and RxJS, it is a good time to migrate.</li></ul><p>Happy Hacking 😎</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1efc0da86d4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hello Istio, in JHipster — Part 2]]></title>
            <link>https://sendilkumarn.medium.com/hello-istio-in-jhipster-part-2-1f3208a544f3?source=rss-3893f6499f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f3208a544f3</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[istio]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[jhipster]]></category>
            <dc:creator><![CDATA[sendilkumarn]]></dc:creator>
            <pubDate>Fri, 28 Sep 2018 14:00:16 GMT</pubDate>
            <atom:updated>2018-09-28T14:00:16.869Z</atom:updated>
            <content:encoded><![CDATA[<p>Let us deploy the microservices with Istio.</p><blockquote>Brief recap, in the last part, we have created the configuration files for Kubernetes and Istio for the microservices application generated by JHipster.</blockquote><p>It is time 🕰to check what JHipster generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*c9aXBzO7UZIf6F-S8--YpQ.png" /></figure><ul><li>app1 folder contains configuration files for Microservice application</li><li>gate folder contains configuration files for Microservice gateway</li><li>regsitry folder contains configuration files for JHipster Registry</li><li>kubectl-apply.sh is a bash script to deploy all the services together</li></ul><p>Inside the Registry folder,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*k-9Rsr5OxZZyxEd6f2IcLg.png" /></figure><p>The application-configmap.yml contains JHipster Registry’s configuration.</p><p>The jhipster-registry.yml contains the following.</p><pre><em>### Registry password</em><br>apiVersion: v1<br>kind: Secret<br>......<br>---<br><em>### About the service the port in which it has to run</em><br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: jhipster-registry<br>.......<br>spec:<br>  ports:<br>  - port: 8761<br>    name: http<br>  clusterIP: None<br>  selector:<br>    app: jhipster-registry<br>---<br><em>### replicas &amp; stating the Istio not to inject sidecar automatically</em><strong><em><br></em></strong>apiVersion: apps/v1<br>kind: StatefulSet<br>metadata:<br>  name: jhipster-registry<br>  namespace: default<br>spec:<br>  serviceName: jhipster-registry<br>  replicas: 2<br>     .........<br>  template:<br>    metadata:<br>      labels:<br>        app: jhipster-registry<br>        version: &quot;v1&quot;<br>      <strong>annotations:<br>        sidecar.istio.io/inject: &quot;false&quot;</strong><br>    spec:<br>      .....</pre><p>This disables sidecar injection in the JHipster Registry. Since we need the sidecar injection mainly for the Microservice Gateway.</p><p>Inside the Gate folder,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*IDMZJpDfVVYNOoTs-oPmpg.png" /></figure><p>The gate-deployment.yaml contains the application configuration for the gateway application deployment.</p><p>The gate-destination-rule.yml contains the network definitions related to Load Balancing and connection timeouts.</p><pre>apiVersion: networking.istio.io/v1alpha3<br>kind: DestinationRule<br>metadata:<br>  name: gate-destinationrule<br>  namespace: default<br>spec:<br>  host: gate<br>  trafficPolicy:<strong><br>    loadBalancer:<br>      simple: RANDOM #specifying a random rule for loadbalancing.</strong><br>    connectionPool: <strong># Timeouts and connections related information</strong><br>      tcp:<br>        maxConnections: 30<br>        connectTimeout: 100ms<br>      http:<br>        http1MaxPendingRequests: 10<br>        http2MaxRequests: 100<br>        maxRequestsPerConnection: 10<br>        maxRetries: 5<br>    outlierDetection:<br>      consecutiveErrors: 5<br>      interval: 30s<br>      baseEjectionTime: 60s<br>  subsets:<br>  - name: v1<br>    labels:<br>      version: &quot;v1&quot;</pre><p>In the spec, we mention the host as the gate application.</p><p>Then we define the traffic policy</p><p>Load Balancer can be either simple or consistent</p><p>Simple — pre-configured. By default it supports</p><ul><li>RoundRobin</li><li>Least Conn</li><li>Random</li><li>Pass through</li></ul><p>We have chosen Random here. It is better than the RoundRobin, if we donot have any health configuration. It checks for the services that is healthy and routes the request to it. For more information on this — Check<a href="https://istio.io/docs/reference/config/istio.networking.v1alpha3/#LoadBalancerSettings"> here</a></p><p>The gate-gateway.yml contains configuration for Istio’s Ingress gateway. This will sit at the edge of the service mesh created by the Istio. It configures exposed ports and protocols and helps to connect to the underlying services.</p><pre>apiVersion: networking.istio.io/v1alpha3<br>kind: Gateway<br>metadata:<br>  name: gate-gateway<br>  namespace: default<br>spec:<br>  selector:<br>    istio: ingressgateway<br>  servers:<br>  - port:<br>      number: 80<br>      name: http<br>      protocol: HTTP<br>    hosts:<br>    - gate.sendilkumarn.com<br>  - port:<br>      number: 80<br>      name: http2<br>      protocol: HTTP2<br>    hosts:<br>    - gate.sendilkumarn.com<br>#  - port:<br>#      number: 443<br>#      name: https<br>#      protocol: HTTPS<br>#    hosts:<br>#    - gate.sendilkumarn.com<br>---<br>apiVersion: networking.istio.io/v1alpha3<br>kind: VirtualService<br>metadata:<br>  name: gate-gw-virtualservice<br>  namespace: default<br>spec:<br>  hosts:<br>  - gate.sendilkumarn.com<br>  gateways:<br>  - gate-gateway<br>  http:<br>  - match:<br>    - uri:<br>        prefix: /<br>    route:<br>    - destination:<br>        host: gate</pre><p>Note that the hosts in the configuration file are the based on the DNS name that we have provided. This makes the entire application easy to reach via the browser.</p><p>There is also a virtual service defined in the configuration file. Since Ingress Gateways in Istio doesn’t include any traffic routing configuration (which is quite the opposite to what Kubernetes does). The virtual service here helps to achieve the traffic routing.</p><p>The gate-service.yml contains the configuration for the microservice gateway service.</p><p>The gate-mysql.ymlcontains the configuration for the MySQL Database. (This file might vary based on the production database that you cho0se while generating the application.)</p><p>Thegate-virtual-service.yaml contains the configuration for the virtual service that helps to route the requests in the mesh.</p><pre>apiVersion: networking.istio.io/v1alpha3<br>kind: VirtualService<br>metadata:<br>  name: gate-virtualservice<br>  namespace: default<br>spec:<br>  hosts:<br>  - gate<br>  http:<br>  - route:<br>    - destination:<br>        host: gate<br>        subset: &quot;v1&quot;<br>      weight: 100<br>    retries:<br>      attempts: 3<br>      perTryTimeout: 2</pre><p>Wow, that&#39;s a lot of configuration files. But they make your work easier. JHipster FTW.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*qYwXt7mefazf_RDY" /><figcaption>Kubernetes + Istio</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/0*gbkN6dzaooaOfNf3.png" /><figcaption>Google Cloud Platform deployment.</figcaption></figure><p>Now the fun part to deploy the application in the GCP. <a href="https://cloud.google.com/sdk/install">Install Google Cloud SDK</a> before starting.</p><p>After logging into the Google Cloud Console, you can either create a new project or use the existing one.</p><p>Once the project is created. Create a Kubernetes Cluster inside the project.</p><pre>gcloud container clusters create hello-istio --region=us-central1-a --machine-type=n1-standard-2 --num-nodes=8  --cluster-version=1.10.7-gke.2</pre><p>Here we are creating a cluster with the gcloud tool with a cluster name <strong>hello-istio</strong>. In the region <strong>us-central1- a</strong>, with machine type <strong>n1-standard-2 </strong>(choose <a href="https://cloud.google.com/compute/docs/machine-types">this</a> as you need) with a number of nodes <strong>8</strong>. This will spin up 8 nodes, Kubernetes cluster. That will be more than enough for us to play with this simple microservices application.</p><p>Also, note the — cluster-version parameter, which sets the Kubernetes cluster to version <strong>1.10.7-gke.2</strong>.</p><p>Note: If you want to change anything here, please feel free to change it as you might like. Check the Kubernetes version compatibility with the Istio version.</p><p>You can also use the UI to generate the cluster.</p><p>It will take a while for your cluster to get started. Let us go and grab a ☕️ and a 🍪.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3RO_jd39E7MqsCh5R57Ag.png" /></figure><p>Once it is up and running, let us connect to the cluster from your cloud shell (or) your terminal.</p><pre>gcloud container clusters get-credentials hello-istio --zone us-central1-a --project amazing-istio</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hYSZcz_oyIVhPdSE7I1Q4Q.png" /></figure><p>Next step, set the admin permissions for the cluster. Open your cloud shell(or) terminal and then use the following command to enable admin permissions.</p><pre>kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=$(gcloud config get-value core/account)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6rWl8Wl4irCxTVyDiIS41Q.png" /></figure><p>Now it is the time to install Istio in the cluster.</p><p>The easiest way to install is to download the latest Istio</p><pre>curl -L <a href="https://git.io/getLatestIstio">https://git.io/getLatestIstio</a> | sh -</pre><p>It fetches the latest Istio source. Then add Istio to the path.</p><pre>export PATH=&quot;$PATH:/home/&lt;username&gt;/istio-x.x.x/bin&quot;</pre><p>Now apply the istio-demo.yaml file to create Istio related things in the cluster. This will create an <strong>istio-system</strong> namespace in the cluster and installs all the necessary components inside the cluster.</p><pre>kubectl apply -f istio-x.x.x/install/kubernetes/istio-demo.yaml</pre><p>You can check the usage and installation by running</p><pre>kubectl get pods -n istio-system</pre><p>This will show the list of pods that are running in the istio-system namespace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JZpmXzrnlLGsGuG6wOfh4g.png" /></figure><p>Now lets head over to our generated K8s configuration file in local and start deploying them.</p><p>When the JHipster Kubernetes completed. It said it is missing some docker images. Now we have to create the Docker image and push it to the Docker repository. Then we can use Kubernetes cluster to fetch these images and deploy them in the GCP.</p><p>The first step is to build the image and then push it to Docker Repository. Let us run this file in both the Microservice Gateway and Application folder.</p><pre>./mvnw verify -Pprod dockerfile:build</pre><p>Then we have to tag the Docker image and push it into the Docker repository.</p><pre>docker image tag gate &lt;docker-repo-name&gt;/gate</pre><pre>docker image push &lt;docker-repo-name&gt;/gate</pre><pre>docker image tag gate &lt;docker-repo-name&gt;/app</pre><pre>docker image push &lt;docker-repo-name&gt;/app</pre><p>once done, let us head over to the k8s folder and run</p><p><em>Note: If you haven’t connected the cluster to the local terminal, please do the following command</em></p><pre>gcloud container clusters get-credentials hello-istio --zone us-central1-a --project &lt;your project name&gt;</pre><p>./kubectl-apply.sh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*KxQ00eBXBGDTKQ8Kpasxrg.png" /></figure><p>This will deploy all the services and databases into the Kubernetes cluster. Perfect that is it you have deployed your awesome microservices application with Istio into GKE running on GCP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PHJ0-pzO7APrp8kP5Dt_Yg.png" /></figure><p>Head over to gate.sendilkumarn.com to check the application up and running.</p><p>Congrats 🎉🎉🎉🎉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f3208a544f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hello Istio ⛵️, welcome to JHipster]]></title>
            <link>https://sendilkumarn.medium.com/hello-istio-%EF%B8%8F-welcome-to-jhipster-b67dc68ecb19?source=rss-3893f6499f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b67dc68ecb19</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[istio]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[jhipster]]></category>
            <dc:creator><![CDATA[sendilkumarn]]></dc:creator>
            <pubDate>Fri, 28 Sep 2018 14:00:05 GMT</pubDate>
            <atom:updated>2018-09-28T14:06:52.853Z</atom:updated>
            <content:encoded><![CDATA[<p>Microservices are great. They break down bigger applications into smaller pieces.</p><p>They help you to</p><ul><li>Create more modular &amp; Loosely coupled applications</li><li>Parallelize and accelerate the rate of development</li><li>Increase the overall productivity</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*cX5aT5D2-Hjqnp6n-fyDiQ.png" /></figure><p>But (Yes there is a but 😉) they are a pain to maintain. In short,</p><p><em>Microservices shift the problems from inside the application into layers between the applications.</em></p><p>This results in newer questions like,</p><ul><li>How to connect different services?</li><li>How to secure the services?</li><li>How to control the services? and</li><li>How to monitor the services?</li></ul><p>They are a difficult problem to solve. Seriously, playing with Transport Layer, for example, Layer 4 and Layer 7 is not an easy job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*b3KiN4qEi_rmym0HUdHu4A.png" /></figure><p>While there are a lot of new applications, projects and products are created to address the problems with Microservices. But still maintaining high availability, resiliency and reliability all together are harder to fix.</p><p><a href="https://istio.io/">Istio</a> is a game changer. Istio components need not be installed or configured in each application. Instead, it runs along with your microservices independently. (Yes you heard it right it runs separately)</p><blockquote>Istio makes it easy to create a network of deployed services with load balancing, service-to-service authentication, monitoring, and more, without any changes in service code. — <a href="https://istio.io/docs/concepts/what-is-istio/">Istio</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0YR59uimy1XSHV17SFmiAg.png" /><figcaption>From istio.io site</figcaption></figure><p>Istio helps to address these problems. Istio helps to</p><ul><li>Automatically load balance the <a href="https://istio.io/docs/concepts/what-is-istio/#traffic-management">traffic</a> between services</li><li>Configure and <a href="https://istio.io/docs/concepts/what-is-istio/#security">Control</a> the routing between services</li><li>Provides authentication and authorization between services</li><li>Automatic metrics, logs, and traces <a href="https://istio.io/docs/concepts/what-is-istio/#observability">collection</a> for services</li></ul><p>And the best of all is that you don’t need to change anything in the existing services. Istio is platform independent and designed to run in a variety of environments. — Check out Istio Architecture <a href="https://istio.io/docs/concepts/what-is-istio/#architecture">here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-KFCWYpe3UhjHPqpqS0W2A.png" /></figure><blockquote><a href="https://www.jhipster.tech/">JHipster</a> is a development platform to generate, develop and deploy <a href="https://projects.spring.io/spring-boot/">Spring Boot</a> + <a href="https://angular.io/">Angular</a>/<a href="https://reactjs.org/">React</a> Web applications and Spring microservices.</blockquote><p>So what are we gonna do today,</p><ul><li>Generate Kubernetes &amp; Istio configuration files for the generated JHipster microservices application</li><li>Deploy them on the GCP.</li></ul><p><em>Create a Microservices Gateway and Application using JHipster. Check out </em><a href="https://www.jhipster.tech/microservices-architecture/"><em>here</em></a><em> for how to create a Microservices application using JHipster. The application is generated with default options.</em></p><p>Hooray, you have generated a cool microservice application with JHipster. Now it is time to generate <a href="https://kubernetes.io/">Kubernetes</a> and <a href="http://istio.io/">Istio</a> configuration files for it.</p><p>Create Microservices Gateway and Application in sibling folders like this,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*hJPi3xv1bkI-YAovvAEIcg.png" /></figure><p>Go to hello-istio folder. Create a folder called k8s inside it. Go to k8s folder and run,</p><p>&gt; jhipster kubernetes</p><p>Note: It checks whether you have installed Docker since we need Docker for creating and pushing the images and use them later.</p><p>As with other JHipster commands, this will ask you a set of questions. Let us answer them.</p><p>Let us choose the Microservice Application for the first question.</p><pre>? Which *type* of application would you like to dep?<br>    Monolithic Application<br>  &gt; Microservice Application </pre><p>The next question is to link your applications for which you have to generate the configuration files. If you are following this sample folder structure, just use the default path, else (thanks for being creative ✨) use the folder in which you have your microservice applications.</p><pre>? Enter the root directory where your gateway(s) and microservices are located (../)</pre><p>The next question is to select the respective microservices applications here.</p><pre>? Which applications do you want to include in your configuration? (Press &lt;space&gt; to select, &lt;a&gt; to toggle all, &lt;i&gt; to invert selection)<br>❯◯ app1<br> ◯ gate</pre><p>Since microservices need monitoring, that helps the developers and operations to understand what is going on and where is the fault.</p><p>JHipster provides two options one with our own JHipster-Console. The other is with Prometheus. For the purpose of this example, I will choose No.</p><pre>Do you want to setup monitoring for your applications ? (Use arrow keys)<br>❯ No<br>  Yes, for logs and metrics with the JHipster Console (based on ELK and Zipkin)<br>  Yes, for metrics only with Prometheus (only compatible with JHipster &gt;= v3.12)</pre><p>JHipster intelligently finds that you are using JHipster Registry in the microservices application and asks you to secure it with the password in the next question. I will go with the default here. Again, in real life scenario, use a difficult password, please.</p><pre>JHipster registry detected as the service discovery and configuration provider used by your apps<br>? Enter the admin password used to secure the JHipster Registry (admin)</pre><p>The next question is about the Kubernetes namespace, let us choose the <strong>default</strong> for this.</p><pre>? What should we use for the Kubernetes namespace? (default)</pre><p>Since we will create a Docker image and push this into the Docker repository. The next question is the Docker repository name.</p><pre>? What should we use for the base Docker repository name? sendilkumarn</pre><p>Let us push the Docker images using <strong>docker push </strong>command.</p><pre>? What command should we use for push Docker image to repository? (docker push)</pre><p>The next question is whether we need to configure Istio. There are three options here for you to choose.</p><ul><li>Not to have Istio at all</li><li>A Manual sidecar injection.</li><li>An Automatic sidecar injection using label tags</li></ul><p>So what is the difference between Manual &amp; Automatic sidecar injection?</p><p><em>In the case of manual, the deployment pod specs are modified to have sidecar related details. But in the case of automated, the sidecar is injected at the pod creation time.</em></p><p>Let us choose, Automatic injection. So we need not worry about adding this in every deployment.</p><p>Note: Check <a href="https://istio.io/docs/setup/kubernetes/sidecar-injection/#injection">here</a> for a detailed information about sidecar injection.</p><pre>? Do you want to configure Istio? (Use arrow keys)<br>  Not required<br>  Manual sidecar injection (ensure istioctl in $PATH)<br>❯ Label tag namespace as automatic injection is already configured</pre><p>Routing and Load balancing are one of the coolest features that Istio provides out of the box. Living outside your services they control routing the requests to the services and Load Balance the request between services or various versions of the services.</p><p>The next question is whether we need to generate Istio route files. Let us select <strong>Yes</strong> for the route files.</p><pre>? Do you want to generate Istio route files?<br>  No<br>❯ Yes</pre><p>The route files helps you to configure routing requests, set request timeouts, switch to Https, control traffic, circuit breaking, and health checking.</p><p>The next question is the service type for the edge services. Let us use <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/">Ingress</a> for this.</p><pre>? Choose the kubernetes service type for your edge services<br>  LoadBalancer - Let a kubernetes cloud provider automatically assign an IP<br>  NodePort - expose the services to a random port (30000 - 32767) on all cluster nodes<br>❯ Ingress - create ingresses for your services. Requires a running ingress controller</pre><p>There are three options here</p><ul><li><a href="https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer">Load Balancer</a> — This will create an external IP for the services and you can use that IP to access the application.</li><li><a href="https://kubernetes.io/docs/concepts/services-networking/service/#nodeport">Nodeport</a> — This will use the cluster IP and expose’s the service via a static port.</li><li><a href="https://kubernetes.io/docs/concepts/services-networking/ingress/">Ingress</a> — It is a collection of rules that allow inbound connections to the services.</li></ul><p>Since we have selected Ingress, the next question is to say a DNS with which we can route the services. If you have a domain name you can use that here, else give a dummy entry here and change your etc/hosts file to match the IP with the Domain name.</p><pre>? What is the root FQDN for your ingress services (e.g. example.com, sub.domain.co, <a href="http://www.10.10.10.10.xip.io/">www.10.10.10.10.xip.io</a>, [namespace.ip]...)? (default.192.168.99.100.nip.io) sendilkumarn.com</pre><p>If you don’t have the DNS, then edit your /etc/hosts file to have this,</p><pre>x.x.x.x  sendilkumarn.com</pre><p>Sweet 🎉🎉🎉, You have created Kubernetes &amp; Istio configuration files. Let us see what JHipster has actually created and deploy it to GCP in <a href="https://medium.com/@sendilkumarn/hello-istio-in-jhipster-part-2-1f3208a544f3">part 2</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b67dc68ecb19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started into Go and WebAssembly]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://sendilkumarn.medium.com/getting-started-into-go-and-webassembly-8491b133a616?source=rss-3893f6499f7------2"><img src="https://cdn-images-1.medium.com/max/1431/1*Uzd2n_pZTnQkCK0_MHE81w.jpeg" width="1431"></a></p><p class="medium-feed-snippet">Go is an opensource programming language that makes it easy to build simple, reliable, and efficient software.</p><p class="medium-feed-link"><a href="https://sendilkumarn.medium.com/getting-started-into-go-and-webassembly-8491b133a616?source=rss-3893f6499f7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://sendilkumarn.medium.com/getting-started-into-go-and-webassembly-8491b133a616?source=rss-3893f6499f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8491b133a616</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[webassembly]]></category>
            <category><![CDATA[golang-tutorial]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[sendilkumarn]]></dc:creator>
            <pubDate>Tue, 14 Aug 2018 15:45:41 GMT</pubDate>
            <atom:updated>2018-08-14T15:45:41.931Z</atom:updated>
        </item>
    </channel>
</rss>