<?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 Ben Cheng on Medium]]></title>
        <description><![CDATA[Stories by Ben Cheng on Medium]]></description>
        <link>https://medium.com/@imben1109?source=rss-91c826425653------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LFET1uZ2KgVpy6h_xi_TRg@2x.jpeg</url>
            <title>Stories by Ben Cheng on Medium</title>
            <link>https://medium.com/@imben1109?source=rss-91c826425653------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 01:20:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@imben1109/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[Flux CD: Quick Start & Architecture Overview]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@imben1109/flux-cd-quick-start-architecture-overview-e3e1173b8062?source=rss-91c826425653------2"><img src="https://cdn-images-1.medium.com/max/872/1*rxjEYmTrbH6a1Z0VHoiJxQ.png" width="872"></a></p><p class="medium-feed-snippet">Installation (macOS)</p><p class="medium-feed-link"><a href="https://medium.com/@imben1109/flux-cd-quick-start-architecture-overview-e3e1173b8062?source=rss-91c826425653------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@imben1109/flux-cd-quick-start-architecture-overview-e3e1173b8062?source=rss-91c826425653------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3e1173b8062</guid>
            <dc:creator><![CDATA[Ben Cheng]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 14:43:06 GMT</pubDate>
            <atom:updated>2026-06-23T14:43:06.562Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[GitHub Copilot: A Quick and Practical Guide]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@imben1109/github-copilot-a-quick-and-practical-guide-14c1bbfe95b3?source=rss-91c826425653------2"><img src="https://cdn-images-1.medium.com/max/600/1*gDcewL7e9tpkattTj_Hhzg.png" width="600"></a></p><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://medium.com/@imben1109/github-copilot-a-quick-and-practical-guide-14c1bbfe95b3?source=rss-91c826425653------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@imben1109/github-copilot-a-quick-and-practical-guide-14c1bbfe95b3?source=rss-91c826425653------2</link>
            <guid isPermaLink="false">https://medium.com/p/14c1bbfe95b3</guid>
            <dc:creator><![CDATA[Ben Cheng]]></dc:creator>
            <pubDate>Wed, 29 Apr 2026 16:20:59 GMT</pubDate>
            <atom:updated>2026-04-29T16:20:59.104Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Isito]]></title>
            <link>https://medium.com/@imben1109/isito-ab84e9c816ea?source=rss-91c826425653------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab84e9c816ea</guid>
            <dc:creator><![CDATA[Ben Cheng]]></dc:creator>
            <pubDate>Tue, 30 Sep 2025 14:38:31 GMT</pubDate>
            <atom:updated>2025-10-07T02:49:05.721Z</atom:updated>
            <content:encoded><![CDATA[<h3>Isito —Study Notes</h3><h3>What is Isito</h3><p>Istio is an open-source service mesh that manages microservice communications in distributed applications.</p><p>It is primary designed for K8s. but it also supports VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SOXoSFNj67IAww88yde2RA.png" /></figure><pre>sequenceDiagram<br>    participant App as Application Container<br>    participant Proxy as istio-proxy (Envoy sidecar)<br>    participant Istiod as Istiod (Control Plane)<br><br>    App-&gt;&gt;Proxy: Send request<br>    Proxy-&gt;&gt;Istiod: Fetch and receive config updates<br>    Istiod--&gt;&gt;Proxy: Push routing &amp; security configs<br>    Proxy-&gt;&gt;Proxy: Enforce policies (routing, mTLS, retries)<br>    Proxy-&gt;&gt;Destination Service: Forward request<br>    Destination Service--&gt;&gt;Proxy: Return response<br>    Proxy--&gt;&gt;App: Deliver response<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bYTwF5WtDRICiNLWi5ItJA.png" /></figure><pre>sequenceDiagram<br>    participant App as Application Container<br>    participant Proxy as istio-proxy (Envoy sidecar)<br>    participant Istiod as Istiod (Control Plane)<br>    participant ExternalService as External Service (ServiceEntry)<br><br>    App-&gt;&gt;Proxy: Send request<br>    Proxy-&gt;&gt;Istiod: Fetch and receive config updates<br>    Istiod--&gt;&gt;Proxy: Push routing &amp; security configs, ServiceEntry info<br>    Proxy-&gt;&gt;Proxy: Enforce policies (routing, mTLS, retries)<br>    Proxy-&gt;&gt;ExternalService: Forward request per ServiceEntry (HTTP/HTTPS proxy)<br>    ExternalService--&gt;&gt;Proxy: Return response<br>    Proxy--&gt;&gt;App: Deliver response</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab84e9c816ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LangChain for Starters: Study Notes and Simple Examples]]></title>
            <link>https://medium.com/developer-notes/langchain-for-starters-study-notes-and-simple-examples-2444dff49772?source=rss-91c826425653------2</link>
            <guid isPermaLink="false">https://medium.com/p/2444dff49772</guid>
            <dc:creator><![CDATA[Ben Cheng]]></dc:creator>
            <pubDate>Sun, 14 Sep 2025 12:30:49 GMT</pubDate>
            <atom:updated>2025-10-04T03:33:28.073Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>LangChain is an open-source framework designed to simplify building application powered large language models (LLMs) such as OpenAI’s GPT.</p><h3>What is LangChain</h3><p>At its core, LangChain provides tools to build language model-powered software more efficiently by abstracting common task</p><ul><li>Access to LLMs via simple API calls</li><li>Prompt template to standardize language input</li><li>Memory management to keep track of conversation history</li><li>Chain to combine multiple setps or models</li><li>Agent capable of interacting with tools or APIs</li><li>Integration with external data for retrieval-augmented generation (RAG)</li></ul><h3>Installation and Setup</h3><pre>pip install langchain openai</pre><h3>Basic Example: Asking a Question</h3><pre>from langchain.llms import OpenAI<br><br>llm = OpenAI(temperature=0.7)<br>question = &quot;What are the five most populated cities in the world?&quot;<br>answer = llm(question)<br>print(answer)</pre><h3>Using Prompt Template</h3><pre>from langchain.prompts import PromptTemplate<br>from langchain.chains import LLMChain<br><br>template = &quot;Translate this English sentence to French: {sentence}&quot;<br>prompt = PromptTemplate(template=template, input_variables=[&quot;sentence&quot;])<br>chain = LLMChain(llm=llm, prompt=prompt)<br><br>result = chain.run(&quot;Hello, how are you?&quot;)<br>print(result)</pre><h3>Going Further Chain and Agents</h3><p>LangChain supports building complex workflows by chaining multiple operations or invoking intelligent agents to interact with external services like web APIs, databases, or tools. These capabilities unlock building custom chatbots, question-answering systems, summarizers, and more.</p><h3>Summary and Next Steps</h3><p>LangChain offers a powerful yet accessible way to develop LLM-driven applications. Starting with direct model calls and prompt templates is the best way to build understanding. As you grow comfortable, explore memory, chains, retrievers, and agents for advanced use cases.</p><h3>LLM provider List with Free Tier and Availability in Hong Kong</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d5deb33c188106297d35b041176b143/href">https://medium.com/media/1d5deb33c188106297d35b041176b143/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2444dff49772" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-notes/langchain-for-starters-study-notes-and-simple-examples-2444dff49772">LangChain for Starters: Study Notes and Simple Examples</a> was originally published in <a href="https://medium.com/developer-notes">Developer Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin IDE Note — Intellj and VSCode]]></title>
            <link>https://medium.com/developer-notes/kotlin-ide-note-intellj-and-vscode-a253eff4c552?source=rss-91c826425653------2</link>
            <guid isPermaLink="false">https://medium.com/p/a253eff4c552</guid>
            <category><![CDATA[intellij]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[vscode]]></category>
            <dc:creator><![CDATA[Ben Cheng]]></dc:creator>
            <pubDate>Sat, 06 Jul 2024 18:51:13 GMT</pubDate>
            <atom:updated>2025-09-14T05:39:43.349Z</atom:updated>
            <content:encoded><![CDATA[<h3>IDE for Kotlin— Intellj and VSCode</h3><h3>Intellij</h3><p>Kotlin Development in Intellij is fully supported as Kotlin developed by JetBrains. There is my note to initialise the Kotlin Project in Intellij.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YQLxYy_n3QYwRbvmv2-wiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*3At9LSp82Q7unHPhLGqG7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*vAasyXDOeJ6OTpfxBr0xXg.png" /></figure><h3>VS Code</h3><p>Up to now (July 2024), Kotlin is officially supported in VSCode or official plugin provided by Kotlin. So, we need to find third-party plugins for kotlin development in VS Code.</p><p>Plugins: 1. <strong>Kotlin Language</strong> and 2.<strong> Code Runner</strong>.</p><p>(kotlin complier is required vis brew in OSX)</p><h4>Plugins</h4><ol><li>Kotlin Language</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*stvcqrBwppBBm2gJ6-l28A.png" /></figure><p>2. Code Runner</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*mmiujCoX5i8O9yRSrX2GcA.png" /></figure><h4>Kotlin Complier in OSX</h4><pre>brew install kotlin</pre><h4>Kotlin Hello World Example in VSCode</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*VP3i7eNBIDWw6NVkxK-BeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*_pYKYZwEJJ54Mp8GwteNCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/1*_PlDVpKhqqaJdj57VS3YvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*DypFVl1kOLsdPqFsjwtCnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*pHF3OISqVzar1Jog1yFINw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a253eff4c552" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-notes/kotlin-ide-note-intellj-and-vscode-a253eff4c552">Kotlin IDE Note — Intellj and VSCode</a> was originally published in <a href="https://medium.com/developer-notes">Developer Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java IDE Note — Intellj & VS Code]]></title>
            <link>https://medium.com/developer-notes/java-kotlin-ide-intellj-vs-code-722cf6a6a9c8?source=rss-91c826425653------2</link>
            <guid isPermaLink="false">https://medium.com/p/722cf6a6a9c8</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[intellij]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Ben Cheng]]></dc:creator>
            <pubDate>Mon, 03 Jun 2024 18:23:57 GMT</pubDate>
            <atom:updated>2024-07-18T00:14:30.757Z</atom:updated>
            <content:encoded><![CDATA[<h3>Intellj</h3><p>Up to Now (July 2024), Intellij is most popular IDE for Java Development. There is my note to create Java Project with Gradle Build.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YQLxYy_n3QYwRbvmv2-wiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*TS7ahUGA4s6Weos-325drA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jMAFDnzjETKPTU3QCaVf3g.png" /></figure><h3>VSCode</h3><p>VSCode is more lightweight than Intellij. It is not designed for Java Development. So plugin is required in VSCode in order to develop Java Program in VSCode.</p><p>Plugin: <strong>Extension Pack for Java</strong></p><p>(Note: there is Coding Pack for Java in VSCode for download. So. No need to download VScode and Install Plugin — — <a href="https://code.visualstudio.com/docs/java/java-tutorial">https://code.visualstudio.com/docs/java/java-tutorial</a>)</p><h4>Hello World Java Project in VSCode</h4><p>ShortCut in VSCode: Command + P</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*Son_rtjPhgzKsYv6rATxOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*PdHwflk-ZqkslFIwNj0EZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*TDSfG4jVcY3D0EMV03w93w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*II9XQY7e9HqGhxjhnczdsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*GVuqqStx_VLpgMI8nojuzQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*sE8cPNFf_IY-bdHyq0ebKw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=722cf6a6a9c8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-notes/java-kotlin-ide-intellj-vs-code-722cf6a6a9c8">Java IDE Note — Intellj &amp; VS Code</a> was originally published in <a href="https://medium.com/developer-notes">Developer Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Common Concurrency Issues and Solutions in Java]]></title>
            <link>https://medium.com/developer-notes/multithreading-java-03c9ac18933e?source=rss-91c826425653------2</link>
            <guid isPermaLink="false">https://medium.com/p/03c9ac18933e</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[concurrency]]></category>
            <dc:creator><![CDATA[Ben Cheng]]></dc:creator>
            <pubDate>Sun, 02 Jun 2024 07:25:26 GMT</pubDate>
            <atom:updated>2024-07-06T19:44:33.621Z</atom:updated>
            <content:encoded><![CDATA[<h3>Common Concurrency Issues</h3><p>JVM enables multi-threads in Java application. There are common problem for Multi-Threads such as Race Condition, Deadlocks, Starvation.</p><h4>Race Conditions</h4><p>Example: different threads try to read and write value to same variable. The value depends on which thread writes the value to the variable.</p><h4>Deadlocks</h4><p>Example: One thread locks the resource and another thread keeps waiting on it.</p><h4>Starvation</h4><p>Example: One greedy thread constantly acquiring the resource resulting anther thread being starvation or no progress.</p><h3>Java Solutions</h3><p>Java provides several solutions to handle concurrency issues such as Thread-safe objects, Thread-safe collection, Synchronisation, Atomic Variables, volatile and other High-Level Concurrency API.</p><h4>Thread-safe objects</h4><p>Examples: Immutable Objects</p><h4>Thread-safe Collections</h4><p>Examples: CopyOnWriteArrayList, ConcurrentHashMap</p><h4>Synchronisation</h4><p>Examples: synchronized key word</p><h4>Atomic Variables</h4><p>Examples: AtomicInteger , AtomicLong , AtomicReference</p><p>These variables provide atomic operation which complete operation in a single step and compare-and-swap (CAS) to ensure data integrity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03c9ac18933e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-notes/multithreading-java-03c9ac18933e">Common Concurrency Issues and Solutions in Java</a> was originally published in <a href="https://medium.com/developer-notes">Developer Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CPU and Java Threads]]></title>
            <link>https://medium.com/developer-notes/cpu-and-multiple-thread-6c3cdbfd3005?source=rss-91c826425653------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c3cdbfd3005</guid>
            <category><![CDATA[threads]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[cpu]]></category>
            <dc:creator><![CDATA[Ben Cheng]]></dc:creator>
            <pubDate>Sun, 02 Jun 2024 06:06:31 GMT</pubDate>
            <atom:updated>2024-07-06T21:57:10.155Z</atom:updated>
            <content:encoded><![CDATA[<h3>CPU and Cores</h3><p>The full name of CPU is central Processing Unit. A Modern CPU typically has multiple cores. Each core can be considered as independent processor.</p><p>A CPU Thread (Virtual Core) is hardware-level virtual versions of a CPU core which is a sequence of instructions that can be executed independently by a processor.</p><h4>Multiple Process / Multitasking</h4><p>For a single core, the fact is only one process can be executed at any one time on a single core CPU. To achieve multiple tasking, the operating system (OS) would use some techniques like process switching (context switching) to make multiple simultaneously executing process happen.</p><h3>Java Threads</h3><p>A Java thread is execution unit in JVM. JVM enable a Java application to have multiple concurrently running threads. Java Threads are managed in JVM by task scheduling for concurrent processing.</p><h3>Multiple Threads and CPU</h3><p>In Java Memory Model, there are two important memory components which is <strong>Heap </strong>and <strong>Stack</strong>.</p><p>Heap is a memory area for Java objects while Stack is a memory area for each Thread.</p><p>JVM enable multiple threads on different CPUs. Each Thread has its own local memory area (Stack) to store the temporal computation results. Once the thread completes its execution, it will flushes the result back to RAM (Heap).</p><p>Therefore, the variables accessed by different threads may be different. Java provides a keyword volatile to tell the thread need to read the latest value of the variables in the main memory.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c3cdbfd3005" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-notes/cpu-and-multiple-thread-6c3cdbfd3005">CPU and Java Threads</a> was originally published in <a href="https://medium.com/developer-notes">Developer Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hashicorp Vault — Hello World in Local OSX]]></title>
            <link>https://medium.com/developer-notes/hashicorp-vault-hello-world-in-local-osx-01eb7cf47c3b?source=rss-91c826425653------2</link>
            <guid isPermaLink="false">https://medium.com/p/01eb7cf47c3b</guid>
            <category><![CDATA[hashicorp-vault]]></category>
            <dc:creator><![CDATA[Ben Cheng]]></dc:creator>
            <pubDate>Tue, 21 May 2024 08:58:26 GMT</pubDate>
            <atom:updated>2024-05-21T08:58:26.632Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hashicorp Vault — Hello World in Local OSX</h3><p>Install Hashicorp Vault locally in OSX</p><pre>brew install hashicorp/tap/vault</pre><p>Start Vault Server — Dev Mode</p><pre>vault server -dev</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*uGDp7TRIy6d15McaK2dT1A.png" /></figure><p>You can browse <a href="http://localhost:8200/">http://localhost:8200</a> and login with token shown in the console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RwWjoZ2ARGti-uLa4eeQ4Q.png" /></figure><p>To use Vault Command</p><pre>export VAULT_ADDR=&quot;http://127.0.0.1:8200&quot;<br>export VAULT_TOKEN=&quot;&lt;TOKEN in the Console&gt;&quot;</pre><pre>vault kv put -mount=secret hello foo=world</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*BjzCniL4q-2w7MulDlXyqg.png" /></figure><pre>vault kv get -mount=secret hello</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*DzcdLP1TQLgRyyDVVTPvzg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01eb7cf47c3b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-notes/hashicorp-vault-hello-world-in-local-osx-01eb7cf47c3b">Hashicorp Vault — Hello World in Local OSX</a> was originally published in <a href="https://medium.com/developer-notes">Developer Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Helm —One of K8S Deployment]]></title>
            <link>https://medium.com/developer-notes/helm-one-of-k8s-deployment-0b865aa020c0?source=rss-91c826425653------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b865aa020c0</guid>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[helm]]></category>
            <dc:creator><![CDATA[Ben Cheng]]></dc:creator>
            <pubDate>Sun, 19 May 2024 17:07:04 GMT</pubDate>
            <atom:updated>2024-05-24T12:22:51.653Z</atom:updated>
            <content:encoded><![CDATA[<p>Kubernetes/K8s is the most popular container orchestration platform. In K8s, there are different parts required to be configured in the platform such as the service, deployment, route, etc. So <strong>Helm </strong>is introduced for this challenging deployment problem.</p><p>Helm is a package manager. So, you can define your K8s application’s configuration in <strong>Helm Chart </strong>which is the definition for the K8s resource (pods, service, ingress).</p><h3>Install Helm in OSX</h3><pre>brew install helm</pre><h3>Minikube for K8s Testing in OSX</h3><pre>brew install minikube<br>minikube start</pre><h3><strong>Helm Hello World Example — MyChart</strong></h3><pre>helm create MyChart<br>cd MyChart &amp;&amp; ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*4WZOGRj-pezFa9G1iAFDig.png" /></figure><p><strong>Chart Structure</strong></p><ul><li>Chart.yaml: Description for Chart Package — My Chart</li><li>template: template files which describe different kind of K8s resources</li><li>values.yaml: values for template files</li><li>charts: sub-charts folder</li></ul><p>In the template folder, you would find some pre-generated files or folder.</p><pre>cd template &amp;&amp; ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*vSWG51p4QIDbMCxA21Jcew.png" /></figure><p>you can simply delete these example files</p><pre>rm -fr *</pre><p>In this example, we would like to create a config map in k8s.</p><pre>vi configmap.yaml</pre><p>template/config.yaml</p><pre># template/config.yaml<br><br>apiVersion: v1<br>kind: ConfigMap<br>metadata:<br>  name: my-chart-config-map<br>data:<br>  myvalue: &quot;Hello World&quot;</pre><p><strong>Install Chart to k8s</strong></p><pre>helm install my-chart ./MyChart</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mfyw8cO3b5dx3Phmlpgsbw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b865aa020c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-notes/helm-one-of-k8s-deployment-0b865aa020c0">Helm —One of K8S Deployment</a> was originally published in <a href="https://medium.com/developer-notes">Developer Notes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>