<?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"><channel><title><![CDATA[Vital Tech Blog]]></title><description><![CDATA[Vital Tech Blog]]></description><link>https://blog.vitaltechmyanmar.com</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1725508071690/1db7c12c-2d2a-493d-85bc-2a755765028f.jpeg</url><title>Vital Tech Blog</title><link>https://blog.vitaltechmyanmar.com</link></image><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 13:49:41 GMT</lastBuildDate><atom:link href="https://blog.vitaltechmyanmar.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Stop Over-Engineering in DevOps/SRE]]></title><description><![CDATA[ယနေ့ခေတ် Cloud-Native နဲ့ DevOps လောကမှာ နည်းပညာအသစ်တွေ ထွက်ပေါ်လာနှုန်းဟာ အံ့မခန်း မြန်ဆန်လွန်းနေပါတယ်။ CNCF (Cloud Native Computing Foundation) ရဲ့…]]></description><link>https://blog.vitaltechmyanmar.com/stop-over-engineering-in-devops-sre</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/stop-over-engineering-in-devops-sre</guid><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Tue, 27 Oct 2026 13:46:39 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/646edfeb0ed089624d33fe3c/6f260bae-f4b7-4f8b-91cb-715f1f1e3e68.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>ယနေ့ခေတ် Cloud-Native နဲ့ DevOps လောကမှာ နည်းပညာအသစ်တွေ ထွက်ပေါ်လာနှုန်းဟာ အံ့မခန်း မြန်ဆန်လွန်းနေပါတယ်။ CNCF (Cloud Native Computing Foundation) ရဲ့ Landscape ကို ဖွင့်ကြည့်လိုက်တယ်ဆိုရင် Observability, Service Mesh, GitOps, Orchestration စတဲ့ ကဏ္ဍအသီးသီးမှာ ရွေးချယ်စရာ Tool ပေါင်း ရာနဲ့ချီ ရှိနေတာကို တွေ့ရပါလိမ့်မယ်။</p>
<p>ဒီလို ရွေးချယ်စရာ ပေါများလာခြင်းနဲ့အတူ DevOps Engineer တွေ၊ SRE (Site Reliability Engineer) တွေကြားမှာ မသိမသာ ကူးစက်လာတဲ့ ပြဿနာတစ်ခု ရှိပါတယ်။ အဲဒါကတော့ ပြဿနာရဲ့ အတိမ်အနက်ကို မကြည့်ဘဲ အရှုပ်ထွေးဆုံး၊ အသစ်လွင်ဆုံး နည်းပညာတွေနဲ့သာ အဖြေရှာချင်ကြတဲ့ <strong>Over-Engineering</strong> ပြဿနာပဲ ဖြစ်ပါတယ်။</p>
<p>ရိုးရိုးရှင်းရှင်း အဓိပ္ပာယ်ဖွင့်ရရင် လက်ရှိ Business ရဲ့ လိုအပ်ချက်၊ Traffic ပမာဏ၊ Team Capacity တို့ထက် အဆမတန် ပိုမိုရှုပ်ထွေးပြီး ထိန်းသိမ်းရခက်ခဲတဲ့ စနစ်တစ်ခုကို တည်ဆောက်မိခြင်း ဖြစ်ပါတယ်။ DevOps နဲ့ SRE ရဲ့ အဓိက ရည်မှန်းချက်ဟာ Software Delivery ကို မြန်ဆန်ချောမွေ့စေဖို့နဲ့ စနစ်တစ်ခုလုံး Reliable ဖြစ်နေစေဖို့ ဖြစ်ပါတယ်။ ဒါပေမဲ့ Over-Engineering လုပ်မိတဲ့အခါ ကျွန်တော်တို့ တည်ဆောက်လိုက်တဲ့ Automation တွေ၊ Pipeline တွေနဲ့ Infrastructure အလွှာတွေဟာ ပြဿနာကို ဖြေရှင်းပေးမယ့်အစား သူတို့ကိုယ်တိုင်က ထိန်းသိမ်းရမယ့် ပြဿနာအသစ် တွေ ဖြစ်လာတတ်ပါတယ်။</p>
<p>Engineer တော်တော်များများဟာ စေတနာအမှားနဲ့ Over-Engineering လုပ်မိတတ်ကြသလို၊ တစ်ခါတလေမှာတော့ စိတ်ပိုင်းဆိုင်ရာ လှုံ့ဆော်မှုတွေကြောင့်လဲ လုပ်တတ်ကြပါတယ်။ အဓိက အကြောင်းရင်း (၅) ချက်ကတော့ —</p>
<ol>
<li><strong>Hyperscaler Envy</strong></li>
</ol>
<p>Google, Netflix, Uber, Spotify တို့လို Tech Giant ကြီးတွေရဲ့ Engineering Blog တွေ၊ Conference Talk တွေကို ကြည့်ပြီး သူတို့သုံးတဲ့ Architecture အတိုင်း လိုက်ဆောက်ချင်ကြတာ ဖြစ်ပါတယ်။ သတိပြုရမှာက အဲဒီကုမ္ပဏီကြီးတွေဟာ တစ်စက္ကန့်ကို Request သန်းပေါင်းများစွာနဲ့ ကမ္ဘာအနှံ့က Data Center တွေကို ချိတ်ဆက်နေရတာ ဖြစ်ပြီး၊ သူတို့မှာ အဲဒီ Platform ကိုပဲ သီးသန့်ထိန်းသိမ်းမယ့် Engineer ရာချီ ရှိနေပါတယ်။ သူတို့ရဲ့ ပြဿနာနဲ့ ကိုယ့်ရဲ့ ပြဿနာ မတူညီဘဲ သူတို့ရဲ့Solution ကို ယူသုံးလိုက်တဲ့အခါ မလိုအပ်တဲ့ ဝန်ထုပ်ဝန်ပိုးကြီး ဖြစ်သွားတတ်ပါတယ်။</p>
<ol start="2">
<li><strong>Prompt-Driven Engineering</strong></li>
</ol>
<p>ယနေ့ခေတ်မှာ Engineer တော်တော်များများဟာ ကိုယ်တိုင် Architecture ကို အခြေခံကနေ စဉ်းစားတာ၊ Documentation ဖတ်တာတွေ မလုပ်တော့ဘဲ ကိစ္စသေးသေးလေးကအစ AI ကိုပဲ Prompt ပေးပြီး အဖြေထုတ်ခိုင်းလာကြပါတယ်။ ဒီလို အရာရာကို Prompt ပေးပြီး လုပ်ခြင်း ကနေ မသိမသာ Over-Engineering ဖြစ်သွားရတဲ့ အကြောင်းရင်းကတော့</p>
<ul>
<li><strong>AI သည် ရိုးရှင်းမှုထက် "Maximum Enterprise" ကိုသာ ဦးစားပေးထုတ်ပေးခြင်း:</strong> AI ကို <em>"Production အတွက် Kubernetes manifest သို့မဟုတ် Terraform code ရေးပေးပါ"</em> လို့ Prompt ပေးလိုက်တဲ့အခါ၊ AI က သင့်ရဲ့ လက်ရှိ Team အရွယ်အစားနဲ့ တကယ့်လိုအပ်ချက်ကို မသိပါဘူး။ ဒါကြောင့် သူသိသမျှ Enterprise Best Practices တွေ၊ မလိုအပ်တဲ့ Security Policies တွေ၊ Complex Abstractions တွေနဲ့ အလွှာပေါင်းများစွာကို တစ်ပြိုင်တည်း ထည့်ရေးပေးလိုက်ပါတယ်။</li>
<li><strong>Copy-Paste လုပ်ရ လွယ်ကူသဖြင့် မလိုအပ်သော ကုဒ်များ စုပုံလာခြင်း:</strong> အရင်တုန်းက ရှုပ်ထွေးတဲ့ Configuration တစ်ခုရေးဖို့ နာရီပေါင်းများစွာ အချိန်ပေးရတဲ့အတွက် တကယ်လိုအပ်မှသာ ရေးဖြစ်ကြပါတယ်။ အခုချိန်မှာတော့ Prompt တစ်ကြောင်း ရိုက်ထည့်လိုက်ရုံနဲ့ စာကြောင်းရေ ရာချီရှိတဲ့ YAML, HCL သို့မဟုတ် CI/CD Pipeline တွေကို စက္ကန့်ပိုင်းအတွင်း ရရှိနေတာကြောင့် "ပါထားတော့လည်း ကောင်းတာပဲ" ဆိုတဲ့ စိတ်နဲ့ မျက်စိမှိတ် Copy-Paste လုပ်မိကြပါတယ်။</li>
<li><strong>ကိုယ်တိုင် နားမလည်သော စနစ်ကြီး ဖြစ်လာခြင်း:</strong> အရာရာကို AI Prompt နဲ့ပဲ တည်ဆောက်ထားတဲ့အခါ၊ စနစ်ကြီးက အပြင်ပန်းကြည့်ရင် အရမ်းခမ်းနားနေပေမဲ့ တကယ်တမ်း Production မှာ ပြဿနာတက်တဲ့အခါကျမှ အဲဒီ AI ထုတ်ပေးထားတဲ့ Logic တွေ၊ Flags တွေက ဘာအတွက် သုံးထားမှန်း ကိုယ်တိုင်တောင် သေချာမသိဘဲ ပြန်ရှင်းရခက်တဲ့ အခြေအနေ ဖြစ်သွားတတ်ပါတယ်။</li>
</ul>
<ol start="3">
<li><strong>Premature Optimization</strong></li>
</ol>
<p>"<code>နောင်တစ်ချိန် User ၁၀ သန်း ဝင်လာရင် ဘယ်လိုလုပ်မလဲ?</code>"၊ "<code>နောက်နှစ်မှာ AWS ကနေ GCP ကို ပြောင်းချင်ရင် လွယ်အောင် အခုကတည်းက Cloud-Agnostic ဖြစ်အောင် ဆောက်ထားမယ်</code>" ဆိုတဲ့ မသေချာသေးတဲ့ အနာဂတ်အတွက် လက်ရှိမှာ အချိန်နဲ့ ငွေကြေး အမြောက်အမြား ရင်းနှီးမြှုပ်နှံမိတာ ဖြစ်ပါတယ်။ လက်တွေ့မှာတော့ Company 95% လောက်ဟာ Cloud Provider တစ်ခုကနေ နောက်တစ်ခုကို အလွယ်တကူ ပြောင်းလေ့မရှိသလို၊ Day-1 မှာ ကြိုဆောက်ထားတဲ့ Architecture ကလည်း တကယ်တမ်း Scale လုပ်ရမယ့်အချိန် ရောက်တဲ့အခါ ခေတ်မမီတော့တာမျိုး ဖြစ်နေတတ်ပါတယ်။</p>
<ol start="4">
<li><strong>Resume-Driven Development</strong></li>
</ol>
<p>နည်းပညာလောကမှာ ကိုယ့်ရဲ့ Market Value မကျသွားအောင် အသစ်ထွက်တဲ့ Tool တွေကို လေ့လာရတာ သဘာဝကျပါတယ်။ ဒါပေမဲ့ ကိုယ့်ရဲ့ CV မှာ Kubernetes, Istio, Cilium, Crossplane စတဲ့ နာမည်တွေ ထည့်ရေးချင်ရုံသက်သက်နဲ့ မလိုအပ်တဲ့ Production Environment မှာ အတင်းဆွဲသုံးမိတဲ့အခါ ကုမ္ပဏီရော၊ ကိုယ့်ရဲ့ လုပ်ဖော်ကိုင်ဖက်တွေပါ ဒုက္ခရောက်ရတတ်ပါတယ်။</p>
<ol start="5">
<li>The Illusion of Seniority</li>
</ol>
<p>တချို့သော Engineer တွေဟာ ရိုးရှင်းတဲ့ Architecture Diagram တစ်ခု ဆွဲပြရမှာကို ရှက်တတ်ကြပါတယ်။ Linux VM လေးတွေ၊ Managed Database နဲ့ ရိုးရှင်းတဲ့ CI/CD Pipeline လေးပဲ သုံးထားရင် ကိုယ့်ကိုယ်ကိုယ် "Senior မဆန်ဘူး" လို့ ထင်တတ်ကြပြီး၊ Box တွေ၊ မြားတွေ အရှုပ်အထွေးနဲ့ Diagram ကြီးတွေ ဆွဲပြနိုင်မှ တော်တယ်လို့ မှတ်ယူမိတတ်ကြပါတယ်။</p>
<p>ကိုယ့်ရဲ့ လက်ရှိ System ဟာ လိုအပ်တာထက် ပိုရှုပ်ထွေးနေပြီလားဆိုတာ အောက်ပါ လက္ခဏာတွေနဲ့ တိုက်ဆိုင်စစ်ဆေးကြည့်နိုင်ပါတယ် —</p>
<ul>
<li><strong>Infrastructure Overhead &gt; Application Workload:</strong> တကယ်အလုပ်လုပ်နေတဲ့ Business Application တွေထက် သူ့ကို ဝန်းရံထားတဲ့ Monitoring agents, Logging collectors, Service Mesh proxies နဲ့ Control plane တွေက CPU နဲ့ Memory ကို ပိုစားနေခြင်း။</li>
<li><strong>The Multi-Hop Debugging Nightmare:</strong> သာမန် Network Timeout သို့မဟုတ် <code>502 Bad Gateway</code> ပြဿနာလေးတစ်ခု တက်ရင်တောင် အဖြေရှာဖို့အတွက် Network နဲ့ Proxy အလွှာ ၆ လွှာ၊ ၇ လွှာလောက်ကို တစ်ဆင့်ချင်း လိုက်စစ်နေရခြင်း။</li>
<li><strong>Fragile Abstraction in IaC:</strong> Terraform သို့မဟုတ် Ansible မှာ DRY (Don't Repeat Yourself) ဖြစ်ချင်လွန်းလို့ Module တွေ၊ Dynamic Variable တွေ အထပ်ထပ် ခံထားတဲ့အတွက်၊ သာမန် Port တစ်ခုဖွင့်ဖို့ သို့မဟုတ် Environment Variable တစ်ခုထည့်ဖို့ ဖိုင်ပေါင်းများစွာကို လိုက်ပြင်နေရပြီး <code>terraform plan</code> ရိုက်ရမှာကိုတောင် လန့်နေရခြင်း။</li>
<li><strong>Platform Maintenance Trap:</strong> DevOps/SRE အဖွဲ့ရဲ့ အချိန် 70% ကျော်ဟာ Product Feature အသစ်တွေ ထွက်နိုင်အောင် ကူညီပေးဖို့ မဟုတ်ဘဲ၊ ကိုယ်ဆောက်ထားတဲ့ Cluster တွေ၊ Tool တွေ မကျသွားအောင် Upgrade လုပ်ခြင်း၊ Patch ထိုးခြင်းတို့နဲ့သာ လုံးပန်းနေရခြင်းတို့ပဲဖြစ်ပါတယ်။</li>
</ul>
<p>စနစ်တစ်ခုမှာ အစိတ်အပိုင်း (Moving Parts) များလာလေလေ၊ ပျက်စီးနိုင်ခြေရှိတဲ့ ထောင့်ကွက်တွေ (Failure Modes) က ဆတိုးများလာလေလေ ဖြစ်ပါတယ်။ အလွှာတိုင်းမှာ သူ့ရဲ့ ကိုယ်ပိုင် Bug၊ Configuration Error နဲ့ Network Latency တွေ ရှိနေနိုင်တာကြောင့် Incident တစ်ခုဖြစ်ပြီဆိုရင် ပြန်လည်ကောင်းမွန်လာဖို့ ကြာချိန် <strong>MTTR (Mean Time To Recovery)</strong> ကို အဆမတန် ကြာမြင့်သွားစေပါတယ်။</p>
<h3>Cognitive Load and Bus Factor</h3>
<p>Architecture တစ်ခုလုံးရဲ့ အလုပ်လုပ်ပုံကို အဖွဲ့ထဲက စတင်တည်ဆောက်ခဲ့သူ တစ်ယောက်တည်းကပဲ နားလည်ပြီး၊ ကျန်တဲ့သူတွေက မထိရဲ၊ မပြင်ရဲတဲ့ အခြေအနေ ဖြစ်လာတတ်ပါတယ်။ အဲဒီလူ အလုပ်ထွက်သွားရင် သို့မဟုတ် ခွင့်ယူထားရင် တစ်ဖွဲ့လုံး ဘာဆက်လုပ်ရမှန်း မသိတော့တဲ့ <strong>Bus Factor</strong> အန္တရာယ် ကြုံရသလို၊ အသစ်ဝင်လာတဲ့ Engineer တစ်ယောက် အလုပ်စလုပ်နိုင်ဖို့ (Onboarding) လနဲ့ချီ အချိန်ယူရတတ်ပါတယ်။Over-engineered စနစ်တွေဟာ အမြဲတမ်း ဂရုစိုက်ပေးနေရတဲ့ (High-maintenance) သဘောသဘာဝ ရှိပါတယ်။ မလိုအပ်တဲ့ Component တွေဆီကနေ ထွက်လာတဲ့ False-positive Alert တွေကြောင့် ညဘက် On-call တာဝန်ကျသူတွေ အိပ်ရေးပျက်ရပြီး၊ ရေရှည်မှာ <strong>Alert Fatigue</strong> နဲ့ <strong>Burnout</strong> ဖြစ်ပေါ်စေပါတယ်။</p>
<p>Over-Engineering ကို ရှောင်ရှားတယ်ဆိုတာ အဆင့်မမီတဲ့ စနစ်ကို ဖြစ်သလို ဆောက်တာမျိုး (Under-Engineering) မဟုတ်ပါဘူး။ လိုအပ်ချက်နဲ့ အံဝင်ခွင်ကျဖြစ်ပြီး ရေရှည်ထိန်းသိမ်းရ လွယ်ကူတဲ့ စနစ် (Right-Sizing Engineering) ကို တည်ဆောက်ခြင်းသာ ဖြစ်ပါတယ်။ ဒီလို တည်ဆောက်နိုင်ဖို့ အောက်ပါ အချက်များကို လက်ကိုင်ထားသင့်ပါတယ်။</p>
<ol>
<li>Boring Technology</li>
</ol>
<p>နည်းပညာတစ်ခုဟာ ပျင်းစရာကောင်းလောက်အောင် ရိုးရှင်းပြီး သက်တမ်းရင့်နေပြီဆိုရင် (ဥပမာ - Linux, PostgreSQL, Nginx, Redis) သူ့ရဲ့ ကောင်းကွက်၊ ဆိုးကွက်နဲ့ ပြဿနာဖြေရှင်းနည်း အားလုံးကို တစ်ကမ္ဘာလုံးက သိနေပြီးသား ဖြစ်ပါတယ်။ Production မှာ ဆန်းသစ်မှု (Innovation) ထက် တည်ငြိမ်မှု (Predictability) က ပိုအရေးကြီးပါတယ်။ လက်ရှိ ရိုးရှင်းတဲ့ Tool က မဖြေရှင်းပေးနိုင်တော့တဲ့ တကယ့် အခက်အခဲ (Pain Point) ကြုံလာမှသာ Tool အသစ်ကို ပြောင်းလဲပါ။</p>
<ol start="2">
<li>Practice Evolutionary Architecture</li>
</ol>
<p>Day-1 မှာ Day-1000 အတွက် ကြိုမဆောက်ပါနဲ့။ လက်ရှိ Traffic ရဲ့ ၂ ဆ သို့မဟုတ် ၅ ဆလောက်ကို ကောင်းကောင်း ကိုင်တွယ်နိုင်မယ့် အရိုးရှင်းဆုံး ပုံစံနဲ့ စတင်ပါ။ ဒါပေမဲ့ နောင်တစ်ချိန် တကယ်လိုအပ်လာရင် အလွယ်တကူ ဖြုတ်တပ်ပြောင်းလဲနိုင်အောင် (Loosely Coupled / Modular) တည်ဆောက်ထားပါ။ Bottleneck တကယ်ပေါ်လာတဲ့ နေရာကိုပဲ Metric တွေကြည့်ပြီး အဆင့်ဆင့် Scale လုပ်သွားတာက အမှန်ကန်ဆုံး နည်းလမ်းဖြစ်ပါတယ်။</p>
<ol start="3">
<li>Prioritize Clarity Over Cleverness in IaC</li>
</ol>
<p>Terraform, Helm, Ansible သို့မဟုတ် CI/CD Pipeline တွေ ရေးတဲ့အခါ ကိုယ်ဘယ်လောက် Logic ရေးတတ်လဲဆိုတာ ပြသဖို့ မကြိုးစားပါနဲ့။ Code အကြောင်းရေ နည်းနည်းပိုရှည်ပြီး ပြန်ထပ်နေရင်တောင် (WET - Write Everything Twice)၊ ဖတ်လိုက်တာနဲ့ ဘာလုပ်ထားလဲဆိုတာ ရှင်းရှင်းလင်းလင်း မြင်နိုင်တဲ့ ပုံစံက သာလွန်ကောင်းမွန်ပါတယ်။ Infrastructure Code ဆိုတာ နေ့တိုင်းပြင်နေရတဲ့ အရာမဟုတ်လို့ ၆ လနေမှ တစ်ခါပြန်ကြည့်ရင်တောင် ချက်ချင်းနားလည်နိုင်ဖို့ လိုအပ်ပါတယ်။</p>
<p><strong>Final Thoughts</strong></p>
<p>DevOps နဲ့ SRE ပညာရပ်ရဲ့ အနှစ်သာရဟာ ခေတ်အမီဆုံး နည်းပညာတွေ အားလုံးကို စုပြုံသုံးစွဲခြင်း မဟုတ်ပါဘူး။ ရှုပ်ထွေးလှတဲ့ နည်းပညာဆိုင်ရာ ပြဿနာတွေကို အရိုးရှင်းဆုံး၊ အတည်ငြိမ်ဆုံးနဲ့ ကုန်ကျစရိတ် အသက်သာဆုံး နည်းလမ်း နဲ့ ဖြေရှင်းပေးနိုင်ခြင်းသာ ဖြစ်ပါတယ်။</p>
<p>Junior Engineer တစ်ယောက်ဟာ ရိုးရှင်းတဲ့ ပြဿနာကို ရှုပ်ထွေးတဲ့ နည်းလမ်းနဲ့ ဖြေရှင်းတတ်ပြီး၊ တကယ့် ဝါရင့် Senior Engineer တစ်ယောက်ကတော့ ရှုပ်ထွေးတဲ့ ပြဿနာကို အရိုးရှင်းဆုံး နည်းလမ်းနဲ့ ဖြေရှင်းသွားတတ်ပါတယ်။ တစ်ဦးတစ်ယောက်ထဲအတွက်မဟုတ်ပဲ အဖွဲ့သားအားလုံး နားလည်လွယ်တဲ့ Infrastructure တစ်ခုကို တည်ဆောက်နိုင်ခြင်းကသာ SRE တစ်ယောက်ရဲ့ အမြင့်မားဆုံး အောင်မြင်မှု ပဲဖြစ်ပါတယ်။</p>
]]></content:encoded></item><item><title><![CDATA[How to manage AWS infrastructure with Terraform beyond provisioning]]></title><description><![CDATA[ယနေ့ခေတ်လုပ်ငန်းခွင်တွေမှာ Infrastructure as Code (IaC) ကို အသုံးပြုခြင်းဟာ Infrastructure တွေကို မြန်မြန်ဆန်ဆန် တည်ဆောက်နိုင်ဖို့အတွက်သာ မဟုတ်တော့ပါဘူး။…]]></description><link>https://blog.vitaltechmyanmar.com/how-to-manage-aws-infrastructure-with-terraform-beyond-provisioning</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/how-to-manage-aws-infrastructure-with-terraform-beyond-provisioning</guid><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Tue, 20 Oct 2026 15:22:32 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/646edfeb0ed089624d33fe3c/80158c1e-7388-439c-a8d4-7fb6346ea00d.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>Introduction</h2>
<p>ယနေ့ခေတ်လုပ်ငန်းခွင်တွေမှာ Infrastructure as Code (IaC) ကို အသုံးပြုခြင်းဟာ Infrastructure တွေကို မြန်မြန်ဆန်ဆန် တည်ဆောက်နိုင်ဖို့အတွက်သာ မဟုတ်တော့ပါဘူး။ Infrastructure တစ်ခုလုံးရဲ့ Lifecycle ကို ထိရောက်စွာ စီမံခန့်ခွဲနိုင်ဖို့လည်း အရေးကြီးလာပါတယ်။</p>
<p>Team အများစုမှာ Terraform ကို အသုံးပြုပြီး VPC, Subnet, Security Group, EC2, RDS, Load Balancer စတဲ့ AWS Resources တွေကို Provisioning လုပ်တဲ့အချိန်မှာပဲ အဓိက အသုံးပြုလေ့ရှိကြပါတယ်။</p>
<p>Infrastructure ကို တစ်ကြိမ်တည်ဆောက်ပြီးသွားတဲ့အခါ နေ့စဉ်လုပ်ငန်းဆောင်တာတွေကို AWS Console ကနေ ဆက်လက်စီမံခန့်ခွဲတာ၊ Resource တစ်ခုခု ပြောင်းလဲဖို့လိုလာတဲ့အခါ Console ကနေ တိုက်ရိုက်ပြင်ဆင်တာမျိုးတွေ ဖြစ်လာနိုင်ပါတယ်။</p>
<p>ဒီလိုလုပ်ဆောင်ခြင်းက အစပိုင်းမှာ လွယ်ကူပေမယ့် နောက်ပိုင်းမှာ Configuration Drift, Change Management, Security, Auditability နဲ့ Infrastructure Recovery စတဲ့ ပြဿနာတွေကို ဖြစ်ပေါ်စေနိုင်ပါတယ်။</p>
<p>ဒါကြောင့် Terraform ကို Provisioning အတွက်သာ အသုံးပြုမယ့်အစား <strong>Infrastructure ရဲ့ Lifecycle တစ်လျှောက်လုံးကို စနစ်တကျ စီမံခန့်ခွဲနိုင်တဲ့ Operating Model တစ်ခု</strong> အဖြစ် ပြောင်းလဲအသုံးပြုသင့်ပါတယ်။</p>
<hr />
<h2>1. Terraform ကို Provisioning Tool တစ်ခုအဖြစ်သာ မမြင်ပါနဲ့</h2>
<p>Terraform ကို အသုံးပြုတဲ့အခါ အရေးကြီးဆုံးနားလည်ထားသင့်တဲ့ အယူအဆကတော့ Terraform ဟာ Infrastructure တည်ဆောက်ဖို့အတွက်သာမက Infrastructure ရဲ့ Desired State ကို သတ်မှတ်ပြီး စီမံခန့်ခွဲဖို့အတွက်ပါ အသုံးပြုတဲ့ Tool ဖြစ်တယ်ဆိုတာပါပဲ။</p>
<p><strong>1. Git Repository</strong></p>
<p>Terraform Code တွေကို Git Repository ထဲမှာ ထိန်းသိမ်းထားမယ်။ Infrastructure အပြောင်းအလဲတွေကို Pull Request နဲ့ Code Review လုပ်ပြီးမှ လက်ခံမယ်။</p>
<p><strong>2. CI/CD Pipeline</strong></p>
<p>GitHub Actions/ GitLab CI လို CI/CD Tool ကို အသုံးပြုပြီး Terraform Format, Validate, Security Scanning နဲ့ Plan တွေကို အလိုအလျောက် လုပ်ဆောင်မယ်။</p>
<p><strong>3. Approval Process</strong></p>
<p>Terraform Plan ထဲက Resource အသစ်ထည့်သွင်းမှု၊ Configuration ပြောင်းလဲမှု၊ Resource Replace လုပ်မယ့်အခြေအနေနဲ့ Resource ဖျက်သိမ်းမယ့်အခြေအနေတွေကို Review လုပ်မယ်။</p>
<p><strong>4. Controlled Apply</strong></p>
<p>အတည်ပြုပြီးတဲ့ Infrastructure Changes တွေကို CI/CD Pipeline ကနေတစ်ဆင့် AWS မှာ Apply လုပ်မယ်။</p>
<p><strong>5. Continuous Management</strong></p>
<p>Infrastructure Drift, Security Findings, Monitoring Alerts, Backup Status နဲ့ Cost တွေကို ပုံမှန်စစ်ဆေးပြီး Infrastructure ကို ဆက်လက်စီမံခန့်ခွဲမယ်။</p>
<p>ဒီ Workflow ရဲ့ ရည်ရွယ်ချက်က Infrastructure Changes တွေအတွက် ပုံမှန်လုပ်ငန်းစဉ်တစ်ခု တည်ဆောက်ဖို့ပါပဲ။</p>
<p><strong>Change Code → Create Pull Request → Review Plan → Approve → Apply → Verify → Monitor</strong></p>
<p>ဒီလိုလုပ်ဆောင်ခြင်းအားဖြင့် Infrastructure Changes တွေကို ပိုမိုစနစ်တကျ၊ လုံခြုံစိတ်ချစွာနဲ့ Audit လုပ်ရလွယ်ကူအောင် စီမံခန့်ခွဲနိုင်ပါတယ်။</p>
<hr />
<h2>2. Terraform နဲ့ ဘာတွေကို Manage လုပ်သင့်သလဲ။</h2>
<p>Fully Managed IaC ဆိုတာ AWS Infrastructure တစ်ခုလုံးအပေါ် လုပ်ဆောင်မှုတိုင်းကို Terraform နဲ့ပဲ လုပ်ဆောင်ရမယ်လို့ ဆိုလိုတာ မဟုတ်ပါဘူး။</p>
<p>Terraform က Infrastructure Configuration ကို သတ်မှတ်ပေးပြီး AWS Native Services တွေက Infrastructure ရဲ့ Operational Activities အများစုကို ဆောင်ရွက်ပေးနိုင်ပါတယ်။</p>
<p>example -</p>
<table>
<thead>
<tr>
<th>Responsibility</th>
<th>Recommended tool or approach</th>
</tr>
</thead>
<tbody><tr>
<td>VPC, Subnet, Route Table, Security Group</td>
<td>Terraform</td>
</tr>
<tr>
<td>IAM Roles နဲ့ Policies</td>
<td>Terraform</td>
</tr>
<tr>
<td>ALB, WAF, ACM, Route 53 Configuration</td>
<td>Terraform</td>
</tr>
<tr>
<td>RDS Infrastructure Configuration</td>
<td>Terraform</td>
</tr>
<tr>
<td>Infrastructure Changes နဲ့ Approval</td>
<td>GitHub Actions + Terraform</td>
</tr>
<tr>
<td>Infrastructure Drift Detection</td>
<td>Scheduled Terraform Plan</td>
</tr>
<tr>
<td>API Activity Audit</td>
<td>AWS CloudTrail</td>
</tr>
<tr>
<td>Configuration Compliance</td>
<td>AWS Config</td>
</tr>
<tr>
<td>EC2 OS Patching</td>
<td>AWS Systems Manager</td>
</tr>
<tr>
<td>Infrastructure Monitoring</td>
<td>Amazon CloudWatch</td>
</tr>
<tr>
<td>Backup နဲ့ Recovery</td>
<td>AWS Backup နဲ့ Service-native Backup</td>
</tr>
<tr>
<td>Cost Monitoring</td>
<td>AWS Budgets နဲ့ Cost Management Tools</td>
</tr>
</tbody></table>
<p>ဒီနေရာမှာ မှတ်ထားသင့်တာက Terraform နဲ့ AWS Native Services တွေဟာ တစ်ခုနဲ့တစ်ခု အစားထိုးအသုံးပြုရမယ့်အရာတွေ မဟုတ်ပါဘူး။ တစ်ခုနဲ့တစ်ခု ဖြည့်ဆည်းပေးတဲ့ နည်းလမ်းတွေ ဖြစ်ပါတယ်။</p>
<p>ဥပမာ EC2 Instance တစ်ခုရဲ့ Operating System ကို Patch လုပ်ဖို့အတွက် Terraform ကို အသုံးပြုဖို့ မလိုအပ်ပါဘူး။ အဲဒီအစား AWS Systems Manager ကို အသုံးပြုပြီး Patch Scanning, Patch Installation နဲ့ Compliance Reporting တွေကို စီမံခန့်ခွဲနိုင်ပါတယ်။Terraform ကတော့ EC2 Instance ရဲ့ Infrastructure Configuration ကို စီမံခန့်ခွဲပေးနိုင်ပါတယ်။</p>
<hr />
<h2>3. Terraform Repository ကို စနစ်တကျ တည်ဆောက်ခြင်း</h2>
<p>Small AWS Infrastructure အတွက် အစကတည်းက ရှုပ်ထွေးတဲ့ Platform Engineering Architecture တစ်ခု တည်ဆောက်ဖို့ မလိုအပ်ပါဘူး။</p>
<p>ရိုးရှင်းပြီး ထိန်းသိမ်းရလွယ်ကူတဲ့ Git Repository Structure တစ်ခုနဲ့ စတင်နိုင်ပါတယ်။</p>
<p>ဥပမာ -</p>
<pre><code class="language-shell">aws-infrastructure/
├── .github/
│   └── workflows/
│       ├── terraform-plan.yml
│       ├── terraform-apply.yml
│       └── terraform-drift.yml
├── bootstrap/
│   └── terraform-state/
├── environments/
│   ├── uat/
│   │   ├── backend.tf
│   │   ├── providers.tf
│   │   ├── versions.tf
│   │   ├── main.tf
│   │   ├── variables.tf
│   │   └── terraform.tfvars
│   └── prod/
│       ├── backend.tf
│       ├── providers.tf
│       ├── versions.tf
│       ├── main.tf
│       ├── variables.tf
│       └── terraform.tfvars
└── modules/
    └── network/
</code></pre>
<p>ဒီ Structure မှာ Environment တစ်ခုချင်းစီအတွက် သီးခြား Terraform Root Configuration နဲ့ State ကို အသုံးပြုထားပါတယ်။</p>
<p>Reusable Modules တွေကိုလည်း တကယ်လိုအပ်လာတဲ့အချိန်မှာ စတင်အသုံးပြုနိုင်ပါတယ်။ ဥပမာ Environment အများအပြားမှာ တူညီတဲ့ Network Architecture ကို ပြန်လည်အသုံးပြုဖို့ လိုအပ်လာတဲ့အခါ Network Module တစ်ခု တည်ဆောက်နိုင်ပါတယ်။</p>
<p>အရေးကြီးတာက Structure ကို အလွန်ရှုပ်ထွေးအောင် မလုပ်ဖို့ပါပဲ။ Team Member တွေအနေနဲ့ Code ကို လွယ်လွယ်ကူကူ နားလည်နိုင်ပြီး ပြောင်းလဲမှုတွေကို ယုံကြည်စိတ်ချစွာ လုပ်ဆောင်နိုင်ဖို့ အရေးကြီးပါတယ်။</p>
<h3>Remote State ကို အသုံးပြုပါ</h3>
<p>Team တစ်ခုအနေနဲ့ Terraform ကို အသုံးပြုတဲ့အခါ State File ကို Developer တစ်ယောက်ချင်းစီရဲ့ Local Machine မှာပဲ သိမ်းဆည်းထားတာထက် Remote Backend ကို အသုံးပြုသင့်ပါတယ်။</p>
<p>AWS Environment အတွက် Amazon S3 Backend ကို အသုံးပြုနိုင်ပါတယ်။</p>
<p>Best Practices တွေအနေနဲ့ -</p>
<ul>
<li><p>S3 Bucket Versioning ကို Enable လုပ်ထားပါ။</p>
</li>
<li><p>Data Encryption နဲ့ Public Access Block ကို Configure လုပ်ထားပါ။</p>
</li>
<li><p>Terraform Version က Support လုပ်တဲ့အခါ S3 Native State Locking အတွက် <code>use_lockfile = true</code> ကို အသုံးပြုပါ။</p>
</li>
<li><p>Production နဲ့ Non-production Environment တွေအတွက် သီးခြား State Key တွေ သတ်မှတ်ပါ။</p>
</li>
<li><p>State File ကို ဖတ်ရှုနိုင်တဲ့ IAM Permissions တွေကို ကန့်သတ်ထားပါ။</p>
</li>
<li><p>KMS Key နဲ့ Encryption Key Access ကိုလည်း သင့်လျော်စွာ ကန့်သတ်ထားပါ။</p>
</li>
</ul>
<p>ဥပမာ Production Backend Configuration -</p>
<pre><code class="language-hcl">terraform {
  backend "s3" {
    bucket       = "company-terraform-state"
    key          = "application/prod/terraform.tfstate"
    region       = "ap-southeast-1"
    encrypt      = true
    use_lockfile = true
  }
}
</code></pre>
<p>ဒီဥပမာမှာ Terraform State File ကို S3 Bucket ထဲက <code>application/prod/terraform.tfstate</code> ဆိုတဲ့ Key နဲ့ သိမ်းဆည်းထားပါတယ်။</p>
<p>State Bucket ကို စတင်တည်ဆောက်ဖို့အတွက် အသုံးပြုမယ့် Bootstrap Configuration ကိုလည်း သီးခြားထားသင့်ပါတယ်။ ကိုယ်တိုင်သိမ်းဆည်းထားတဲ့ State ပေါ်ကို မှီခိုပြီး State Bucket ကို ဖန်တီးရတဲ့ Circular Dependency မဖြစ်စေဖို့ အရေးကြီးပါတယ်။</p>
<p>သတိပြုရန် - Terraform State File ထဲမှာ Sensitive Information တွေ ပါဝင်နိုင်ပါတယ်။ Variable တစ်ခုကို <code>sensitive</code> လို့ သတ်မှတ်ထားတာက Output မှာ ဖော်ပြခြင်းကို ကန့်သတ်ပေးနိုင်ပေမယ့် State ထဲမှာ မသိမ်းဆည်းတော့ဘူးလို့ မဆိုလိုပါဘူး။</p>
<hr />
<h2>4. GitHub Actions နဲ့ Infrastructure Changes တွေကို Automate လုပ်ခြင်း</h2>
<p>Terraform ကို Provisioning အတွက်သာ အသုံးပြုနေရာကနေ Continuous Management Model တစ်ခုအဖြစ် ပြောင်းလဲဖို့ အရေးကြီးဆုံးအဆင့်တစ်ခုက CI/CD Pipeline တည်ဆောက်ခြင်း ဖြစ်ပါတယ်။</p>
<p>GitHub Actions ကို အသုံးပြုပြီး Pull Request ကနေ Infrastructure Deployment အထိ Workflow တစ်ခု တည်ဆောက်နိုင်ပါတယ်။</p>
<h3>1. Pull Request ဖွင့်တဲ့အချိန်</h3>
<p>Pull Request တစ်ခု ဖွင့်လိုက်တာနဲ့ အောက်ပါ Checks တွေကို အလိုအလျောက် လုပ်ဆောင်သင့်ပါတယ်။</p>
<pre><code class="language-bash">terraform fmt -check
terraform init -input=false
terraform validate
terraform plan -input=false
</code></pre>
<p>ထို့အပြင် လိုအပ်သလို Linting နဲ့ Security Scanning တွေကိုပါ ထည့်သွင်းနိုင်ပါတယ်။</p>
<p>Terraform Plan ကို Code Reviewer တွေ ကြည့်ရှုနိုင်အောင် ထုတ်ပေးထားခြင်းအားဖြင့် Infrastructure ကို တကယ်မပြောင်းလဲခင် မည်သည့် Resource တွေ ထိခိုက်နိုင်မလဲဆိုတာ ကြိုတင်စစ်ဆေးနိုင်ပါတယ်။</p>
<h3>2. Code Review နဲ့ Approval</h3>
<p>Production Infrastructure အတွက် အထူးသဖြင့် အောက်ပါအချက်တွေကို ဂရုတစိုက် စစ်ဆေးသင့်ပါတယ်။</p>
<ul>
<li><p>Resource အသစ်တွေ ထည့်သွင်းမလား။</p>
</li>
<li><p>ရှိပြီးသား Resource တွေကို ပြောင်းလဲမလား။</p>
</li>
<li><p>Resource တစ်ခုခုကို Replace လုပ်ရမလား။</p>
</li>
<li><p>Resource တစ်ခုခု ဖျက်သိမ်းသွားမလား။</p>
</li>
<li><p>Security Group, IAM Policy, Network Access စတဲ့ လုံခြုံရေးပိုင်းဆိုင်ရာ Configuration တွေ ပြောင်းလဲမလား။</p>
</li>
</ul>
<p>Production Environment အတွက် Authorized Reviewer တစ်ဦးဦးရဲ့ Approval ကို မဖြစ်မနေ လိုအပ်အောင် သတ်မှတ်ထားနိုင်ပါတယ်။</p>
<h3>3. Merge ပြီးနောက် Apply လုပ်ခြင်း</h3>
<p>Approved ဖြစ်သွားတဲ့ Infrastructure Changes တွေကို CI/CD Pipeline ကနေတစ်ဆင့် Apply လုပ်သင့်ပါတယ်။</p>
<p>Production မှာ Arbitrary Pull Request တစ်ခုကို အလိုအလျောက် Apply လုပ်ခွင့်မပေးသင့်ပါဘူး။ Protected Branch, Required Review နဲ့ Protected Environment စတဲ့ Controls တွေကို အသုံးပြုသင့်ပါတယ်။</p>
<p>Plan File ကို သိမ်းဆည်းပြီး Apply မှာ ပြန်လည်အသုံးပြုမယ်ဆိုရင်လည်း အဲဒီ Plan ဟာ သက်ဆိုင်ရာ Code နဲ့ Terraform State အခြေအနေအတွက် မှန်ကန်နေသေးကြောင်း သေချာစေဖို့ လိုပါတယ်။ Saved Plan တွေထဲမှာ Sensitive Data ပါဝင်နိုင်တာကြောင့် Artifact Access နဲ့ Retention ကိုလည်း သင့်လျော်စွာ ကန့်သတ်ထားသင့်ပါတယ်။</p>
<h3>AWS Authentication အတွက် OIDC ကို အသုံးပြုပါ</h3>
<p>GitHub Actions က AWS ကို Access လုပ်ဖို့ Long-lived AWS Access Keys တွေကို Repository Secrets ထဲမှာ သိမ်းဆည်းထားတဲ့ ပုံစံထက် OpenID Connect (OIDC) နဲ့ IAM Role Assumption ကို အသုံးပြုတာ ပိုမိုသင့်လျော်ပါတယ်။</p>
<p>OIDC ကို အသုံးပြုတဲ့အခါ GitHub Actions က သတ်မှတ်ထားတဲ့ IAM Role ကို ယူပြီး AWS Resources တွေကို Access လုပ်နိုင်ပါတယ်။</p>
<p>ဒါပေမယ့် OIDC ကို Enable လုပ်ထားရုံနဲ့ လုံခြုံမှုအပြည့်အဝ ရရှိသွားတာ မဟုတ်ပါဘူး။ IAM Trust Policy ကို သတ်မှတ်ထားတဲ့ Repository, Branch သို့မဟုတ် Protected Environment နဲ့ ကိုက်ညီအောင် ကန့်သတ်ထားဖို့ လိုပါတယ်။ ထို့အပြင် IAM Permissions တွေကိုလည်း Least Privilege Principle အတိုင်း သတ်မှတ်ထားသင့်ပါတယ်။</p>
<hr />
<h2>5. The most important missing capability: Infrastructure Drift Detection</h2>
<p>Terraform ကို Provisioning အတွက်သာ အသုံးပြုတဲ့ Team တွေမှာ မကြာခဏ တွေ့ရတတ်တဲ့ ပြဿနာတစ်ခုက Infrastructure Drift ဖြစ်ပါတယ်။</p>
<p><strong>Infrastructure Drift ဆိုတာ Terraform Code ထဲမှာ သတ်မှတ်ထားတဲ့ Desired Configuration နဲ့ AWS မှာ အမှန်တကယ် ရှိနေတဲ့ Configuration တို့ မတူညီတော့တဲ့ အခြေအနေကို ဆိုလိုပါတယ်။</strong></p>
<p>ဥပမာ -</p>
<p>Team Member တစ်ဦးက AWS Console ကနေ Security Group Rule တစ်ခုကို ပြောင်းလဲလိုက်တယ်လို့ ယူဆကြည့်ပါ။</p>
<p>AWS မှာတော့ Configuration အသစ်ကို အသုံးပြုနေပါပြီ။ ဒါပေမယ့် Terraform Code ထဲမှာတော့ အရင် Configuration အတိုင်းပဲ ရှိနေပါသေးတယ်။</p>
<p>Terraform နဲ့ AWS Infrastructure ကြားမှာ Drift ဖြစ်ပေါ်သွားတာပါ။</p>
<p>ဒီလိုအခြေအနေကို ပုံမှန်စစ်ဆေးမထားဘူးဆိုရင် နောက်တစ်ကြိမ် Terraform Apply လုပ်တဲ့အချိန်အထိ သတိမထားမိဘဲ ရှိနေနိုင်ပါတယ်။</p>
<h3>Daily Terraform Plan ကို အသုံးပြုပါ</h3>
<p>အစပိုင်းမှာ GitHub Actions ကို အသုံးပြုပြီး Environment တစ်ခုချင်းစီအတွက် Daily Terraform Plan Workflow တစ်ခု တည်ဆောက်ထားနိုင်ပါတယ်။</p>
<p>ဥပမာ -</p>
<pre><code class="language-shell">terraform init -input=false

terraform plan \
  -input=false \
  -no-color \
  -detailed-exitcode
</code></pre>
<p><code>-detailed-exitcode</code> ကို အသုံးပြုတဲ့အခါ Terraform က အောက်ပါ Exit Codes တွေကို ပြန်ပေးပါတယ်။</p>
<table>
<thead>
<tr>
<th>Exit Code</th>
<th>Meaning</th>
<th>Action</th>
</tr>
</thead>
<tbody><tr>
<td><code>0</code></td>
<td>No changes proposed</td>
<td>Record a successful check</td>
</tr>
<tr>
<td><code>1</code></td>
<td>Terraform encountered an error</td>
<td>Alert the team and investigate</td>
</tr>
<tr>
<td><code>2</code></td>
<td>Changes are proposed</td>
<td>Review the plan and investigate the differences</td>
</tr>
</tbody></table>
<p>Exit Code <code>2</code> ဖြစ်တိုင်း Manual Change တစ်ခုကြောင့် Drift ဖြစ်နေတယ်လို့ ချက်ချင်း မဆုံးဖြတ်သင့်ပါဘူး။</p>
<p>တရားဝင်အတည်ပြုထားပြီး မ Apply ရသေးတဲ့ Code Change ရှိနေတာကြောင့်လည်း Plan ထဲမှာ Changes ပေါ်လာနိုင်ပါတယ်။</p>
<p>ဒါကြောင့် Scheduled Plan ထုတ်တဲ့အခါ Latest Approved Code ကို အသုံးပြုဖို့၊ Deployment Pending ဖြစ်နေတဲ့အခြေအနေတွေကို ထည့်သွင်းစဉ်းစားဖို့နဲ့ Plan Result တွေကို သင့်လျော်စွာ စီမံခန့်ခွဲဖို့ လိုပါတယ်။</p>
<h3>Drift တွေ့ရှိတဲ့အခါ ဘယ်လိုဖြေရှင်းမလဲ။</h3>
<p>ဥပမာ Security Group တစ်ခုကို Console ကနေ ပြောင်းလဲထားတာကို Terraform Plan က တွေ့ရှိတယ်ဆိုပါစို့။</p>
<ol>
<li><p>Plan ထဲမှာ ဘယ် Configuration ကွာခြားနေသလဲဆိုတာ စစ်ဆေးပါ။</p>
</li>
<li><p>Manual Change ဟာ ခွင့်ပြုထားတဲ့ Change လား၊ မတော်တဆ ပြောင်းလဲမှုလားဆိုတာ ဆုံးဖြတ်ပါ။</p>
</li>
<li><p>Change အသစ်ကို လက်ခံဖို့ လိုအပ်ရင် Terraform Code ကို Pull Request ကနေ ပြင်ဆင်ပြီး Review လုပ်ပါ။</p>
</li>
<li><p>Change ဟာ မလိုအပ်တဲ့ Change ဖြစ်နေရင် Desired Configuration ကို ပြန်ရောက်အောင် Review လုပ်ထားတဲ့ Terraform Plan နဲ့ Apply လုပ်ပါ။</p>
</li>
<li><p>လိုအပ်ရင် AWS Console ကနေ တိုက်ရိုက်ပြောင်းလဲနိုင်တဲ့ Permissions တွေကို ပြန်လည်စစ်ဆေးပါ။</p>
</li>
</ol>
<p>ဒီနေရာမှာ သတိထားရမယ့်အချက်က Drift တွေ့တိုင်း ချက်ချင်း <code>terraform apply</code> လုပ်ခြင်းဟာ အကောင်းဆုံး ဖြေရှင်းနည်း မဟုတ်ပါဘူး။</p>
<p><code>terraform apply -refresh-only</code> ကလည်း AWS Infrastructure ကို Terraform Code နဲ့ ကိုက်ညီအောင် ပြောင်းလဲပေးတာ မဟုတ်ပါဘူး။ Real Infrastructure ရဲ့ လက်ရှိအခြေအနေကို Terraform State ထဲမှာ Update လုပ်ဖို့အတွက် အသုံးပြုတာ ဖြစ်ပါတယ်။</p>
<p>ဒါကြောင့် Drift ရဲ့ အကြောင်းရင်းကို နားလည်ပြီးမှ သင့်လျော်တဲ့ ဖြေရှင်းနည်းကို ရွေးချယ်သင့်ပါတယ်။</p>
<hr />
<h2>6. AWS Native Services တွေနဲ့ Operational Management ပြုလုပ်ခြင်း</h2>
<p>Terraform က Infrastructure Configuration ကို စီမံခန့်ခွဲပေးနိုင်ပေမယ့် နေ့စဉ်လုပ်ငန်းဆောင်တာတွေကို စောင့်ကြည့်ဖို့အတွက် AWS Native Services တွေကိုလည်း ထည့်သွင်းအသုံးပြုသင့်ပါတယ်။</p>
<h3>AWS CloudTrail - ဘယ်သူက ဘာကို ပြောင်းလဲခဲ့သလဲ။</h3>
<p>AWS CloudTrail ကို အသုံးပြုခြင်းအားဖြင့် AWS Account အတွင်း API Activities တွေကို စစ်ဆေးနိုင်ပါတယ်။</p>
<p>ဥပမာ -</p>
<ul>
<li><p>ဘယ်သူက Security Group ကို ပြောင်းလဲခဲ့သလဲ။</p>
</li>
<li><p>ဘယ်သူက IAM Policy ကို ပြင်ဆင်ခဲ့သလဲ။</p>
</li>
<li><p>AWS Console, CLI သို့မဟုတ် SDK ကနေ ဘယ် API Request တွေ လုပ်ဆောင်ခဲ့သလဲ။</p>
</li>
</ul>
<p>ဒီအချက်အလက်တွေဟာ Security Investigation နဲ့ Change Audit တွေအတွက် အသုံးဝင်ပါတယ်။</p>
<p>ရေရှည် Audit လိုအပ်ချက်တွေ ရှိနေတယ်ဆိုရင် သင့်လျော်တဲ့ CloudTrail Trail နဲ့ Log Retention Policy တွေကို Configure လုပ်ထားသင့်ပါတယ်။</p>
<h3>AWS Config - Configuration Compliance</h3>
<p>AWS Config ကို အသုံးပြုပြီး သတ်မှတ်ထားတဲ့ AWS Resources တွေရဲ့ Configuration Changes နဲ့ Compliance ကို စစ်ဆေးနိုင်ပါတယ်။</p>
<p>ဥပမာ -</p>
<ul>
<li><p>သတ်မှတ်ထားတဲ့ S3 Bucket တွေ Public Access ပေးထားသလား။</p>
</li>
<li><p>Security Group တွေက လက်ခံထားတဲ့ Security Baseline နဲ့ ကိုက်ညီသလား။</p>
</li>
<li><p>Resource တစ်ခုခုရဲ့ Configuration ဟာ Organization ရဲ့ Policy နဲ့ ကိုက်ညီသလား။</p>
</li>
</ul>
<p>AWS Config ဟာ Terraform Drift Detection ကို အစားထိုးတာ မဟုတ်ပါဘူး။ Terraform က Desired Configuration နဲ့ Real Infrastructure ကြားက ကွာခြားချက်တွေကို စစ်ဆေးပေးနိုင်ပြီး AWS Config ကတော့ သတ်မှတ်ထားတဲ့ Configuration နဲ့ Compliance Rules တွေကို စစ်ဆေးပေးနိုင်ပါတယ်။</p>
<p>Config Recording နဲ့ Rule Evaluations တွေကြောင့် ကုန်ကျစရိတ် ဖြစ်ပေါ်နိုင်တာကြောင့် လိုအပ်တဲ့ Resource တွေနဲ့ Rules တွေကို ရွေးချယ်အသုံးပြုသင့်ပါတယ်။</p>
<h3>AWS Systems Manager - Server Maintenance</h3>
<p>EC2 Instances တွေကို အသုံးပြုနေတယ်ဆိုရင် AWS Systems Manager ကို အသုံးပြုပြီး Operating System Maintenance ကို စီမံခန့်ခွဲနိုင်ပါတယ်။</p>
<p>ဥပမာ -</p>
<ul>
<li><p>Patch Scanning</p>
</li>
<li><p>Controlled Patch Installation</p>
</li>
<li><p>Maintenance Windows</p>
</li>
<li><p>Patch Compliance Reporting</p>
</li>
</ul>
<p>အစပိုင်းမှာ Patch Scanning နဲ့ Compliance Reporting ကိုသာ စတင်အသုံးပြုပြီး လုပ်ငန်းလည်ပတ်မှုအပေါ် သက်ရောက်မှုကို နားလည်ပြီးမှ Automatic Patching ကို အဆင့်ဆင့် ထည့်သွင်းနိုင်ပါတယ်။</p>
<h3>Amazon CloudWatch - Infrastructure Monitoring</h3>
<p>Infrastructure တည်ဆောက်ထားရုံနဲ့ မလုံလောက်ပါဘူး။ Infrastructure ရဲ့ Health နဲ့ Performance ကိုလည်း စောင့်ကြည့်ဖို့ လိုပါတယ်။</p>
<p>Amazon CloudWatch ကို အသုံးပြုပြီး အောက်ပါ Metrics တွေအတွက် Alarms တွေ သတ်မှတ်နိုင်ပါတယ်။</p>
<ul>
<li><p>EC2 Status Checks</p>
</li>
<li><p>EC2 CPU Utilization</p>
</li>
<li><p>Application Load Balancer Errors နဲ့ Latency</p>
</li>
<li><p>RDS Resource Utilization နဲ့ Database Performance</p>
</li>
</ul>
<p>ထို့အပြင် လိုအပ်တဲ့ Logs တွေကို စုဆောင်းထားပြီး SNS သို့မဟုတ် Team ရဲ့ လက်ရှိ Notification Channel ကနေ Alert တွေ ပေးပို့နိုင်ပါတယ်။</p>
<h3>AWS Backup - Backup နဲ့ Recovery</h3>
<p>Backup ရှိနေတယ်ဆိုရုံနဲ့ Recovery လုပ်နိုင်မယ်လို့ မဆိုလိုပါဘူး။</p>
<p>အရေးကြီးတဲ့ Data နဲ့ Resources တွေအတွက် Backup Policy, Retention Period နဲ့ Recovery Procedure တွေကို သတ်မှတ်ထားသင့်ပါတယ်။</p>
<p>Terraform ကို အသုံးပြုပြီး သက်ဆိုင်ရာ Backup Configuration တွေကို စီမံခန့်ခွဲနိုင်သလို AWS Backup နဲ့ သက်ဆိုင်ရာ AWS Services တွေရဲ့ Native Backup Features တွေကိုလည်း အသုံးပြုနိုင်ပါတယ်။</p>
<p>Small Infrastructure တစ်ခုအတွက် အစကတည်းက AWS Governance Services အားလုံးကို Enable လုပ်ဖို့ မလိုအပ်ပါဘူး။</p>
<p>CloudTrail, အရေးကြီးတဲ့ CloudWatch Alarms နဲ့ Scheduled Terraform Plans တွေကို ဦးစွာ စတင်အသုံးပြုနိုင်ပါတယ်။ နောက်ပိုင်း Security Requirements နဲ့ Budget အပေါ်မူတည်ပြီး AWS Config အပါအဝင် အခြား Controls တွေကို တိုးချဲ့နိုင်ပါတယ်။</p>
<hr />
<h2>7. Infrastructure Management အတွက် ပုံမှန်လုပ်ဆောင်သင့်တဲ့ Schedule</h2>
<p>Infrastructure ကို Continuous Management လုပ်နိုင်ဖို့ အတွက် အလွန်ရှုပ်ထွေးတဲ့ Operational Process မလိုအပ်ပါဘူး။ Team ရဲ့ Capacity နဲ့ Infrastructure ရဲ့ Criticality အပေါ်မူတည်ပြီး ရိုးရှင်းတဲ့ Schedule တစ်ခု သတ်မှတ်ထားနိုင်ပါတယ်။</p>
<table style="min-width:324px"><colgroup><col style="min-width:25px"></col><col style="width:274px"></col><col style="min-width:25px"></col></colgroup><tbody><tr><td><p><strong>Frequency</strong></p></td><th><p>Activity</p></th><th><p>Expected outcome</p></th></tr><tr><td><p>Every pull request</p></td><td><p>Validate, Security Scan, Terraform Plan</p></td><td><p>Unsafe or unexpected changes are caught before merging</p></td></tr><tr><td><p>Every approved infrastructure change</p></td><td><p>Apply through CI/CD and verify</p></td><td><p>Controlled, auditable deployments</p></td></tr><tr><td><p>Daily</p></td><td><p>Terraform drift check and review of critical alerts</p></td><td><p>Unexpected configuration changes are identified</p></td></tr><tr><td><p>Weekly</p></td><td><p>Review failed deployments, backup status and security findings</p></td><td><p>Operational problems get assigned and resolved</p></td></tr><tr><td><p>Monthly</p></td><td><p>Review access, patch compliance, costs, resource tags and recovery readiness</p></td><td><p>Infrastructure remains maintainable and cost-aware</p></td></tr><tr><td><p>Quarterly</p></td><td><p>Test a recovery procedure and review the infrastructure design</p></td><td><p>Recoverability and operational documentation remain credible</p></td></tr></tbody></table>

<p>ဒီ Schedule ဟာ စတင်အသုံးပြုဖို့ အကြံပြုထားတဲ့ Model တစ်ခုသာ ဖြစ်ပါတယ်။ Production Criticality, Security Requirements နဲ့ Operational Risks တွေအပေါ်မူတည်ပြီး Frequency ကို ပြင်ဆင်နိုင်ပါတယ်။</p>
<hr />
<h2>8. A practical 30-day implementation plan</h2>
<p>Terraform Management Model ကို တစ်ကြိမ်တည်း ပြောင်းလဲဖို့ မလိုအပ်ပါဘူး။ အောက်ပါအတိုင်း အဆင့်ဆင့် အကောင်အထည်ဖော်နိုင်ပါတယ်။</p>
<h3>Week 1 - Foundation</h3>
<p>Terraform Foundation ကို စနစ်တကျ တည်ဆောက်ပါ။</p>
<ul>
<li><p>S3 Remote State နဲ့ State Locking Configure လုပ်ပါ။</p>
</li>
<li><p>State File Versioning ကို Enable လုပ်ပါ။</p>
</li>
<li><p>Environment တွေကို သီးခြားစီ စီမံခန့်ခွဲပါ။</p>
</li>
<li><p>Terraform Provider Version တွေကို ထိန်းချုပ်ပါ။</p>
</li>
<li><p>Resource Tagging နဲ့ AWS Access Permissions တွေကို ပြန်လည်စစ်ဆေးပါ။</p>
</li>
</ul>
<h3>Week 2 - Automation</h3>
<p>GitHub Actions နဲ့ Infrastructure CI/CD Workflow ကို တည်ဆောက်ပါ။</p>
<ul>
<li><p>Pull Request မှာ Terraform Validation နဲ့ Plan လုပ်ပါ။</p>
</li>
<li><p>Production Approval Process ကို သတ်မှတ်ပါ။</p>
</li>
<li><p>Approved Change တွေကို Pipeline ကနေ Apply လုပ်ပါ။</p>
</li>
<li><p>UAT Environment မှာ စမ်းသပ်ပြီးမှ Production ကို တိုးချဲ့ပါ။</p>
</li>
</ul>
<h3>Week 3 - Operations</h3>
<p>Drift Detection နဲ့ Monitoring ကို ထည့်သွင်းပါ။</p>
<ul>
<li><p>Scheduled Terraform Plan Workflow တည်ဆောက်ပါ။</p>
</li>
<li><p>Drift Findings အတွက် Notification ထည့်သွင်းပါ။</p>
</li>
<li><p>CloudTrail Activity တွေကို စစ်ဆေးနိုင်အောင် ပြင်ဆင်ပါ။</p>
</li>
<li><p>အရေးကြီးတဲ့ CloudWatch Alarms တွေကို Configure လုပ်ပါ။</p>
</li>
<li><p>လက်ရှိ AWS Config Setup ကို ပြန်လည်သုံးသပ်ပါ။</p>
</li>
</ul>
<h3>Week 4 - Resilience</h3>
<p>Infrastructure Maintenance နဲ့ Recovery Process တွေကို စနစ်တကျ တည်ဆောက်ပါ။</p>
<ul>
<li><p>Patching နဲ့ Backup Procedure တွေ သတ်မှတ်ပါ။</p>
</li>
<li><p>Alert Notification တွေ အမှန်တကယ် အလုပ်လုပ်နေကြောင်း စမ်းသပ်ပါ။</p>
</li>
<li><p>Recovery Test တစ်ခု လုပ်ဆောင်ပါ။</p>
</li>
<li><p>Emergency Change Procedure ကို မှတ်တမ်းတင်ပါ။</p>
</li>
</ul>
<p>ရက် ၃၀ ပြည့်တဲ့အခါ Infrastructure ကို တည်ဆောက်နိုင်ရုံသာမက Changes တွေကို ထိန်းချုပ်နိုင်ခြင်း၊ Drift ကို ရှာဖွေနိုင်ခြင်းနဲ့ Recovery လုပ်ငန်းစဉ်တွေကို စမ်းသပ်ထားနိုင်ခြင်းတို့ကို ရည်မှန်းသင့်ပါတယ်။</p>
<hr />
<h2>9. How will you know the team has improved?</h2>
<p>Terraform ကို အသုံးပြုတဲ့အခါ Infrastructure Provisioning အချိန် လျော့ကျသွားတာတစ်ခုတည်းကို Success Metric အဖြစ် မသတ်မှတ်သင့်ပါဘူး။</p>
<p>Infrastructure ကို ရေရှည်စီမံခန့်ခွဲနိုင်မှု ပိုမိုကောင်းမွန်လာသလားဆိုတာကိုလည်း တိုင်းတာသင့်ပါတယ်။</p>
<p>ဥပမာ အောက်ပါ Metrics တွေကို အသုံးပြုနိုင်ပါတယ်။</p>
<ul>
<li><p>Approved CI/CD Pipeline ကနေ Apply လုပ်ထားတဲ့ Infrastructure Changes ရာခိုင်နှုန်း</p>
</li>
<li><p>မဖြေရှင်းရသေးတဲ့ Drift Findings အရေအတွက်</p>
</li>
<li><p>Terraform Deployment Failure အရေအတွက်</p>
</li>
<li><p>Drift တစ်ခုကို ရှာဖွေပြီး ဖြေရှင်းဖို့ ကြာချိန်</p>
</li>
<li><p>Backup နဲ့ Recovery Test ရလဒ်များ</p>
</li>
<li><p>AWS Security Findings တွေကို ဖြေရှင်းနိုင်တဲ့ အခြေအနေ</p>
</li>
<li><p>လစဉ် AWS Cost နဲ့ Budget ကြားက ကွာခြားချက်</p>
</li>
</ul>
<p>ဒီ Metrics တွေကို အသုံးပြုခြင်းအားဖြင့် Terraform က Infrastructure ကို တည်ဆောက်ဖို့အတွက်သာ ကူညီပေးနေတာလား၊ ဒါမှမဟုတ် Infrastructure ကို ပိုမိုလုံခြုံစိတ်ချစွာနဲ့ ထိရောက်စွာ စီမံခန့်ခွဲနိုင်ဖို့ပါ ကူညီပေးနေတာလားဆိုတာကို သိရှိနိုင်ပါတယ်။</p>
<hr />
<h2>Conclusion</h2>
<p>Small AWS Infrastructure တစ်ခုအတွက် Terraform Management Model ကို စတင်တည်ဆောက်မယ်ဆိုရင် ရှုပ်ထွေးတဲ့ Platform တစ်ခုကို အစကတည်းက တည်ဆောက်ဖို့ မလိုအပ်ပါဘူး။</p>
<p>စတင်အသုံးပြုဖို့ အကြံပြုချင်တဲ့ Stack ကတော့ -</p>
<ul>
<li><p><strong>Terraform</strong> - Infrastructure Configuration Management</p>
</li>
<li><p><strong>GitHub</strong> - Version Control နဲ့ Pull Request Review</p>
</li>
<li><p><strong>GitHub Actions</strong> - Infrastructure CI/CD Automation</p>
</li>
<li><p><strong>Amazon S3</strong> - Remote Terraform State</p>
</li>
<li><p><strong>AWS CloudTrail</strong> - API Activity Audit</p>
</li>
<li><p><strong>Amazon CloudWatch</strong> - Monitoring နဲ့ Alerting</p>
</li>
<li><p><strong>AWS Systems Manager</strong> - EC2 Maintenance</p>
</li>
<li><p><strong>AWS Config</strong> - လိုအပ်သည့်အခါ Configuration Compliance</p>
</li>
</ul>
<p>HCP Terraform ကိုလည်း နောက်ပိုင်းမှာ Centralized Runs, Policy Controls နဲ့ Built-in Health Assessments စတဲ့ Features တွေ လိုအပ်လာတဲ့အခါ စဉ်းစားနိုင်ပါတယ်။ ဒါပေမယ့် အစပိုင်းမှာ Core Operating Model ကို တည်ဆောက်ဖို့ HCP Terraform ကို မဖြစ်မနေ အသုံးပြုဖို့ မလိုအပ်ပါဘူး။</p>
<p>အရေးကြီးဆုံးက Infrastructure ကို ဘယ်သူမဆို AWS Console ကနေ လိုသလို ပြောင်းလဲနိုင်တဲ့ ပုံစံကနေ အတည်ပြုထားတဲ့ Code နဲ့ Controlled Workflow ကနေတစ်ဆင့် စီမံခန့်ခွဲတဲ့ ပုံစံကို ပြောင်းလဲဖို့ ဖြစ်ပါတယ်။</p>
<p>ဒီ Workflow တစ်ခု အောင်မြင်စွာ အလုပ်လုပ်လာတဲ့အခါ ကျန်ရှိတဲ့ Environment တွေကိုလည်း အလားတူ ပုံစံနဲ့ တိုးချဲ့အသုံးပြုနိုင်ပါတယ်။</p>
<p><strong>Terraform ရဲ့ တကယ့်တန်ဖိုးက Infrastructure ကို တည်ဆောက်ပေးနိုင်တာတင် မဟုတ်ပါဘူး။ Infrastructure ကို ဘယ်လိုတည်ဆောက်ထားသလဲ၊ ဘယ်လိုပြောင်းလဲခဲ့သလဲ၊ ဘယ်လိုစစ်ဆေးသလဲနဲ့ ပြဿနာဖြစ်လာတဲ့အခါ ဘယ်လိုပြန်လည်ထိန်းသိမ်းနိုင်သလဲဆိုတာတွေကို စနစ်တကျ စီမံခန့်ခွဲနိုင်စေတာပဲ ဖြစ်ပါတယ်။</strong></p>
<hr />
<h2>References</h2>
<ol>
<li><p><a href="https://developer.hashicorp.com/terraform/language/backend/s3">HashiCorp - Amazon S3 Backend</a></p>
</li>
<li><p><a href="https://developer.hashicorp.com/terraform/cli/commands/plan">HashiCorp - Terraform Plan Command</a></p>
</li>
<li><p><a href="https://developer.hashicorp.com/terraform/tutorials/automation/github-actions">HashiCorp - Automate Terraform with GitHub Actions</a></p>
</li>
<li><p><a href="https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services">GitHub Docs - Configuring OpenID Connect in AWS</a></p>
</li>
<li><p><a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html">AWS Docs - AWS CloudTrail</a></p>
</li>
<li><p><a href="https://docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html">AWS Docs - AWS Config</a></p>
</li>
<li><p><a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-patch.html">AWS Docs - Systems Manager Patch Manager</a></p>
</li>
<li><p><a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html">AWS Docs - Amazon CloudWatch</a></p>
</li>
</ol>
]]></content:encoded></item><item><title><![CDATA[From Blame Culture to Ownership Culture]]></title><description><![CDATA[Production issue တစ်ခုဖြစ်လာတဲ့အခါ Engineering Team တွေကြားမှာ ကြားရလေ့ရှိတဲ့ စကားတွေရှိပါတယ်။ “ဒါက Development issue ပါ။” “Code ကတော့ အဆင်ပြေပါတယ်။…]]></description><link>https://blog.vitaltechmyanmar.com/from-blame-culture-to-ownership-culture</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/from-blame-culture-to-ownership-culture</guid><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Sun, 27 Sep 2026 04:47:32 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/646edfeb0ed089624d33fe3c/aeaa3951-b191-4729-b379-fdba010d5cb1.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Production issue တစ်ခုဖြစ်လာတဲ့အခါ Engineering Team တွေကြားမှာ ကြားရလေ့ရှိတဲ့ စကားတွေရှိပါတယ်။</p>
<p>“ဒါက Development issue ပါ။”</p>
<p>“Code ကတော့ အဆင်ပြေပါတယ်။ Infrastructure issue ပါ။”</p>
<p>“QA မှာတုန်းက pass ဖြစ်ပါတယ်။”</p>
<p>“Requirement က ဒီလိုပေးထားတာပါ။”</p>
<p>“Security rule ကြောင့်ဖြစ်တာပါ။</p>
<p>ဒီအကြောင်းပြချက်တွေက technical perspective ကနေကြည့်ရင် မှန်ကောင်းမှန်နိုင်ပါတယ်။</p>
<p>ဒါပေမယ့် Incident ဖြစ်တိုင်း <strong>“ဘယ် Team ရဲ့အမှားလဲ?”</strong> ဆိုတာကိုပဲ ရှာနေကြပြီဆိုရင် Technical Problem တစ်ခုတည်း မဟုတ်တော့ပါဘူး။ <strong>Engineering Culture ရဲ့ Problem တစ်ခု ဖြစ်လာပါတယ်။</strong></p>
<h3>Production is a shared responsibility</h3>
<p>Production Application တစ်ခုကို Development Team တစ်ခုတည်းက တည်ဆောက်ထားတာ မဟုတ်ပါဘူး။</p>
<p>Development က application ကို တည်ဆောက်တယ်။ QA က quality ကို စစ်ဆေးတယ်။ DevOps/SRE က deployment, infrastructure နဲ့ reliability ကို ထိန်းသိမ်းတယ်။ Security က system ကို ကာကွယ်တယ်။ Product/Management က requirements နဲ့ priorities ကို သတ်မှတ်တယ်။</p>
<p>ဒါကြောင့် Service တစ်ခုရဲ့ success ဟာ Team အားလုံးရဲ့ success ဖြစ်သလို failure ဖြစ်လာတဲ့အခါမှာလည်း Team တစ်ခုတည်းကို အပြစ်ပုံချလို့ မရပါဘူး။</p>
<p>ဒါကြောင့် <strong>Shared Responsibility</strong> ဆိုတာ Team တိုင်းမှာတာဝန်ရှိတယ်လို့ ဆိုလိုရင်းဖြစ်ပါတယ်။</p>
<p>Team တိုင်းမှာ ကိုယ့်အပိုင်းအတွက် <strong>clear ownership and accountability</strong> ရှိရပါမယ်။</p>
<p>Developer တစ်ယောက်အတွက် code merge လုပ်ပြီးတာနဲ့ ownership ဆိုတာမပြီးသွားပါဘူး။ Production မှာ issue ဖြစ်လာရင် troubleshooting နဲ့ resolution မှာ ပါဝင်ဖို့လိုပါတယ်။</p>
<p>QA အတွက် “Testing မှာ pass ဖြစ်တယ်” ဆိုတာနဲ့ မပြီးပါဘူး။ ဘာကြောင့် ဒီ scenario ကို မဖမ်းမိခဲ့တာလဲ၊ test coverage ဘယ်နေရာမှာ တိုးတက်ဖို့လိုသလဲ ပြန်ကြည့်ဖို့လိုပါတယ်။</p>
<p>DevOps/SRE အတွက်လည်း “Application issue ပါ” ဆိုပြီး ticket လွှဲပေးလိုက်တာနဲ့ မပြီးပါဘူး။ Infrastructure, logs, metrics, deployment history နဲ့ resource utilization တွေကနေ evidence ရှာပြီး resolution ရတဲ့အထိ ပူးပေါင်းဖို့လိုပါတယ်။</p>
<p>Security အတွက်လည်း “Policy အရ block ထားတာပါ” ဆိုတာနဲ့ မပြီးပါဘူး။ Security requirement ကို မလျှော့ဘဲ Business နဲ့ Application ဆက်လက်အလုပ်လုပ်နိုင်မယ့် solution ကို အတူရှာဖို့လိုပါတယ်။</p>
<h3>Blameless doesn't mean accountability-free</h3>
<p>ဒီနှစ်ခုကို မရောထွေးဖို့ အရေးကြီးပါတယ်။</p>
<p><strong>Blameless Culture ≠ No Accountability</strong></p>
<p>Blameless ဆိုတာ အမှားလုပ်သူကို ရှာပြီး အပြစ်ပေးဖို့မဟုတ်တာပါ။</p>
<p>Accountability ဆိုတာတော့ ကိုယ့်အပိုင်းမှာ ဖြစ်ခဲ့တာကို လက်ခံပြီး ပြင်ဆင်ဖို့၊ သင်ယူဖို့နဲ့ ထပ်မဖြစ်အောင် တိုးတက်အောင်လုပ်ဖို့ ဖြစ်ပါတယ်။</p>
<p>Incident တစ်ခုမှာ—</p>
<p><strong>“Who caused this?” ဆိုတာ</strong> ထက် <strong>“What failed, how do we recover, and how do we prevent it from happening again?”</strong> ဆိုတာကို အရင်မေးသင့်ပါတယ်။</p>
<h3>Leadership plays an important role</h3>
<p>Blame Culture ဖြစ်လာခြင်းဟာ Engineers တွေရဲ့ ပြဿနာတစ်ခုတည်း မဟုတ်ပါဘူး။</p>
<p>လူတစ်ယောက် အမှားလုပ်တိုင်း အပြစ်ပေးခံရမယ့် Environment ဖြစ်နေမယ်ဆိုရင် Engineers တွေက naturally ကိုယ့်ကိုယ်ကို ကာကွယ်ဖို့ ကြိုးစားလာကြပါတယ်။</p>
<p>အဲဒီအခါ အမှားကို ဝန်ခံတာထက် အခြား Team ကို လွှဲချတာ၊ problem ကို ဖုံးကွယ်တာ၊ risky decisions မယူရဲတာတွေ ဖြစ်လာနိုင်ပါတယ်။</p>
<p>ဒါကြောင့် Leadership ရဲ့ တာဝန်က <strong>Accountability ကို တောင်းဆိုရင်း Psychological Safety ကိုပါ တည်ဆောက်ပေးဖို့</strong> ဖြစ်ပါတယ်။</p>
<p>“Who made the mistake?” လို့ မေးတာထက်—</p>
<p><strong>What happened?</strong></p>
<p>ဖြစ်စဉ်တစ်ခုလုံးကို အချက်အလက်တွေအပေါ် အခြေခံပြီး နားလည်အောင် အရင်လေ့လာသင့်ပါတယ်။</p>
<p><strong>What allowed it to happen?</strong></p>
<p>လူတစ်ယောက်ရဲ့ အမှားကိုပဲ ရှာဖွေမယ့်အစား System, Process နဲ့ Control တွေထဲမှာ ဘာတွေလိုအပ်နေခဲ့သလဲဆိုတာ ရှာဖွေသင့်ပါတယ်။</p>
<p><strong>Why didn't we detect it earlier?</strong></p>
<p>Monitoring, Alerting, Testing နဲ့ Observability တွေမှာ ဘာတွေတိုးတက်ဖို့လိုသလဲ ပြန်လည်သုံးသပ်သင့်ပါတယ်။</p>
<p><strong>How can we recover faster next time?</strong></p>
<p>Recovery Process, Rollback Plan, Automation နဲ့ Incident Response Process တွေကို ပိုကောင်းအောင် ပြင်ဆင်သင့်ပါတယ်။</p>
<p><strong>What should we change in our system or process?</strong></p>
<p>Incident ကနေ ရရှိခဲ့တဲ့ သင်ခန်းစာတွေကို လက်တွေ့ကျတဲ့ Improvement Actions တွေအဖြစ် ပြောင်းလဲသင့်ပါတယ်။</p>
<p><strong>Who owns the improvement action?</strong></p>
<p>Action Item တစ်ခုချင်းစီအတွက် ရှင်းလင်းတဲ့ Owner နဲ့ သတ်မှတ်ထားတဲ့ အချိန်ကာလ ရှိသင့်ပါတယ်။</p>
<p>ဒီလိုမေးခွန်းတွေ မေးခြင်းရဲ့ ရည်ရွယ်ချက်က <strong>အပြစ်ရှိသူကို ရှာဖွေဖို့မဟုတ်ဘဲ ပြဿနာဖြစ်စေခဲ့တဲ့ အကြောင်းရင်းကို နားလည်ပြီး System နဲ့ Process ကို ပိုမိုကောင်းမွန်အောင် ပြုပြင်ဖို့</strong> ဖြစ်ပါတယ်။</p>
<h3>Strong teams don't avoid failure. They learn from it.</h3>
<p>High-performing Engineering Team ဆိုတာ Incident မဖြစ်တဲ့ Team မဟုတ်ပါဘူး။</p>
<p>Incident ဖြစ်လာတဲ့အခါ တစ်ယောက်နဲ့တစ်ယောက် အပြစ်မလွှဲချဘဲ ကိုယ့်အပိုင်းကို ကိုယ်တာဝန်ယူပြီး အတူတူဖြေရှင်းနိုင်တဲ့ Team ဖြစ်ရပါမယ်။</p>
<p>ပြီးတော့ Incident ပြီးသွားတဲ့အခါ—</p>
<p><strong>“Fixed.”</strong> ဆိုတဲ့နေရာမှာမရပ်ဘဲ — <strong>“What did we learn, and what are we changing?”</strong> ဆိုတာကို ဆက်မေးနိုင်တဲ့ Team ဖြစ်ရပါမယ်။</p>
<p>နောက်ဆုံးမှာ ကျွန်တော်တို့ တည်ဆောက်ချင်တာက <strong>Blame Culture မဟုတ်ဘဲ Ownership Culture</strong> ဖြစ်သင့်ပါတယ်။</p>
<blockquote>
<p><strong>Own your part. Support the team. Fix the system. Learn from the failure.</strong></p>
</blockquote>
<p>ကောင်းမွန်တဲ့ Engineering Culture ဆိုတာ ဘယ်သူ့ကို အပြစ်တင်ရမလဲဆိုတာ ရှာဖွေနေတာ မဟုတ်ပါဘူး။ Team အားလုံး အတူတကွ တာဝန်ယူပြီး ပူးပေါင်းလုပ်ဆောင်နိုင်တဲ့ Culture တစ်ခုကို တည်ဆောက်ခြင်းပဲ ဖြစ်ပါတယ်။</p>
<p>#EngineeringCulture #Accountability #Ownership #Teamwork</p>
]]></content:encoded></item><item><title><![CDATA[Application Deployment on AWS with Infrastructure as Code: Terragrunt, Atlantis & AWX - Part 1]]></title><description><![CDATA[Infrastructure-as-Code (IaC) ကို စတင်အသုံးပြုတဲ့အခါ Terraform က လူသုံးများတဲ့ ရွေးချယ်မှုတစ်ခုဖြစ်ပါတယ်။ Project နဲ့ Infrastructure အရွယ်အစား…]]></description><link>https://blog.vitaltechmyanmar.com/application-deployment-on-aws-with-infrastructure-as-code-terragrunt-atlantis-awx-part-1</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/application-deployment-on-aws-with-infrastructure-as-code-terragrunt-atlantis-awx-part-1</guid><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Mon, 17 Aug 2026 15:28:11 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/646edfeb0ed089624d33fe3c/6d9f37c2-7ce0-43b1-a887-bb39d621973b.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Infrastructure-as-Code (IaC) ကို စတင်အသုံးပြုတဲ့အခါ Terraform က လူသုံးများတဲ့ ရွေးချယ်မှုတစ်ခုဖြစ်ပါတယ်။ Project နဲ့ Infrastructure အရွယ်အစား မကြီးသေးတဲ့အချိန်မှာ Terraform တစ်ခုတည်းနဲ့ Infrastructure တွေကို ထိရောက်စွာ Manage လုပ်နိုင်ပါတယ်။</p>
<p>ဒါပေမယ့် Organization ကြီးလာတာနဲ့အမျှ Team members တွေ ပိုများလာပြီး၊ AWS Accounts, Environments, Projects နဲ့ Infrastructure resources တွေလည်း တဖြည်းဖြည်း များပြားလာပါတယ်။ ဒီအချိန်မှာ Terraform ကို တစ်ဦးချင်း သို့မဟုတ် Team အတွင်းမှာသာ ရိုးရိုးအသုံးပြုတဲ့ပုံစံကနေ ကျော်လွန်ပြီး Infrastructure changes တွေကို ဘယ်လို Manage မလဲ၊ Review နဲ့ Approval ကို ဘယ်လို Control လုပ်မလဲ၊ Deployment ကို ဘယ်လို Automate လုပ်မလဲ ဆိုတဲ့ ပြဿနာတွေ ပေါ်လာနိုင်ပါတယ်။</p>
<p>Terraform ကိုယ်တိုင်မှာ environment များစွာအတွက် code reuse ကို ကောင်းကောင်း handle လုပ်ပေးတဲ့ native mechanism မရှိပါဘူး။ VPC module တစ်ခုကို dev, staging, prod သုံးခုစလုံးမှာ သုံးမယ်ဆိုပါစို့။ <code>terraform workspace</code> ဆိုတာ ရှိပေမယ့် ဒါက variable value ကိုပဲ ကွဲပြားစေတာမျိုးဖြစ်ပြီး၊ backend configuration၊ provider version၊ module source version စတာတွေကို environment အလိုက် သီးခြားစီမံဖို့ မလုံလောက်ပါဘူး။ လက်တွေ့မှာ team တွေက folder သုံးခုစီကို <code>.tf</code> file တွေ manually copy ချထားကြတယ်။ အကယ်၍များ VPC module ထဲမှာ bug fix တစ်ခု လိုအပ်လာရင် folder သုံးခုလုံးကို လိုက်ပြင်ရတယ်။ တစ်နေရာမှာသာမေ့သွားခဲ့ရင် environment တွေအကြား config drift တွေဖြစ်လာနိုင်ပါတယ်။</p>
<p>နောက်ထပ် Terraform CLI ကိုယ်တိုင်မှာ production ပြောင်းမယ်ဆိုရင် approval နှစ်ဆင့်လိုမယ် ဆိုတဲ့ governance concept မပါဝင်ပါဘူး။ ဥပမာ အနေနဲ့ Engineer တစ်ယောက်က production RDS instance ကို resize လုပ်ချင်လို့ သူ့ရဲ့laptop ကနေ <code>terraform apply</code> ဆိုပြီး run လိုက်ရုံနဲ့ production ချက်ချင်းပြောင်းသွားနိုင်တယ်။ code review, PR approval, second-person-sign-off ဘာမှကိုမလိုအပ်ဘူး။ ဘယ်သူကတော့ ဘယ်အချိန်မှာ ဘာပြောင်းခဲ့လဲ ဆိုတဲ့ audit trail ကို မသိနိုင်ဘူး။</p>
<p>ဒီလိုမျိုး Scale ကြီးလာတဲ့ Environment မှာ ကြုံတွေ့ရနိုင်တဲ့ Challenges တွေကို ဖြေရှင်းဖို့အတွက် <strong>Terragrunt, Atlantis နဲ့ AWX</strong> တို့ကို သုံးရခြင်းပဲဖြစ်ပါတယ်။</p>
<h3>Terragrunt</h3>
<p>Terragrunt က Terraform ကို replace လုပ်တာမဟုတ်ပါဘူး။ Terraform အပေါ်မှာ orchestration layer တစ်ခုအနေနဲ့ အသုံးပြုတယ့် configuration wrapper tool တစ်ခုပဲဖြစ်ပါတယ်။ သူရဲ့အဓိက ဖြေရှင်းပေးတဲ့ ပြဿနာက code duplication ပါ။ ဥပမာအနေနဲ့ - VPC module တစ်ခုကို dev, staging, prod သုံးခုစလုံးမှာ သုံးမယ်ဆိုပါစို့။ Terragrunt မပါဘဲဆိုရင် folder သုံးခုစီမှာ Terraform code တွေ တူတူထပ်ရေးရမှာပါ။ ဒါပေမယ့် Terragrunt ကတော့ VPC module ရဲ့ actual logic ကို modules repo တစ်ခုတည်းမှာပဲ ထားလိုက်ပြီး၊ <code>terragrunt.hcl</code> file တစ်ခုစီက ဒီ module ကို point လုပ်ပြီး variable တွေကိုပဲ ကွဲပြားအောင် ပေးလိုက်တာပါ။ Root level <code>terragrunt.hcl</code> တစ်ခုမှာ S3 backend, DynamoDB lock table, provider configuration စတာတွေကို တစ်ခါတည်း define လုပ်ထားလို့ရပါတယ်။ Environment အသစ်ထပ်ချင်ရင် folder အသစ်တစ်ခုဆောက်ပြီး variable ပဲ ချိန်ရုံပါပဲ။</p>
<h3>Atlantis</h3>
<p>Terragrunt က code structure ကို ကောင်းအောင် စီစဉ်ပေးပေမယ့်၊ ဘယ်သူက ဘယ်အချိန် apply လုပ်လို့ရလဲ ဆိုတဲ့ ပြဿနာကို မဖြေရှင်းနိုင်သေးပါဘူး။ ဒါကို Atlantis က handle လုပ်ပေးတယ်။ example အနေနဲ့ Engineer တစ်ယောက်က production RDS instance size ကို <code>db.t3.medium</code> ကနေ <code>db.r5.large</code> ပြောင်းချင်တယ်ဆိုပါစို့။</p>
<ul>
<li><p>Git Repo ထဲက<code>terragrunt.hcl</code> ထဲက instance class ကို ပြောင်းပြီး Pull Request တင်မယ်။</p>
</li>
<li><p>GitHub/GitLab webhook နဲ့ ချိတ်ဆက်ထားတဲ့ Atlantis က PR ကို auto-detect လုပ်ပြီး <code>terraform plan</code> ကို automatic run လုပ်ပေးတယ်။</p>
</li>
<li><p>Plan output ကို PR comment အနေနဲ့ ပြန်တင်ပေးတယ် — DevOps or SRE က ဒီ plan ကို review လုပ်လို့ရတယ်။ Approve လုပ်လိုက်မှသာ <code>atlantis apply</code> ဆိုတဲ့ comment ရေးမှသာ actual apply ဖြစ်ပါတယ်။ Atlantis က state lock ကို automatic handle လုပ်ပေးလို့ engineer နှစ်ယောက် တစ်ပြိုင်တည်း run လုပ်လို့ conflict ဖြစ်စရာ မရှိတော့ဘူး။</p>
</li>
</ul>
<p>ဒါကတော့ Terraform apply process ထဲကို code review + approval workflow + audit log ကို ထည့်ပေးလိုက်တာပါ။ Compliance အတွက်လည်း ဘယ်သူက ဘာပြောင်းခဲ့လဲ ဆိုတာကို Git history ထဲမှာပဲ တွေ့နိုင်ပါတယ်။</p>
<h3>AWX</h3>
<p>Terragrunt နဲ့ Atlantis ပေါင်းလိုက်ရင် infrastructure provisioning (VPC, EC2, RDS ဆောက်တာ) ကို ကောင်းကောင်းစီမံနိုင်ပါပြီ။ ဒါပေမယ့် infrastructure ဆောက်ပြီးတာနဲ့ အလုပ်မပြီးသေးပါဘူး — server တွေထဲမှာ ဆက်လက်လုပ်ဆောင်ရမယ့် operational tasks တွေ ရှိသေးတယ်။ Terraform ဆိုတာ declarative provisioning tool ဖြစ်တဲ့အတွက် ongoing config management၊ ad-hoc task execution တွေအတွက် design မလုပ်ထားပါဘူး။ ဒါကြောင့် ဒီနေရာမှာ <strong>AWX</strong> (Ansible Tower open-source version) ဝင်လာတာပါ။ Terragrunt/Atlantis က EC2 instances ၂၀ လုံးကို provision လုပ်ပြီးပြီဆိုပါစို့။ ခုနောက်ထပ် လိုအပ်တာတွေက:</p>
<ul>
<li><p>Application code deployment</p>
</li>
<li><p>Nginx config update, SSL certificate renewal</p>
</li>
<li><p>Security patch apply</p>
</li>
<li><p>Database backup script run</p>
</li>
</ul>
<p>စတာတွေကို AWX ကို web UI ကနေ Ansible playbooks တွေကို schedule/trigger လုပ်ပါတယ်။</p>
<p>အပေါ်မှာ tools အကြောင်းတွေကို ရှင်းပြပြီးပြီဆိုတော့ ဒီတစ်မှာ code repository structure ကိုပြောချင်ပါတယ်။ Infrastructure နဲ့ Application code အားလုံးကို Repository တစ်ခုတည်းထဲမှာ ထည့်ထားမယ့်အစား Responsibility အလိုက် Repository ခွဲထားတာ ပိုသင့်တော်ပါတယ်။ ကျွန်တော်ကတော့ ဒီမှာ iac-infra-repo, config-mgmt-repo နဲ့ app-code-repo ဆိုပြီး 3ခု ခွဲထားသင့်တယ်လို့ အကြံပေးချင်ပါတယ်။</p>
<p>Repository ခွဲရခြင်းရဲ့ အဓိကအကြောင်းရင်းကတော့ <strong>Separation of Concerns</strong> ကြောင့်ဖြစ်ပါတယ်။ Infrastructure changes နဲ့ Application release cycle ဟာမတူပါဘူး။ Repository သာခွဲထားရင် application release လုပ်တိုင်း Terraform pipeline ပြန် run စရာမလိုတော့ပါဘူး။ အကယ်၍များ repository တစ်ခုထဲမှာ Infrastructure + Ansible + Application အားလုံးရှိနေခဲ့ရင် accidental change တစ်ခုကြောင့် unrelated component တွေကိုပါ ထိခိုက်နိုင်ပါတယ်။ ဒါကြောင့် Infra IaC နဲ့ Ansible ကို Application code တစ်ခုနဲ့ tightly coupled မဖြစ်အောင်ထားဖို့အကြံပြုပါတယ်။ Part 1 ကို ဒီလောက်နဲ့ပဲ ခဏရပ်ထားပါမယ်။</p>
<p>Stay tuned for Part 2! 🚀</p>
]]></content:encoded></item><item><title><![CDATA[Lessons from Building a Native Kubernetes HA Cluster]]></title><description><![CDATA[Production environment အတွက် Kubernetes HA cluster တစ်ခုကို from scratch တည်ဆောက်တာဟာ simple deployment တစ်ခုထက် အများကြီးပိုပြီး challenging ဖြစ်စေပါတယ်။…]]></description><link>https://blog.vitaltechmyanmar.com/lessons-from-building-a-native-kubernetes-ha-cluster</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/lessons-from-building-a-native-kubernetes-ha-cluster</guid><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Wed, 03 Jun 2026 05:43:43 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/646edfeb0ed089624d33fe3c/c2da5f92-70d9-404f-8617-e0f5a74424cd.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Production environment အတွက် Kubernetes HA cluster တစ်ခုကို from scratch တည်ဆောက်တာဟာ simple deployment တစ်ခုထက် အများကြီးပိုပြီး challenging ဖြစ်စေပါတယ်။ Managed Kubernetes service တစ်ခုကိုသုံးရင် platform က အလုပ်တချို့ကို သက်သာစေပေမယ့်၊ on-premises environment မှာတော့ network, load balancing, control plane, storage, monitoring အားလုံးကို ကိုယ်တိုင် design လုပ်ရပါတယ်။ ဒါကတော့ ကျွန်တော်တို့ အနေနဲ့ Kubernetes HA cluster ကို <strong>HAProxy, Istio Ingress Gateway, and Longhorn storage</strong> နဲ့ production-ready အဖြစ် တည်ဆောက်ခဲ့တုန်းက အကြောင်းအရာကို ပြန်လည် Sharing လုပ်ခြင်းဖြစ်ပါတယ်။ အပြင်ပန်းမှာတော့ components တွေက open-source ဖြစ်လို့ ရိုးရှင်းသလို ထင်ရပေမယ့်၊ တကယ်တမ်းမှာတော့ component တစ်ခုချင်းစီရဲ့ behavior ကို နက်နက်ရှိုင်းရှိုင်းနားလည်မှသာ stable ဖြစ်တဲ့ cluster တစ်ခုကို ရနိုင်ပါတယ်။</p>
<h3>Why We Didn't Choose a Managed Kubernetes Service</h3>
<p>ဒီ project ကို စတင် design လုပ်စဉ်ကာလတုန်းက Enterprise Kubernetes အနေနဲ့ရှိနေတဲ့ RedHat OpenShift ရော Managed Kubernetes services ဖြစ်တဲ့ Amazon EKS တို့ကိုလည်း ထည့်သွင်းစဉ်းစားခဲ့ပါတယ်။ Managed services တွေက control plane management, automated upgrades, built-in high availability, နဲ့ operational overhead လျော့နည်းခြင်း စတဲ့ အားသာချက်များစွာ ရှိပါတယ်။ သို့သော် ဒီ project ရဲ့ customer requirements က Managed Kubernetes platform ကို ရွေးချယ်ခြင်းက အသင့်တော်ဆုံး option မဖြစ်ခဲ့ပါဘူး။</p>
<p>ပထမဦးစွာ customer environment ဟာ on-premises infrastructure ပေါ်မှာ အခြေခံထားပြီး၊ data sovereignty နဲ့ regulatory compliance requirements တွေကြောင့် workloads အချို့ကို public cloud ပေါ်သို့ ပြောင်းရွှေ့ရန် ကန့်သတ်ချက်များ ရှိနေခဲ့ပါတယ်။ အထူးသဖြင့် financial sector workloads ဖြစ်တာကြောင့် infrastructure control နှင့် data location ကို အပြည့်အဝ ထိန်းချုပ်နိုင်ခြင်းသည် အရေးကြီးသော requirement တစ်ခုဖြစ်ခဲ့ပါသည်။</p>
<p>ဒုတိယအနေဖြင့် cost optimization သည် အရေးကြီးသော factor တစ်ခု ဖြစ်ခဲ့ပါသည်။ Managed Kubernetes services များသည် operational complexity ကို လျော့ချပေးနိုင်သော်လည်း cluster management fees, data transfer charges, storage costs, နှင့် additional cloud services များကြောင့် ရေရှည် operating cost များ မြင့်တက်လာနိုင်ပါသည်။ Customer ရဲ့ budget planning အရ existing infrastructure resources များကို အမြင့်ဆုံး အသုံးချနိုင်မည့် open-source based architecture ကို ပိုမိုနှစ်သက်ခဲ့ပါသည်။</p>
<p>နောက်ထပ်အချက်တစ်ခုမှာ infrastructure flexibility ဖြစ်ပါသည်။ Native Kubernetes platform ကို ကိုယ်တိုင်တည်ဆောက်ခြင်းအားဖြင့် networking, ingress, storage, security policies, နှင့် cluster lifecycle management များကို customer requirements အတိုင်း စိတ်ကြိုက် customize ပြုလုပ်နိုင်ခဲ့ပါသည်။ Vendor-specific limitations များကို စဉ်းစားရန် မလိုအပ်သလို vendor lock-in risk ကိုလည်း လျှော့ချနိုင်ခဲ့ပါသည်။</p>
<p>ဒီအကြောင်းအရင်းများကြောင့် Managed Kubernetes platform တစ်ခုကို အသုံးပြုခြင်းထက် HAProxy, Istio Ingress Gateway, Longhorn Storage နှင့် Kubernetes open-source ecosystem ကို အခြေခံသည့် Native Kubernetes HA architecture ကို ရွေးချယ်ခဲ့ခြင်းဖြစ်ပါသည်။ ဒီ project မှာ operational responsibility များ ပိုမိုများပြားလာသော်လည်း customer requirements, budget constraints နှင့် long-term infrastructure strategy များနှင့် ပိုမိုကိုက်ညီသည့် solution တစ်ခုကို ရရှိခဲ့ပါသည်။</p>
<h3>Architecture Overview</h3>
<p>ဒီ setup မှာ core design က high availability ကို အဓိကထားပါတယ်။ Control Plane access အတွက် <strong>HAProxy</strong> ကို external load balancer အဖြစ် သုံးခဲ့ပြီး, Kubernetes API server traffic ကို master nodes တွေဆီ distribute လုပ်ခဲ့ပါတယ်။ Node တစ်ခု down သွားရင်လည်း cluster access မပြတ်သွားအောင် VIP-based failover pattern ကို ထည့်သုံးခဲ့ပါတယ်။</p>
<p>Application traffic အတွက် <strong>Istio Ingress Gateway</strong> ကို အသုံးပြုခဲ့ပါတယ်။ simple Ingress controller ထက်ပိုပြီး traffic routing, retries, canary release, mTLS, and observability အတွက် ပိုကောင်းတဲ့ control ရခဲ့ပါတယ်။</p>
<p>Persistent storage အတွက် <strong>Longhorn</strong> ကို သုံးခဲ့ပါတယ်။ Stateful workloads တွေအတွက် replication, backup, snapshot, and recovery လိုအပ်ချက်တွေကို Longhorn က fairly well handle လုပ်ပေးနိုင်ပါတယ်။ ဒါပေမယ့် production မှာတော့ storage tuning က မဖြစ်မနေလိုပါတယ်။</p>
<h2>Control Plane HA Architecture</h2>
<p>Kubernetes HA Cluster တစ်ခု၏ အသက်သွေးကြောသည် ၎င်း၏ Control Plane (Master Nodes) ပဲဖြစ်ပါသည်။ API Server သို့မဟုတ် Etcd သည် တစ်စုံတစ်ရာ ချို့ယွင်းသွားပါက Cluster တစ်ခုလုံး လည်ပတ်နိုင်စွမ်း ရပ်တန့်သွားမည် ဖြစ်ပါသည်။ ထို့ကြောင့် Control Plane များ ပျက်ယွင်းမှုမရှိစေရန်အတွက် အနည်းဆုံး Master Node (3) nodes ကို အသုံးပြုခဲ့ပြီး၊ Cluster ၏ State များကို သိမ်းဆည်းရန်အတွက် Etcd ကို ခိုင်မာစွာ တည်ဆောက်ခဲ့ပါသည်။</p>
<h3>API Server Load Balancing with Keepalived and HAProxy</h3>
<p>Master Node 3 ခုလုံးရှိ <code>kube-apiserver</code> သို့ ဝင်ရောက်လာသော Request များကို မျှဝေပေးနိုင်ရန် Load Balancing နှင့် Node တစ်ခုကျသွားပါက အလိုအလျောက် အခြား Node သို့ ပြောင်းလဲချိတ်ဆက်ပေးနိုင်ရန် Failover အတွက် HAProxy နှင့် Keepalived ကို ပေါင်းစပ်အသုံးပြုခဲ့ပါသည်။</p>
<p><strong>Keepalived Mechanism</strong></p>
<p>Keepalived သည် Virtual Router Redundancy Protocol (VRRP) ကို အသုံးပြု၍ physical IP address များအပေါ်တွင် Virtual IP (VIP) တစ်ခုကို ဖန်တီးပေးပါသည်။ ဥပမာအားဖြင့် Master Node သုံးခု၏ IP များသည် <code>10.238.40.162</code>, <code>10.238.40.163</code>, <code>10.238.40.164</code> ဖြစ်ပါက၊ VIP အဖြစ် Network အတွင်း အလွတ်ရှိနေသော <code>10.238.40.166</code> ကဲ့သို့သော IP တစ်ခုကို သတ်မှတ်နိုင်ပါသည် ။ ဤအဆင့်တွင် Master Node များအကြား အချင်းချင်း Heartbeats ကို စဉ်ဆက်မပြတ် ဖလှယ်နေကြပြီး Primary Node အဖြစ် တာဝန်ယူထားသော Server သည် ရုတ်တရက် Down သွားပါက ၊ Keepalived သည် VIP ကို အခြား ကျန်ရှိနေသော Backup Node သို့ ချက်ချင်း ရွှေ့ပြောင်းပေးခြင်းဖြင့် Cluster ကို အဆက်မပြတ် လည်ပတ်နိုင်စေပါသည် ။</p>
<p><strong>HAProxy Mechanism</strong></p>
<p>HAProxy သည် VIP ၏ Port <code>6443</code> သို့ ဝင်ရောက်လာသော TCP Request များကို Master Node များရှိ API Server များထံသို့ Round-robin စနစ်ဖြင့် ဖြန့်ဝေပေးပါသည် ။ အကယ်၍ Master Node တစ်ခုခုရှိ <code>kube-apiserver</code> သည် အလုပ်မလုပ်တော့ပါက HAProxy ၏ Health Check စနစ်က ၎င်းကို အလိုအလျောက် ဖယ်ရှားပေးမည် ဖြစ်ပါသည်။</p>
<p>example အနေနဲ့ HAProxy ရဲ့ configuration ကိုထည့်ပေးထားပါတယ်။</p>
<pre><code class="language-shell">global
    log /dev/log local0
    log /dev/log local1 notice
    maxconn 20000
    daemon

defaults
    mode tcp
    log global
    retries 3
    timeout connect 10s
    timeout client 300s
    timeout server 300s

frontend kubernetes-apiserver
    bind *:6443
    mode tcp
    option tcplog
    default_backend kubernetes-master-nodes

backend kubernetes-master-nodes
    mode tcp
    balance roundrobin
    option tcp-check
    server master1 10.238.40.162:6443 check fall 3 rise 2
    server master2 10.238.40.163:6443 check fall 3 rise 2
    server master3 10.238.40.164:6443 check fall 3 rise 2
</code></pre>
<p>ဤ Configuration တွင် <code>fall 3 rise 2</code> သည် အလွန်အရေးကြီးပါသည်။ ဆိုလိုသည်မှာ ဆက်တိုက် (၃) ကြိမ် Health Check ကျရှုံးမှသာ Server ကို Downtime အဖြစ်သတ်မှတ်မည်ဖြစ်ပြီး၊ ပြန် up လာသောအခါ ဆက်တိုက် (၂) ကြိမ် အောင်မြင်မှသာ Up အဖြစ် ပြန်လည်လက်ခံမည် ဖြစ်ရာ၊ Network မငြိမ်မသက်ဖြစ်မှုကြောင့် Serverများ မကြာခဏ Flapping ဖြစ်ခြင်း ကို ကာကွယ်ပေးနိုင်ပါသည်။</p>
<h3>Kubeadm Configuration and Control Plane Endpoint</h3>
<p>Cluster ကို စတင်တည်ဆောက်ရာတွင် (<code>kubeadm init</code>) ဆိုပြီး ပုံမှန် Node IP တစ်ခုတည်းကို အသုံးပြုမည့်အစား Keepalived မှ ဖန်တီးထားသော VIP ကို <code>controlPlaneEndpoint</code> အဖြစ် မဖြစ်မနေ သတ်မှတ်ရပါမည် ။ သို့မှသာ Worker Node များနှင့် အခြား Control Plane Node များသည် Cluster သို့ ချိတ်ဆက်ရာတွင် အဆိုပါ VIP (Load Balancer) မှတစ်ဆင့် အမြဲတမ်းချိတ်ဆက်နိုင်မည်ဖြစ်ပြီး HA စနစ်ကို အပြည့်အဝ အသက်ဝင်စေမည်ဖြစ်သည် ။</p>
<p>ဤကဲ့သို့ <code>controlPlaneEndpoint</code> ကို ကြိုတင်ပြင်ဆင်ခြင်းမရှိဘဲ Single Control Plane အဖြစ် ဦးစွာတည်ဆောက်ပြီးမှ၊ နောင်တစ်ချိန်တွင် HA သို့ ပြောင်းလဲရန် kubeadm တွင် ထောက်ပံ့ထားခြင်းမရှိဘဲ ရှုပ်ထွေးသော ပြဿနာများကို ဖြစ်ပေါ်စေနိုင်ပါသည်။</p>
<p>example အနေနဲ့ Cluster Configuration လဲကြည့်ရှုနိုင်ပါသည်။</p>
<pre><code class="language-yaml">apiVersion: kubeadm.k8s.io/v1beta3
kind: ClusterConfiguration
kubernetesVersion: v1.31.0
controlPlaneEndpoint: "10.238.40.166:6443"
networking:
  podSubnet: "10.244.0.0/16"
  serviceSubnet: "10.96.0.0/12"
</code></pre>
<p>အဆိုပါ Config ကို အသုံးပြု၍ Cluster ကို Init လုပ်ပြီးနောက်၊ အခြားသော Master Node များကို ချိတ်ဆက်သည့်အခါ <code>--control-plane</code> နှင့် <code>--certificate-key</code> flag များကို အသုံးပြု၍ Certificates ကို လုံခြုံစွာ မျှဝေရယူနိုင်မည် ဖြစ်ပါသည်။</p>
<h2>Container Runtime Transition: Containerd and Systemd Cgroup Driver</h2>
<p>Kubernetes ရဲ့ version 1.24 အထက်ကနေစပြီး Dockershim ကိုဖြုတ်လိုက်ပြီး Docker အစား containerd ကို အဓိက Container Runtime (CRI) အဖြစ် အသုံးပြုလာကြပါသည် ။ Containerd ကို အသုံးပြုရာ၌ Cgroup (Control Group) Driver ကို စနစ်တကျ ချိန်ညှိမှုသည် အလွန်အရေးကြီးသော အဆင့်တစ်ခု ဖြစ်ပါသည်။</p>
<h3>Issues Arising from Cgroup Driver Mismatches</h3>
<p>Linux Server များတွင် Pod များ၏ CPU နှင့် Memory ကဲ့သို့သော resources တွေကို manage လုပ်ရန် <code>cgroups</code> ကို အသုံးပြုပါသည်။ သာမန်အားဖြင့် Container Runtime များသည် <code>cgroupfs</code> ကို အသုံးပြုလေ့ရှိသော်လည်း၊ ဥပမာ - Ubuntu, RHEL သည် OS ရဲ့ Process ID (PID 1) အဖြစ် <code>systemd</code> ကို အသုံးပြုကြပါသည်။</p>
<p>အကယ်၍ Kubernetes ၏ Kubelet နှင့် Containerd သည် <code>cgroupfs</code> ကို သုံးနေပြီး၊ OS သည် <code>systemd</code> ကို သုံးနေပါက၊ စနစ်တစ်ခုတည်းတွင် cgroup manager နှစ်ခု ပြိုင်တူအလုပ်လုပ်နေမည် ဖြစ်ပါသည်။ ဤကဲ့သို့ Mismatch ဖြစ်ပေါ်ပါက resources management ကိုပိုရှုပ်ထွေးသွားစေပြီး၊ Node များ ရုတ်တရက် အလုပ်မလုပ်တော့ခြင်း၊ သို့မဟုတ် resources မလုံလောက်မှုကြောင့် ပြဿနာများကို ဖြစ်ပေါ်စေနိုင်ပါသည်။</p>
<h3>The Solution and Optimal Configuration</h3>
<p>ဤပြဿနာကို ဖြေရှင်းရန်အတွက် kubelet နှင့် containerd နှစ်ခုစလုံးကို <code>systemd</code> cgroup driver ကိုသာ တူညီစွာ အသုံးပြုရန် ပြင်ဆင်ပေးရမည် ဖြစ်ပါသည်။ Containerd ၏ အဓိက config file ဖြစ်သော <code>/etc/containerd/config.toml</code> တွင် အောက်ပါအတိုင်း <code>SystemdCgroup = true</code> ဟု ထည့်သွင်းပေးရမည်ဖြစ်သည်။</p>
<pre><code class="language-shell">version = 2
[plugins]
  [plugins."io.containerd.grpc.v1.cri"]
    [plugins."io.containerd.grpc.v1.cri".containerd]
      [plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
        [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
          runtime_type = "io.containerd.runc.v2"
          [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
            SystemdCgroup = true
</code></pre>
<p>Config ကို ပြင်ဆင်မှုများ ပြီးပါက <code>systemctl restart containerd</code> နှင့် <code>systemctl restart kubelet</code> တို့ကို လုပ်ဆောင်ပေးခြင်းဖြင့် Node များ တည်ငြိမ်စွာ အလုပ်လုပ်လာမည်ကို တွေ့မြင်ရမည် ဖြစ်ပါသည်။</p>
<h2>Network Foundation: MetalLB, CNI, and MTU Optimization</h2>
<p>Kubernetes Cluster တစ်ခု၏ Performance သည် ၎င်း၏ အောက်ခြေရှိ Network အပေါ်တွင် များစွာမူတည်နေပါသည်။ အထူးသဖြင့် On-Premises Environment တွင် Cloud Provider များ၏ အထောက်အပံ့မပါဝင်သဖြင့် ကွန်ရက်ပိုင်း ကို ကိုယ်တိုင် အပြည့်အဝ တာဝန်ယူ တည်ဆောက်ရပါသည်။</p>
<h3>Configuring MetalLB Layer 2 for Bare-Metal</h3>
<p>Cloud Providers များ (ဥပမာ - AWS, GCP) တွင် Kubernetes Service ကို <code>LoadBalancer</code> type ဖြင့် ထုတ်လိုက်ပါက Cloud ၏ Load Balancer (ဥပမာ ALB, NLB) ကို အလိုအလျောက် ချိတ်ဆက်ပေးပြီး Public IP တစ်ခုကို ရရှိပါသည်။ သို့သော် On-Premises တွင် ထိုသို့လုပ်ဆောင်ပေးမည့် အရာမရှိသောကြောင့် <code>LoadBalancer</code> Service များကို ဖန်တီးပါက အမြဲတမ်း <code>&lt;pending&gt;</code> အခြေအနေတွင်သာ ရှိနေမည်ဖြစ်ပါသည်။ ဤ ပြသနာကို ဖြေရှင်းရန် MetalLB ကို အသုံးပြုရပါသည်။</p>
<p>MetalLB သည် Layer 2 (ARP/NDP) သို့မဟုတ် BGP mode များဖြင့် အလုပ်လုပ်နိုင်ပါသည်။ BGP သည် အဆင့်မြင့် Router များလိုအပ်ပြီး ပြင်ဆင်ရ ရှုပ်ထွေးသော်လည်း၊ Layer 2 mode သည် အထူးတလည် ပြင်ဆင်မှု များစွာမလိုအပ်ဘဲ ရိုးရှင်းစွာ အလုပ်လုပ်နိုင်သည့်အတွက် On-premises ပတ်ဝန်းကျင်များတွင် တွင်ကျယ်စွာ အသုံးပြုကြပါသည်။</p>
<p>MetalLB အား လုပ်ငန်းလည်ပတ်ရန်အတွက် IP Address များ ခွဲဝေချထားပေးရန် <code>IPAddressPool</code> နှင့် ၎င်း IP များကို Network အတွင်းသို့ ကြေငြာရန် <code>L2Advertisement</code> Custom Resources (CRDs) များကို အသုံးပြုရပါသည်။</p>
<p>MetalLB Layer 2 Example Configuration</p>
<pre><code class="language-yaml">apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
  name: production-pool
  namespace: metallb-system
spec:
  addresses:
  - 192.168.100.240-192.168.100.250
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
  name: production-advertisement
  namespace: metallb-system
spec:
  ipAddressPools:
  - production-pool
</code></pre>
<p>Layer 2 mode တွင် အလုပ်လုပ်ပုံမှာ၊ LoadBalancer Service တစ်ခု ဖန်တီးလိုက်သည်နှင့် MetalLB သည် <code>production-pool</code> ထဲမှ IP တစ်ခုကို assign ချပေးပါသည်။ ထို့နောက် Cluster အတွင်းရှိ Node တစ်ခုခုပေါ်တွင် အလုပ်လုပ်နေသော MetalLB Speaker pod သည် အဆိုပါ IP အတွက် ARP request များကို လက်ခံဖြေကြားပေးရန် (Announce) ကို တာဝန်ယူလိုက်ပါသည်။ ထို့ကြောင့် ပြင်ပမှ လာသော ကွန်ရက်လမ်းကြောင်းများသည် အဆိုပါ Node သို့ ရောက်ရှိသွားပြီး၊ ၎င်းမှတစ်ဆင့် Kube-Proxy က သက်ဆိုင်ရာ Application Pod များထံသို့ ဆက်လက်ပေးပို့ပါသည်။</p>
<h3>The Silent Threat: CNI and MTU Mismatches</h3>
<p>Cluster ၏ ကွန်ရက်ချိတ်ဆက်မှုများအတွက် Calico သို့မဟုတ် Cilium ကဲ့သို့သော Container Network Interface (CNI) များကို အသုံးပြုလေ့ရှိပါသည် ။ ဤနေရာတွင် အထူးဂရုပြုရမည့် အရေးကြီးဆုံး ကွန်ရက်ပိုင်းဆိုင်ရာ ကန့်သတ်ချက်မှာ MTU (Maximum Transmission Unit) သတ်မှတ်ချက် ဖြစ်ပါသည်။ MTU သည် ကွန်ရက်ပေါ်တွင် တစ်ကြိမ်လျှင် ပို့လွှတ်နိုင်သော အကြီးဆုံး Packet အရွယ်အစားကို ကိုယ်စားပြုပါသည်။</p>
<p>သာမန် Physical Network ၏ Ethernet MTU သည် အများအားဖြင့် 1500 bytes ဖြစ်ပါသည်။ သို့သော် Calico သို့မဟုတ် Flannel ကဲ့သို့သော CNI များသည် Pod များအကြား ဆက်သွယ်ရန်အတွက် VXLAN သို့မဟုတ် IP-in-IP ကဲ့သို့သော Encapsulation နည်းလမ်းများကို အသုံးပြုကြပါသည်။ ဤသို့ အသုံးပြုသည့်အခါ မူလ Packet ပေါ်တွင် Header အသစ်များ ထပ်မံပေါင်းထည့်ရပါသည် ။ VXLAN သည် 50 bytes နေရာယူပြီး၊ IP-in-IP သည် 20 bytes နေရာယူပါသည်။ ထို့ကြောင့် CNI ၏ လက်တွေ့အသုံးပြုနိုင်သော MTU သည် Physical MTU ထက် အနည်းဆုံး 50 bytes နည်းပါးနေရပါမည်။ (ဥပမာ - 1450 bytes)</p>
<p><strong>Consequences of an MTU Mismatch</strong></p>
<p>အကယ်၍ Node ၏ MTU (1500) နှင့် CNI ၏ MTU ကိုက်ညီမှုမရှိဘဲ (ဥပမာ CNI တွင်လည်း 1500 ဟု မှားယွင်းစွာ သတ်မှတ်မိပါက)၊ Network Packet များသည် ကွန်ရက်ထဲသို့ ရောက်သောအခါ ခွင့်ပြုထားသော အရွယ်အစားထက် ကြီးမားနေသဖြင့် Packet Fragmentation များ အဆက်မပြတ် ဖြစ်ပေါ်စေနိုင်ပါသည်။</p>
<p>လက်တွေ့လုပ်ငန်းခွင်တွင် ဤ MTU Mismatch ကြောင့် အောက်ပါဆိုးကျိုးများကို ကြုံတွေ့ရတတ်ပါသည်။</p>
<ol>
<li><p><strong>Database Transactions Failures:</strong> data အမြောက်အမြား ပို့လွှတ်ရသော Database များသည် Latency မြင့်တက်လာပြီး Connection များ ပြတ်တောက်သွားတတ်ပါသည်။</p>
</li>
<li><p><strong>Longhorn Storage Replication Impact:</strong> Storage Network သည် MTU အလွန်အရေးကြီးပါသည်။ MTU မှားယွင်းနေပါက Storage Volume များ Sync လုပ်ရာတွင် အလွန်နှေးကွေးသွားပြီး Volume များ Degraded ဖြစ်ခြင်း၊ Rebuild ပြုလုပ်မှု failed ဖြစ်ခြင်းများကြုံတွေ့ရနိုင်ပါသည်။</p>
</li>
</ol>
<p>ဤပြဿနာများကို ရှောင်ရှားရန် <code>ping -s 1450 -M do &lt;Node-IP&gt;</code> ကဲ့သို့သော Command များဖြင့် Packet Fragmentation ဖြစ်မဖြစ် စစ်ဆေးသင့်ပြီး၊ <code>calico-config</code> ConfigMap အတွင်းရှိ <code>mtu</code> တန်ဖိုးကို မိမိ၏ Infrastructure နှင့် ကိုက်ညီအောင် တိကျစွာ လျှော့ချသတ်မှတ်ပေးရန် လိုအပ်ပါသည်။</p>
<h2>Storage Optimization: Tuning Longhorn for Production</h2>
<p>Kubernetes တွင် Stateful Application များ (ဥပမာ - Databases, Message Queues) အတွက် Persistent Storage သည် မရှိမဖြစ်လိုအပ်ပါသည်။ Longhorn သည် Rancher မှ ဖန်တီးထားသော Cloud-Native Storage စနစ်ဖြစ်ပြီး ရိုးရှင်းလွယ်ကူသော်လည်း၊ Production Environment မှာ အသုံးပြုရန်အတွက် သေချာစွာ Tuning လုပ်ဖို့လိုအပ်ပါသည်။</p>
<h3>Disaster Recovery and Backup Automation</h3>
<p>Longhorn မှာ data locality and replica strategy ကို ထိန်းချုပ်ပေးနိုင်ပါတယ်။ ဒီ feature ကို properly tune လုပ်ထားရင် workload latency ကို လျှော့ပေးနိုင်ပါတယ်။ System Error၊ Human Error ဖြစ်ပေါ်ပါက data များ မဆုံးရှုံးစေရန်အတွက်လည်း အောက်ပါ Backup Strategy များကို ချမှတ်အကောင်အထည်ဖော်သင့်ပါသည်။</p>
<ul>
<li><p><strong>External Backup Target:</strong> AWS S3, Google Cloud Storage, သို့မဟုတ် Office Network တွင်းရှိ NFS Server တစ်ခုခုကို External Backup Target အဖြစ် သတ်မှတ်သင့်ပါသည်။ Cluster ထဲက data များ မဆုံးရှုံးအောင် Backup Storage မှ Data များကို အလွယ်တကူ ပြန်ပြီး Restore လုပ်နိုင်မည်ဖြစ်ပါသည်။</p>
</li>
<li><p><strong>Recurring Backups :</strong> အရေးကြီးသော Volume များအားလုံးအတွက် အလိုအလျောက် Backup ယူသည့် အစီအစဉ်များ (Cron jobs) ကို StorageClass မှတစ်ဆင့်သော်လည်းကောင်း (ဥပမာ - <code>recurringJobSelector</code>) အသုံးပြု၍ Longhorn UI မှတစ်ဆင့်သော်လည်းကောင်း သတ်မှတ်ထားရပါမည် ။ ဤသို့ပြုလုပ်ခြင်းဖြင့် data များ လုံခြုံမှုကို အာမခံနိုင်ပါသည်။</p>
</li>
<li><p><strong>Snapshot Management and Space Efficiency:</strong> Longhorn သည် Replica များ ပြန်လည်တည်ဆောက်ရာတွင် system မှ အလိုအလျောက် Snapshot များကို ဖန်တီးပါသည်။ ဤ Snapshot များသည် အချိန်ကြာလာသည်နှင့်အမျှ Diskspace များကို စားသုံးလာမည်ဖြစ်ရာ ၎င်းတို့ကို ပုံမှန်ရှင်းလင်းပေးမည့် (Cleanup) Recurring Job များကိုလည်း မဖြစ်မနေ ထည့်သွင်းစဥ်းစားရပါမည် ။ ထို့အပြင် File System အဟောင်းများကို ရှင်းလင်းရန် <code>filesystem-trim</code> လုပ်ငန်းစဉ်များကိုပါ အချိန်မှန် လုပ်ဆောင်ပေးခြင်းဖြင့် Storage စွမ်းဆောင်ရည်ကို ထိန်းသိမ်းထားနိုင်ပါသည်။</p>
</li>
</ul>
<h2>Advanced Traffic Management: Istio Ingress Gateway</h2>
<p>Application များဆီသို့ External မှ ဝင်ရောက်လာသော HTTP/HTTPS (Ingress Traffic) များကို စီမံခန့်ခွဲရန်အတွက် ရိုးရှင်းသော Nginx Ingress ကို အသုံးပြုနိုင်သော်လည်း၊ ပိုမိုရှုပ်ထွေးသော Microservices Architecture များအတွက် အဆင့်မြင့် လုပ်ဆောင်ချက်များကို ပေးစွမ်းနိုင်သော Istio Ingress Gateway ကို အသုံးပြုခြင်းသည် အကောင်းဆုံး ရွေးချယ်မှုဖြစ်ပါသည်။</p>
<h3>Advantages of Istio Ingress Gateway</h3>
<p>Istio Ingress Gateway သည် Istio Service Mesh ၏ အစိတ်အပိုင်းတစ်ခုဖြစ်ပြီး Envoy Proxy ကို အခြေခံ၍ တည်ဆောက်ထားပါသည်။ ၎င်းသည် Cluster အတွင်းသို့ ဝင်ရောက်လာသော Traffic များအားလုံးအတွက် တစ်ခုတည်းသော Single Entry Point အဖြစ် လုပ်ဆောင်ပေးကာ Load Balancing, SSL/TLS Termination (Certificate Management), နှင့် Authentication ကဲ့သို့သော လုံခြုံရေး လုပ်ဆောင်ချက်များကို ပံ့ပိုးပေးပါသည်။</p>
<p>Istio တွင် Traffic Management ကို ဖွဲ့စည်းရာ၌ Traditional Ingress Resource ထက် ပိုမိုပြောင်းလွယ်ပြင်လွယ်ရှိသော Custom Resources နှစ်ခုဖြစ်သည့် <code>Gateway</code> နှင့် <code>VirtualService</code> တို့ကို တွဲဖက်အသုံးပြုရပါသည်။</p>
<ul>
<li><p><strong>Gateway Resource:</strong> မည်သည့် Port များ (example - TCP Port 80, 443) ကို open ထားမည်၊ မည်သည့် Hostname များကို လက်ခံမည် နှင့် SSL/TLS Certificate များကို မည်သို့ ချိတ်ဆက်မည် စသည်တို့ကို အတိအကျ သတ်မှတ်ပေးသည့် အစိတ်အပိုင်း ဖြစ်ပါသည်။</p>
</li>
<li><p><strong>VirtualService Resource:</strong> Gateway မှ တစ်ဆင့် အောင်မြင်စွာ ဝင်ရောက်လာသော Traffic များကို မည်သည့် Kubernetes Service များထံသို့ မည်သည့် Routing Rules ဖြင့် ပို့ဆောင်မည်ကို အသေးစိတ် သတ်မှတ်ပေးပါသည်။</p>
</li>
</ul>
<p><strong>Advanced Use Cases of VirtualService</strong></p>
<p>လက်တွေ့လုပ်ငန်းခွင်တွင် <code>VirtualService</code> ကို အသုံးပြု၍ Routing များကို ပြုလုပ်နိုင်ပါသည်။ ဥပမာအားဖြင့် -</p>
<ul>
<li><p><strong>Path-based Routing:</strong> Hostname တစ်ခုတည်းမှ ဝင်လာသော Traffic များကို URL Path အလိုက် (ဥပမာ - <code>/api/users</code> နှင့် <code>/api/payments</code>) မတူညီသော Microservices များထံ တိကျစွာ ခွဲဝေပို့ဆောင်ခြင်း။</p>
</li>
<li><p><strong>Traffic Shifting (Canary Releases):</strong> Software Version အသစ်တစ်ခုကို Deployment လုပ်ရာ တွင် အန္တရာယ်ကင်းစေရန်အတွက် Traffic ၏ 90% ကို ယခင် Version အဟောင်း (v1) သို့ ပို့ပြီး ကျန် 10% ကိုသာ Version အသစ် (v2) သို့ ပို့ဆောင်စမ်းသပ်ခြင်းတို့ကို လွယ်ကူစွာ လုပ်နိုင်ပါသည်။</p>
</li>
<li><p><strong>Resiliency &amp; Fault Tolerance:</strong> Network ချို့ယွင်းမှုများအတွက် <code>retries</code> နှင့် <code>timeout</code> များကို Application Code ထဲတွင် ရေးစရာမလိုဘဲ Istio ဘက်မှ တပါတည်း ထည့်သွင်းသတ်မှတ်ပေးနိုင်ခြင်းကြောင့် အားသာချက်တစ်ခုဖြစ်ပါသည်။</p>
</li>
</ul>
<p>ဒါပေမယ့် complexity ကတော့ တိုးလာမှာပါပဲ။ HAProxy နဲ့ Istio ကြားမှာ <strong>PROXY protocol</strong> သုံးပြီး original client IP ကို preserve လုပ်ရတဲ့အပိုင်းလိုမျိုးက beginner-friendly မဟုတ်ပါဘူး။ Debugging လုပ်ရတာလည်း ပိုပြီး harder ဖြစ်နိုင်ပါတယ်။ ဒါကြောင့် ကျွန်တော်တို့ ရရှိခဲ့တဲ့ lesson ကတော့ Istio က powerful ဖြစ်ပေမယ့်, production environment မှာ design ကို simple, observable, and well-documented ဖြစ်အောင် ထားရမယ်ဆိုတာပါ။</p>
<h2>Monitoring Is Part of the Architecture</h2>
<p>Monitoring မပါဘဲ production cluster တည်ဆောက်တာက blindfold လိုပါပဲ။ Cluster က running ဖြစ်နေတယ်လို့ထင်ရပေမယ့် hidden pressure တွေက slowly build up ဖြစ်နေတတ်ပါတယ်။ ဒါကြောင့် Prometheus, Grafana, metrics-server, and alerting rules တွေကို မဖြစ်မနေ ထည့်ခဲ့ပါတယ်။ Especially storage capacity, latency, node disk usage, API server health, and control plane reachability တို့ကို close watch လုပ်ထားရပါတယ်။ Production experience က သင်ပေးတာကတော့ “it works” ဆိုတာနဲ့မလုံလောက်ဘဲ “we can see it, measure it, and recover it quickly” ဖြစ်ရမယ်ဆိုတာပဲဖြစ်ပါတယ်။</p>
<h2>The Final Takeaway</h2>
<p>ဒီ project ကနေ အကြီးမားဆုံး ရခဲ့တဲ့ lesson ကတော့ open-source stack တွေကို combine လုပ်ပြီး production-grade platform တစ်ခုတည်ဆောက်လို့ရတယ်ဆိုတာပါ။ ဒါပေမယ့် success ကို open source tools တွေကပဲ မပေးပါဘူး။ Architecture decisions, careful tuning, testing, and operational discipline က အဓိကပဲဖြစ်ပါတယ်။</p>
<p>HAProxy က control plane ကို stable access ပေးတယ်။ Istio က application traffic ကို smart way နဲ့ manage လုပ်ပေးတယ်။ Longhorn က stateful workloads အတွက် resilient storage layer တစ်ခုဖြစ်လာတယ်။ ဒါပေမယ့် ဒါတွေအားလုံးကို production-ready ဖြစ်အောင်လုပ်ဖို့ network, runtime, storage, and monitoring တို့ကို end-to-end အဖြစ် စဉ်းစားရပါတယ်။</p>
<p>Thanks for reading, and I appreciate your time.</p>
<p><a href="https://hashnode.com/@sc3p73r" class="user-mention" data-type="mention" title="Sc3p73R">Sc3p73R</a></p>
]]></content:encoded></item><item><title><![CDATA[Terraform + Crossplane: Modern GitOps Platform]]></title><description><![CDATA[Cloud Native လောကမှာ Infrastructure as Code (IaC) လို့ပြောလိုက်ရင် လူတိုင်းပြေးမြင်ကြတာက Terraform ပါ။ ဒါပေမဲ့ အခုနောက်ပိုင်းမှာ Kubernetes-native ဖြစ်တဲ့…]]></description><link>https://blog.vitaltechmyanmar.com/terraform-crossplane-modern-gitops-platform</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/terraform-crossplane-modern-gitops-platform</guid><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Fri, 08 May 2026 16:30:46 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/646edfeb0ed089624d33fe3c/4e898105-ef8c-4f97-a658-e170e06892f6.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Cloud Native လောကမှာ Infrastructure as Code (IaC) လို့ပြောလိုက်ရင် လူတိုင်းပြေးမြင်ကြတာက <strong>Terraform</strong> ပါ။ ဒါပေမဲ့ အခုနောက်ပိုင်းမှာ Kubernetes-native ဖြစ်တဲ့ <strong>Crossplane</strong> ကလည်း အရမ်းကို ရေပန်းစားလာပါတယ်။</p>
<p>Engineer တော်တော်များများက Terraform နဲ့ Crossplane ဘယ်ဟာ ပိုကောင်းလဲ လို့ ယှဉ်လေ့ရှိကြပေမဲ့၊ တကယ့် လက်တွေ့ Industry ရဲ့ အကောင်းဆုံး Practice ကတော့ အဲ့ဒီနှစ်ခုကို ယှဉ်သုံးတာထက် <strong>Hybrid Approach</strong> ကတော့ အကောင်းဆုံးပဲ ဖြစ်ပါတယ်။ အရင်ဆုံးအနေနဲ့ ကျွန်တော်တို့ ဒီ Tools နှစ်ခုရဲ့ အားသာချက် အားနည်းချက်တွေကို သိဖို့လိုပါတယ်။</p>
<h3>Terraform</h3>
<p>Terraform ဟာ Infrastructure Provisioning အတွက် အသင့်တော်ဆုံးပါပဲ။ Multi-Cloud Provider ကို support ပေးပြီး၊ ကျယ်ပြန့်တဲ့ Infrastructure ကြီးတစ်ခုလုံးကို တည်ဆောက်တဲ့နေရာမှာ အရမ်းကို Mature ဖြစ်တဲ့ tool တစ်ခုပါ။ သို့သော် သူရဲ့ အားနည်းချက်က Maintenance မှာပါ။ ကျွန်တော်တို့က Terraform ကိုအသုံးပြုပြီး AWS ပေါ်မှာ Infrastructure တစ်ခုတည်ဆောက်ထားတယ်ပဲဆိုပါတော့ဗျာ။ တစ်ယောက်ယောက်ကများ AWS Console ထဲဝင်ပြီး Manual သွားပြင်လိုက်တယ်ထားပါတော့။ ဒီလိုမျိုး Configuration Drift မျိုးကို Terraform ကနေမှ ချက်ချင်းမသိနိုင်ပါဘူး။ Terraform က state ကို track လုပ်ပြီး <code>plan</code>/<code>apply</code> မှာ current state နဲ့ desired config ကို compare လုပ်ပါတယ်။ Drift ကိုလည်း refresh အဆင့်နဲ့ plan/apply အတွင်းမှာ detect လုပ်နိုင်ပေမဲ့၊ Crossplane လို always-on controller မဟုတ်နေပါဘူး။</p>
<h3>Crossplane</h3>
<p>Crossplane သည် open-source Kubernetes extension တစ်ခု ဖြစ်ပြီး Kubernetes cluster တစ်ခုကို universal control plane တစ်ခုအဖြစ် ပြောင်းလဲပေးနိုင်သော framework တစ်ခု ဖြစ်ပါတယ်။ သူရဲ့ အဓိက ရည်ရွယ်ချက်ကတော့ platform team များအနေဖြင့် cloud provider များ၏ Infrastructure များကို standard Kubernetes API များမှတစ်ဆင့် စီမံခန့်ခွဲနိုင်ရန်နှင့် application developer များအတွက် self-service အခြေအနေကို ဖန်တီးပေးရန် ဖြစ်သည် ။ သူရဲ့ အလုပ်လုပ်ပုံကတော့ Terraform လို တစ်ခါ run ပြီး ရပ်သွားတာမျိုး မဟုတ်ဘဲ၊ Kubernetes Controller တွေလိုပဲ 24/7 အမြဲတမ်း စောင့်ကြည့်နေတာပါ။ အကယ်၍ Console ကနေ manual သွားဖျက်လိုက်ရင်တောင် သူက ချက်ချင်းသိပြီး မူလအတိုင်း အလိုအလျောက် ပြန်တည်ဆောက်ပေးပါတယ်။ သို့သော် Crossplane ကို Run ဖို့အတွက် Kubernetes Cluster တစ်ခုတော့ အရင်ရှိနေဖို့ လိုအပ်ပါတယ်။</p>
<h3><strong>The Ultimate Combo</strong></h3>
<p>အိမ်တစ်လုံးဆောက်ပြီဆိုရင် foundation အရင်ချရသလိုပါပဲ။ ပထမဆုံးအနေနဲ့ Cloud Environment ရဲ့ Infrastructure တွေကိုတည်ဆောက်ပြီဆိုရင်လဲ Terraform နဲ့ တည်ဆောက်ပါမယ်။</p>
<ul>
<li><p>VPC, Subnet, Route Tables တွေ ဖန်တီးမယ်။</p>
</li>
<li><p>IAM Roles တွေ၊ Security Groups တွေ သတ်မှတ်မယ်။</p>
</li>
<li><p>အရေးအကြီးဆုံးဖြစ်တဲ့ <strong>Kubernetes Cluster (EKS, GKE, or AKS)</strong> စတာတွေကို တည်ဆောက်ပါမယ်။ ဒီအဆင့်မှာတော့ Terraform ကို အသုံးပြုတာက အမြန်ဆုံးနဲ့ အစိတ်ချရဆုံး ဖြစ်ပါတယ်။</p>
</li>
</ul>
<p>Terraform နဲ့ ဆောက်ထားတဲ့ Kubernetes Cluster လေး ရလာပြီဆိုရင်၊ အဲ့ဒီ Cluster ထဲမှာ <strong>Crossplane</strong> ကို Install လုပ်လိုက်ပါမယ်။ အဲ့ဒီအချိန်ကစပြီး ကိုယ့်ရဲ့ Application တွေအတွက် လိုအပ်တဲ့ ကျန်တဲ့ resource တွေကို Terraform နဲ့ ဆက်မဆောက်တော့ပါဘူး။</p>
<ul>
<li><p>Application တစ်ခုက Database (ဥပမာ- AWS RDS) လိုချင်ရင် Crossplane ကနေတစ်ဆင့် ဆောက်ပါမယ်။</p>
</li>
<li><p>S3 Buckets တွေ၊ Message Queues (SQS) တွေ၊ Caching (ElastiCache) တွေကို Crossplane သုံးပြီး K8s YAML file လေးတွေနဲ့ပဲ request လုပ်ပါတော့မယ်။</p>
</li>
</ul>
<p>GitOps (eg - ArgoCD, Flux) ကို အသုံးပြုတဲ့အခါ အရာအားလုံးအတွက် Single Source of Truth ကို Git Repository ထဲမှာပဲ ထားပါတယ်။ Terraform သီးသန့်ဆိုရင် App deployment က ArgoCD နဲ့သွားပြီး၊ Infrastructure က Terraform CI/CD pipeline နဲ့သွားနေတာမို့ Workflow နှစ်ခု ကွဲနေတတ်ပါတယ်။ ဒါပေမဲ့ Crossplane ကို သုံးလိုက်တဲ့အခါမှာ Database ဆောက်တဲ့ Code ရော၊ App ကို Deploy လုပ်တဲ့ Helm Chart ရော အကုန်လုံးက Kubernetes Manifest YAML တွေ ဖြစ်သွားပါတယ်။ Developer တွေက application code အသစ်ထည့်လိုက်တာနဲ့ တစ်ပြိုင်နက်၊ အဲ့ဒီ app အတွက် လိုအပ်မယ့် database အသစ်ကိုပါ git ထဲကနေ တစ်ခါတည်း commit လုပ်လိုက်လို့ ရပါတယ်။ ArgoCD က အဲ့ဒီ YAML တွေကို မြင်တာနဲ့ App ကို K8s ပေါ်မှာ Deploy လုပ်ပေးသလို၊ Crossplane ကနေတစ်ဆင့် AWS ပေါ်မှာ Database ကိုပါ အလိုအလျောက် သွားဆောက်ပေးသွားမှာပါ။ ဒါဟာ App ရော Infra ကိုပါ တစ်ပြိုင်နက်တည်း အပြောင်းအလဲလုပ်နိုင်တဲ့ True GitOps workflow ပဲဖြစ်ပါတယ်။</p>
<p><a href="https://hashnode.com/@sc3p73r" class="user-mention" data-type="mention" title="Sc3p73R">Sc3p73R</a></p>
]]></content:encoded></item><item><title><![CDATA[Headlamp: A New Alternative to the Kubernetes Dashboard]]></title><description><![CDATA[Kubernetes cluster တွေကို UI ကနေမြင်ရ၊ စီမံရ လွယ်ကူစေတဲ့ dashboard tool တွေထဲမှာ Kubernetes Dashboard က အရင်က လူသုံးများခဲ့တဲ့ official web UI…]]></description><link>https://blog.vitaltechmyanmar.com/headlamp-a-new-alternative-to-the-kubernetes-dashboard</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/headlamp-a-new-alternative-to-the-kubernetes-dashboard</guid><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Tue, 05 May 2026 15:23:50 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/646edfeb0ed089624d33fe3c/4c4d502d-11a1-4aa0-98ec-cd98a9700a99.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Kubernetes cluster တွေကို UI ကနေမြင်ရ၊ စီမံရ လွယ်ကူစေတဲ့ dashboard tool တွေထဲမှာ <strong>Kubernetes Dashboard</strong> က အရင်က လူသုံးများခဲ့တဲ့ official web UI တစ်ခုဖြစ်ပါတယ်။ ဒါပေမယ့် 2026 ခုနှစ် January 21 ရက်မှာ repository ကို archive လုပ်ပြီး active maintainers and contributors မလုံလောက်တော့တာကြောင့် no longer maintained လို့ တရားဝင်ဖော်ပြထားပါတယ်။ အဲဒီ README ထဲမှာပဲ Headlamp ကို အစားထိုးအဖြစ် စဉ်းစားဖို့ ညွှန်ပြထားပါတယ်။</p>
<h3>Kubernetes Dashboard ဘာကြောင့် deprecated ဖြစ်သွားတာလဲ</h3>
<p>အဓိကအကြောင်းရင်းကတော့ <strong>maintenance</strong> ဆက်မလုပ်နိုင်တော့တာပါ။ Repository ကို archive လုပ်တဲ့အခါ “lack of active maintainers and contributors” လို့ တိတိကျကျ ဖော်ပြထားပြီး၊ archive ဖြစ်သွားတာနဲ့အတူ project သည် read-only ဖြစ်သွားပါတယ်။ Kubernetes Dashboard က general-purpose web UI အဖြစ် ရပ်တည်ခဲ့ပေမယ့် maintainers များနည်းလာခြင်းကြောင့် long-term support အတွက် အားနည်းသွားခဲ့ပါတယ်။</p>
<p>နောက်တစ်ချက်က modern Kubernetes environments တွေအတွက်လိုအပ်တဲ့extensibility နဲ့ flexible deployment model တွေကို နောက်ပိုင်း tool များက ပိုကောင်းကောင်းဖြည့်ဆည်းလာတာပါ။ Kubernetes Dashboard documentation မှာတောင် Helm-based installation သာ support လုပ်ပြီး multi-container setup, gateway proxy စတဲ့ architecture တွေကို မှီခိုနေရတာကို တွေ့ရပါတယ်။ အဲဒီလို setup က legacy dashboard experience ထက် ပိုမိုပြောင်းလဲနေတဲ့အတွက် platform လိုအပ်ချက်တွေနဲ့ မကိုက်တော့ပါဘူး။</p>
<h2>Headlamp ဆိုတာဘာလဲ</h2>
<p><strong>Headlamp</strong> က Kubernetes cluster တွေကို browser ကနေ စီမံနိုင်တဲ့ modern web UI တစ်ခုဖြစ်ပါတယ်။ Official site ရဲ့ docs အရ Headlamp ကို <strong>Kubernetes cluster</strong> ထဲမှာ deploy လုပ်လို့ရသလို desktop application အဖြစ်လည်း run လို့ရ ပါတယ်။ Project ကို “easy-to-use and extensible Kubernetes web UI” လို့ ဖော်ပြထားပြီး <strong>Kubernetes SIG UI</strong> အောက်က official Kubernetes sub-project တစ်ခုအဖြစ် ရပ်တည်နေပါတယ်။ headlamp ရဲ့ github repository ကိုလည်းလေ့လာလို့ရအောင်ထည့်ပေးထားပါတယ်။</p>
<p>Headlamp Github: <a href="https://github.com/kubernetes-sigs/headlamp">kubernetes-sigs/headlamp: A Kubernetes web UI that is fully-featured, user-friendly and extensible</a></p>
<h2>Headlamp ကို ဘယ်သူတွေ develop လုပ်တာလဲ</h2>
<p>Headlamp ဟာ <strong>open-source project</strong> ဖြစ်ပြီး official FAQ အရ maintainers list ကို repository ရဲ့ <code>OWNERS_ALIASES</code> file ထဲမှာထားပါတယ်။ ဒီ project က CNCF ရဲ့ Sandbox project တစ်ခု ဖြစ်ပြီး၊ community contributors တွေ ပါဝင်ပြီး develop လုပ်ကြပါတယ်။ Official site ကလည်း Headlamp ကို Kubernetes SIG UI နဲ့ ချိတ်ဆက်ထားတဲ့ Kubernetes sub-project အဖြစ် ဖော်ပြထားပါတယ်။ ဆိုလိုတာကတော့ Headlamp သည် တစ်ခုတည်းသော vendor product မဟုတ်ဘဲ Kubernetes community-driven project တစ်ခုဖြစ်ပါတယ်။</p>
<h3>ဘာကြောင့် Headlamp ကို သုံးသင့်လဲ</h3>
<p>ပထမဆုံးအကြောင်းရင်းကတော့ <strong>active development</strong> ရှိနေခြင်းပါ။ Kubernetes Dashboard က archive ဖြစ်သွားပြီး read-only ဖြစ်သွားတဲ့အချိန်မှာ Headlamp ကတော့ official docs, releases, installation guides, plugin docs တွေနဲ့ actively update လုပ်နေဆဲပါ။</p>
<p>ဒုတိယအချက်က <strong>multi-mode deployment</strong> ပါ။ In-cluster deploy လည်းရ၊ desktop app လည်းရပါတယ်။ Local workstation နဲ့ isolated clusters တွေကို manage လုပ်ချင်သူတွေအတွက် desktop mode ကအသုံးဝင်ပြီး၊ team/shared access အတွက်တော့ cluster ထဲမှာ deploy လုပ်တာက ပိုအဆင်ပြေပါတယ်။</p>
<p>တတိယအချက်က <strong>RBAC-based security model</strong> ပါ။ Headlamp က cluster access ကို directly မယူဘဲ Kubernetes RBAC ကို အခြေခံပြီး API server နဲ့ connect လုပ်ပါတယ်။ Headlamp ရဲ့ recommended login method က Service Account token ဖြစ်ပြီး၊ user permissions ကို Kubernetes native way နဲ့ ထိန်းချုပ်နိုင်ပါတယ်။</p>
<p>စတုတ္ထအချက်ကတော့ <strong>plugin system</strong> ပါ။ Official FAQ မှာ Headlamp ကို highly customizable လို့ ဖော်ပြထားပြီး plugin system က core functionality တွေကို တိုးချဲ့နိုင်တယ်လို့ ဆိုထားပါတယ်။ အဖွဲ့အစည်းတစ်ခုချင်းစီရဲ့ workflow, branding, internal tooling နဲ့ ကိုက်ညီအောင် ပြင်ဆင်ဖို့ အရေးကြီးတဲ့အားသာချက်တစ်ခုပဲဖြစ်ပါတယ်။</p>
<h2>Headlamp Installation step by step</h2>
<p>1. Prerequisite Check</p>
<p>သင့်မှာ Kubernetes cluster တစ်ခုရှိပြီး <code>kubectl</code> က အဲဒီ cluster ကို access လုပ်နိုင်ရပါမယ်။ Helm သုံးမယ်ဆို Helm လည်း install လုပ်ထားရပါမယ်။ Headlamp ကိုအသုံးပြုရန် in-cluster installation နဲ့ desktop application နှစ်မျိုးလုံး support လုပ်ပါတယ်။</p>
<p>2. Helm Repo Add</p>
<p>Headlamp ကို cluster ထဲ deploy လုပ်ဖို့ အလွယ်ဆုံးနည်းက Helm ကိုအသုံးပြုခြင်းပဲဖြစ်ပါတယ်။ Helm repo add ဖို့အတွက် helm package ကိုတော့ install ပြီးသားဖြစ်ရပါမယ်။ Official docs အတိုင်း follow လုပ်ပြီးလဲ installation လုပ်နိုင်ပါတယ်။</p>
<pre><code class="language-shell">helm repo add headlamp https://kubernetes-sigs.github.io/headlamp/
helm repo update
helm install my-headlamp headlamp/headlamp --namespace kube-system --create-namespace
</code></pre>
<p>3. Accessing Web UI</p>
<p>သင့် cluster ရဲ့ ingress (သို့မဟုတ်) service exposure method အလိုက် Headlamp UI ကိုဖွင့်နိုင်ပါတယ်။ Docs မှာ in-cluster deployment ကို ingress နဲ့တွဲသုံးရတဲ့ common use case လို့ ဖော်ပြထားပါတယ်။</p>
<p>4. Authentication / Login</p>
<p>Headlamp docs အရ login လုပ်ရာမှာ client certificate သို့မဟုတ် bearer token သုံးနိုင်ပါတယ်။ Recommended method ကတော့ Service Account token ဖြစ်ပြီး RBAC နဲ့ပဲ access control လုပ်ပါတယ်။ Example အနေနဲ့ service account တစ်ခု create လုပ်ပြီး cluster-admin binding ချိတ်ဆက်နိုင်ပါတယ်။ Headlamp ကို local desktop app အဖြစ်လည်း run လို့ရပါတယ်။ Linux, Mac, Windows support ရှိပြီး unrelated clusters ကို local ကနေ manage လုပ်ချင်သူတွေအတွက် သင့်တော်ပါတယ်။</p>
<p>5. Use OIDC</p>
<p>Headlamp က OIDC စနစ်ကို ပံ့ပိုးထားတာကြောင့် Cluster အသုံးပြုသူတွေအနေနဲ့ "Sign in" ကို နှိပ်ရုံနဲ့တင် အလွယ်တကူ Log in ဝင်ရောက်နိုင်မှာ ဖြစ်ပါတယ်။ OIDC ကို အသုံးပြုရန်အတွက် Headlamp သည် ၎င်းကို မည်သို့ configure လုပ်ရမည်ကို သိရှိရန် လိုအပ်သောကြောင့် သင်၏ OIDC provider ထံမှ သက်ဆိုင်သော argument များကို Headlamp သို့ ပေးဆောင်ရမည်ဖြစ်သည်။</p>
<p>ref: <a href="https://headlamp.dev/docs/latest/installation/in-cluster/oidc/">https://headlamp.dev/docs/latest/installation/in-cluster/oidc/</a></p>
<h3>နိဂုံးချုပ်</h3>
<p>Kubernetes Dashboard က archive ဖြစ်ပြီး maintenance မလုပ်တော့တဲ့အခြေအနေမှာ Headlamp က ပိုပြီး modern ဖြစ်တဲ့ replacement တစ်ခုပါ။ Official Kubernetes SIG UI sub-project ဖြစ်တာ၊ in-cluster နဲ့ desktop နှစ်မျိုးလုံး support လုပ်တာ၊ RBAC-based security model သုံးတာ၊ plugin system နဲ့ customize လုပ်လို့ရတာတွေကြောင့် production-friendly Kubernetes UI အဖြစ် သုံးဖို့ သင့်တော်ပါတယ်။</p>
<p>အချိန်ပေးပြီးဖတ်ရှုပေးတဲ့အတွက် ကျေးဇူးတင်ပါတယ်။</p>
]]></content:encoded></item><item><title><![CDATA[Vagrant For Beginner]]></title><description><![CDATA[Vagrant ဆိုတာကတော့ Virtual Machines တွေကိုတည်ဆောက်ဖို့နဲ့ manage လုပ်ဖို့အတွက် အသုံးပြုရတဲ့ command-line tool တစ်ခုပဲဖြစ်ပါတယ်။ Vagrant သည် ပုံမှန်…]]></description><link>https://blog.vitaltechmyanmar.com/vagrant-for-beginner</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/vagrant-for-beginner</guid><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Mon, 23 Mar 2026 09:41:12 GMT</pubDate><content:encoded><![CDATA[<h3><strong>What is Vagrant?</strong></h3>
<p>Vagrant ဆိုတာကတော့ Virtual Machines တွေကိုတည်ဆောက်ဖို့နဲ့ manage လုပ်ဖို့အတွက် အသုံးပြုရတဲ့ command-line tool တစ်ခုပဲဖြစ်ပါတယ်။ Vagrant သည် ပုံမှန် virtualbox, vmware တို့မှာ Virtual Machine Environment တစ်ခု ဖန်တီးသလိုပဲဖြစ်ပြီး မတူညီတဲ့အချက် ကတော့ virtualbox, vmware တို့မှာ မိမိအသုံးပြုချင်သည့် Os ကို Installation လုပ်ပြီးမှ အသုံးပြုလို့တာပဲဖြစ်ပါသည်။ Vagrant မှာတော့ပုံမှန် Traditional နည်းအတိုင်း (e.g. virtualbox) ပေါ်မှာပဲဖြစ်ဖြစ် Os Installation လုပ်ပြီးသုံးတာမျိုးမဟုတ်တော့ပဲ Vagrant ဆိုသည့် command-line tool ကိုသုံးပြီး မိမိအသုံးပြုချင်သည့် os ကို hypervisor ပေါ်မှာ command နဲ့ တန်း run ပြီး တော့အသုံးပြုလို့ရတာပဲဖြစ်ပါတယ်။</p>
<p>ပုံမှန်အားဖြင့် Vagrant ကို developers တွေက သူတို့ development environment အဖြစ်အသုံး ပြုကြတာမျိုးပဲဖြစ်ပါတယ်။ Vagrant ကိုအသုံးပြုဖို့အတွက် Hypervisor တစ်ခုခုလိုအပ်မည်ဖြစ် ပြီး ဒီ Lab လေးမှာတော့ ကျွန်တော်က virtualbox ကို အသုံးပြုသွားမှာပဲဖြစ်ပါတယ်။</p>
<h3><strong>Vagrant Installation step by step</strong></h3>
<p>Vagrant ကို Installation မလုပ်ခင် prerequisite အနေနဲ့ ကျွန်တော်တို့ရဲ့ စက်ထဲမှာ virtualbox နဲ့ vagrant package ကိုအရင်သွင်းထားဖို့ လိုအပ်ပါသည်။ ကျွန်တော်ကတော့ ubuntu ပေါ်မှာ lab စမ်းပြမှာဖြစ်သည့်အတွက် Windows User တွေနဲ့တော့ package installation step ကတော့ ကွဲလွဲနေမည်ဖြစ်ပါသည်။</p>
<p>ubuntu ပေါ်မှာ virtualbox installation မလုပ်ရသေးဘူးဆိုရင်တော့ အောက်ပါ command ကို အသုံးပြုပြီးတော့ virtualbox ကို installation လုပ်နိုင်ပါတယ်။</p>
<pre><code class="language-shell">sudo apt update
sudo apt install virtualbox
</code></pre>
<p>Windows User အတွက်ကတော့ virtualbox official website <a href="https://www.virtualbox.org/"><strong>https://www.virtualbox.org/</strong></a> သွားပြီး download ဆွဲပြီး install လုပ်နိုင်ပါတယ်။</p>
<p>နောက်ထပ် Vagrant Installation လုပ်ဖို့အတွက် Vagrant website ကို သွားပါမယ်။</p>
<p><a href="https://www.vagrantup.com/"><strong>https://www.vagrantup.com/</strong></a></p>
<p>အဲ့ link အတိုင်းသွားပြီး vagrant community version ကို download ဆွဲနိုင်ပါတယ်။ Windows User တွေကတော့ windows ကို ရွေးပြီး download ဆွဲနိုင်ပါတယ်။ Linux User တွေကတော့ Linux ကို ရွေးပြီးတော့ မိမိအသုံးပြုသည့် distro အတိုင်း download ဆွဲရမှာဖြစ်ပါတယ်။</p>
<img src="https://cdn.hashnode.com/uploads/covers/646edfeb0ed089624d33fe3c/08714e23-2fb6-4442-8b84-c8d73698be3d.png" alt="" style="display:block;margin:0 auto" />

<p>ကျွန်တော်ကတော့ Ubuntu သုံးတာဖြစ်သည့်အတွက်ubuntu tab ထဲမှာရေးထားသည့် instruction အတိုင်း လုပ်သွားမှာဖြစ်ပါတယ်။</p>
<pre><code class="language-shell">wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update &amp;&amp; sudo apt install vagrant
</code></pre>
<p>Vagrant ကို installation လုပ်ပြီးသွားရင်တော့ Terminal မှာ vagrant version ကိုစစ်ကြည့်လို့ရ ပါတယ်။</p>
<pre><code class="language-shell">vagrant --version
</code></pre>
<p>အဲ့လိုစစ်လိုက်ရင်တော့ output အနေနဲ့ Vagrant Version ကို ပြန်ထုတ်ပေးမှာပဲဖြစ်ပါတယ်။ ဒါဆို ရင်တော့ vagrant installation step ကပြီးသွားပြီပဲဖြစ်ပါတယ်။</p>
<h3><strong>Getting Started with Vagrant</strong></h3>
<p>vagrant ကိုအသုံးပြုဖို့အတွက် အရင်ဆုံးအနေနဲ့ project directory လေးတစ်ခု ဆောက်ပေးရမှာ ဖြစ်ပါတယ်။</p>
<pre><code class="language-plaintext">mkdir vagrant-lab
cd vagrant-lab
</code></pre>
<p>Directory ဆောက်ပြီးသွားရင်တော့ အဲ့ directory ထဲ ဝင်ပြီး vagrant init ဆိုတဲ့ command အသုံးပြုပေးရမှာဖြစ်ပါတယ်။ နောက်ထပ် သိထားရမှာတော့ Vagrant Boxes ဖြစ်ပြီး သူကတော့ ကျွန်တော်တို့ pre-build os image တွေကိုစုထားတဲ့ Vagrant Cloud ပဲဖြစ်ပါတယ်။ မိမိအသုံးပြု ချင်သည့် os ကို ရှာဖို့အတွက်အရင်ဆုံး အနေနဲ့ Vagrant Boxes မှာအရင်ရှာရမှာဖြစ်ပါတယ်။</p>
<p><a href="https://app.vagrantup.com/boxes/search"><strong>https://app.vagrantup.com/boxes/search</strong></a></p>
<img src="https://cdn.hashnode.com/uploads/covers/646edfeb0ed089624d33fe3c/563a277f-44e9-4fe0-af11-fd716551e0f2.png" alt="" style="display:block;margin:0 auto" />

<p>ကျွန်တော်ကတော့အဲ့ထဲက <strong>bento/ubuntu-22.04</strong> ဆိုသည့် image name ကိုအသုံးပြုမှာဖြစ်ပါ တယ်။ မိမိအသုံးပြုချင်သည့် image သိသွားပြီဆိုတော့ ခုနကတည်ဆောက်ခဲ့သည့် directory လေးမှာ အောက်ပါ command လေးကို ရိုက်ပေးရမည်ဖြစ်ပါသည်။</p>
<pre><code class="language-shell">vagrant init bento/ubuntu-22.04
</code></pre>
<p>ထိုကဲ့သို့ရိုက်လိုက်တာနဲ့ bento/ubuntu-22.04 ဆိုသည့် image လေးကို download ဆွဲသွားမှာ ဖြစ်ပါတယ်။ download ဆွဲလို့ ပြီးသွားရင်တော့ အောက်ပါအတိုင်းပြမည်ဖြစ်ပါသည်။</p>
<pre><code class="language-shell">A Vagrantfile has been placed in this directory. You are now ready to vagrant up your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on vagrantup.com for more information on using Vagrant.
</code></pre>
<p>ပြီးရင်တော့ နောက်ထပ် vagrant up ဆိုသည့် command ရိုက်လိုက်တာနဲ့ virtualbox ပေါ်မှာ virtual machine တစ်ခု တည်ဆောက်သွားမှာပဲဖြစ်ပါတယ်။ အရင်ဆုံးအနေနဲ့ vagrant up command မရိုက်ခင်မှာ Vagrant Configuration File ထဲမှာconfig လေးတွေပြင်ပေးရပါဦးမယ်။ ကျွန်တော်တို့ခုနက vagrant init bento/ubuntu-22.04 ရိုက်လိုက်လို့ image download ဆွဲလို့ ပြီးသွားသည့်အချိန်မှာ ကျွန်တော်တို့ vagrant init ရိုက်လိုက်သည့် directory ထဲကို Vagrantfile ဆိုသည့် Vagrant Config File လေးက ရောက်လာမှာဖြစ်ပါတယ်။</p>
<p>ကျွန်တော်ကတော့ Vagrantfile config တွေပြင်ဖို့အတွက် vscode ကိုသုံးထားတာဖြစ်ပါတယ်။</p>
<pre><code class="language-ruby"># -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.

Vagrant.configure("2") do |config|
  config.vm.box = "bento/ubuntu-22.04"
  config.vm.hostname= 'vagrant-lab'
 
# Create a private network, which allows host-only access to the machine
# using a specific IP.
  config.vm.network "private_network", ip: "192.168.56.10" 
  config.vm.provider "virtualbox" do |vb|
     vb.name = "srv-01"
     vb.cpus = "1"
     #vb.gui = true

     # Customize the amount of memory on the VM:
     vb.memory = "2048"
   end
# View the documentation for the provider you are using for more
# information on available options.
# Enable provisioning with a shell script. Additional provisioners such as
# Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
# documentation for more information about their specific syntax and use.
# config.vm.provision "shell", inline: &lt;&lt;-SHELL
#   apt-get update
#   apt-get install -y apache2
# SHELL
end
</code></pre>
<pre><code class="language-ruby">Vagrant.configure("2") do |config|
</code></pre>
<p>vagrant.configure ဆိုသည့် နေရာမှာတော့ ဘာမှပြင်စရာမလိုပါဘူး။ <a href="http://config.vm.box">config.vm.box</a> နေရာမှာ မိမိအသုံးပြုချင်သည့် Vagrant Boxes က image name ကိုထည့်ပေးရမည်ဖြစ်ပြီး config.vm.hostname နေရမှာတော့ Virtual Machine Hostname ကိုပေးချင်သည့် နာမည် ထည့်ပေးရမှာပဲဖြစ်ပါတယ်။</p>
<pre><code class="language-ruby">config.vm.box = "bento/ubuntu-22.04"
config.vm.hostname= 'vagrant-lab'
</code></pre>
<p>နောက်ထပ် virutalbox ရဲ့Host-only adapter Network ကိုအသုံးပြုရမှာဖြစ်သည့်အတွက် သူရဲ့ ip ကိုထည့်ပေးရမှာပဲဖြစ်ပါတယ်။</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1705916905300/e5c231bd-b9fd-4a76-b1a9-ddcc931ec233.png" alt="" style="display:block;margin:0 auto" />

<p>virutalbox ရဲ့Host-only adapter Network မှာအသုံးပြုထားတာက 192.168.56.1 ဖြစ်သည့် အတွက်ကျွန်တော်တို့ရဲ့ <a href="http://config.vm.network">config.vm.network</a> မှာတော့ အဲ့ဒီရဲ့ ip range ထဲမှာရှိသည့် ip ကိုထည့် ပေးရမှာဖြစ်ပါတယ်။</p>
<pre><code class="language-plaintext">config.vm.network "private_network", ip: "192.168.56.10"
</code></pre>
<p>နောက်ဆုံးအဆင့်အနေနဲ့ ဘယ် vm provider ကိုအသုံးပြုမလဲဆိုတာရွေးခိုင်းမည်ဖြစ်ပါတယ်။ Vagrantfile ရဲ့ default config မှာတော့ virtualbox က default ဖြစ်နေမှာပဲဖြစ်ပါတယ်။</p>
<pre><code class="language-plaintext">   config.vm.provider "virtualbox" do |vb|
     vb.name = "srv-01"
     vb.cpus = "1"
     vb.memory = "2048"
</code></pre>
<p>config.vm.provider ကတော့ virtualbox သုံးမှာဖြစ်သည့်အတွက် ဘာမှမပြင်တော့ပါဘူး။ <a href="http://vb.name">vb.name</a> မှာဆိုရင်တော့ virutalbox တွင် create လုပ်ရင်ပေးရသည့် vm name ကိုပဲ ပေးခိုင်း ခြင်းဖြစ်ပါသည်။ vb.cpus မှာတော့ မိမိအသုံးပြုမည့် cpu အရေအတွက်ကို ထည့်ပေးရမည်ဖြစ် ပြီး vb.memory မှာတော့ မိမိ vm မှာ အသုံးပြုချင်သည့် memory size ကိုထည့်ခိုင်းတာပဲဖြစ်ပါ သည်။</p>
<p>တခြား vm provider တွေအတွက်အသုံးပြုချင်ရင်တော့ Vagrant ရဲ့ Official Documentation ထဲမှာ ရေးပေးထားတာတွေရှိပါတယ်။ ကျွန်တော်ရေးပြတာထပ် Official Documentation ကိုပဲ ပိုပြီးဖတ်စေချင်တဲ့အတွက်ကြောင့် Documentation Link ကိုပဲ ထည့်ပေးထားပါတယ်။</p>
<p><a href="https://developer.hashicorp.com/vagrant/docs"><strong>https://developer.hashicorp.com/vagrant/docs</strong></a></p>
<p>VagrantFile ထဲမှာ Config တွေအကုန်လုံးပြင်ပြီးသွားရင်ဆိုရင်တော့ vagrant up ရိုက်ရပါမည်။ vagrant up ဆိုသည့် command ကိုရိုက်လိုက်တာနဲ့ virtualbox ထဲမှာ vm တစ်လုံးတည်ဆောက် ပြီး virtual machine တစ်ခါတည်း run သွားမည်ဖြစ်ပါသည်။</p>
<img src="https://cdn.hashnode.com/uploads/covers/646edfeb0ed089624d33fe3c/d970f67d-493a-48c4-8657-aaf12c731571.png" alt="" style="display:block;margin:0 auto" />

<p>အထက်ပါအတိုင်း ဘာ error မှမတက်ပဲပြီးသွားရင်တော့ configuration မှန်လို့ပဲဖြစ်ပါတယ်။ ဒါဆိုရင်တော့ virtual machine ထဲကို login ဝင်ဖို့အတွက် အဲ့ဒီ directory ထဲကနေပဲ</p>
<pre><code class="language-shell">vagrant ssh
</code></pre>
<p>ဆိုသည့် command ကိုရိုက်ပြီး vm ထဲ login ဝင်လို့ရမည်ဖြစ်ပါသည်။</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1705917814136/ade87e37-df25-4c31-98ef-22a671d7a1e9.png" alt="" style="display:block;margin:0 auto" />

<p>ဒါဆိုရင်တော့ ပုံပါအတိုင်း ကျွန်တော်တို့တည်ဆောက်ခဲ့သည့် vagrant-lab ဆိုသည့် အမည်ရှိသည့် virtual machine ထဲကို ရောက်သွားပြီပဲ ဖြစ်ပါတယ်။ traditional vm installation state လိုမျိုး installation state ကို အချိန်သီးသန့်ပေးစရာမလိုတော့ပဲ မိမိအသုံးပြုချင်သည့် development envrionment ကိုမြန်မြန်ဆန်ဆန် စမ်းသပ်နိုင်မှာပဲဖြစ်ပါတယ်။</p>
<p>Virtual Machine ပြန်ဖျက်ချင်ရင်တော့ vm ထဲကနေ exit လုပ်ပြီး vagrant-lab directory ထဲက နေပဲ</p>
<pre><code class="language-shell">vagrant destroy
</code></pre>
<p>ဆိုသည့် command အသုံးပြုပြီးဖျက်နိုင်ပါသည်။ vagrant destroy ဆိုပြီးရိုက်လိုက်သည့် အခါ တွင် ဒီ vm ဖျက်မှာလားဆိုပြီး အတည်ပြုခိုင်းမှာဖြစ်ပြီးတော့ y ကိုရေးပြီး enter နှိပ်လိုက်ရင်တော့ virtualbox ထဲတွင် ရှိနေသည့် virtual machine ကို ဖြတ်သွားမှာပဲဖြစ်ပါတယ်။</p>
<img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1705918135161/9d5c90d1-04f8-47e7-bfea-ce7eaa682aad.png" alt="" style="display:block;margin:0 auto" />

<p>ဒီလောက်ဆိုရင်တော့ vagrant အသုံးပြုနည်းကို တီးမိခေါက်မိ ရှိလောက်သွားမယ်ထင်ပါတယ်။နောက်ထပ်အားရင်အားသလို vagrant နဲ့ပတ်သက်သည့် အကြောင်းအရာများကိုလဲ ဆက်ရေးပေး သွားပါဦးမယ်။</p>
<p>Original Post : <a href="https://blog.waiyan.dev/vagrant-for-beginner">Vagrant For Beginner</a></p>
<p># It was written on January 22, 2024.</p>
]]></content:encoded></item><item><title><![CDATA[Why need to associate IAM OIDC Provider for Amazon EKS Cluster?]]></title><description><![CDATA[Amazon EKS cluster မှာ OpenID Connect (OIDC) provider ကို associate လုပ်ရခြင်းရဲ့ အဓိကအကြောင်းရင်းကတော့ Security နဲ့ Access Control ကို…]]></description><link>https://blog.vitaltechmyanmar.com/why-need-to-associate-iam-oidc-provider-for-amazon-eks-cluster</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/why-need-to-associate-iam-oidc-provider-for-amazon-eks-cluster</guid><category><![CDATA[Elastic Kubernetes Service]]></category><category><![CDATA[Kubernetes]]></category><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Fri, 10 Oct 2025 09:19:11 GMT</pubDate><content:encoded><![CDATA[<p>Amazon EKS cluster မှာ OpenID Connect (OIDC) provider ကို associate လုပ်ရခြင်းရဲ့ အဓိကအကြောင်းရင်းကတော့ Security နဲ့ Access Control ကို ပိုမိုကောင်းမွန်အောင်ပြုလုပ်နိုင်ဖို့ဖြစ်ပါတယ်။ အဓိကအားဖြင့် အချက် (၂) ချက်ရှိပါတယ်။</p>
<ul>
<li><p>To use IAM Roles for Service Accounts (IRSA)</p>
</li>
<li><p>To authenticate user authentication to the Kubernetes Cluster</p>
</li>
</ul>
<h2 id="heading-to-use-iam-roles-for-service-accounts-irsa">To use IAM Roles for Service Accounts (IRSA)</h2>
<p>ပုံမှန်အားဖြင့် EKS cluster ထဲမှာ run နေတဲ့ application (pods) တွေက S3, DynamoDB, SQS စတဲ့ အခြား AWS service တွေကို သုံးဖို့လိုအပ်လာတဲ့အခါမှာ AWS credentials တွေကို လုံလုံခြုံခြုံနဲ့ ပေးဖို့လိုပါတယ်။ OIDC provider ကို EKS cluster နဲ့ associate လုပ်ထားတဲ့အခါမှာ Kubernetes service account တွေကို AWS IAM role တွေနဲ့ ချိတ်ဆက်ပေးနိုင်ပါတယ်။ ဒါကို IAM Roles for Service Accounts (IRSA) လို့ခေါ်ပါတယ်။ ဒီလိုချိတ်လိုက်တဲ့အခါမှာ pod တွေက IAM role ကို assume လုပ်ပြီး လိုအပ်တဲ့ AWS service တွေကို လုံခြုံစွာ access လုပ်နိုင်မှာဖြစ်ပါတယ်။</p>
<h3 id="heading-the-advantages-of-using-the-irsa">The advantages of using the IRSA</h3>
<p>IRSA ကို အသုံးပြုခြင်းအားဖြင့် AWS access key တွေ၊ secret key တွေကို pod တွေထဲမှာ တိုက်ရိုက်သိမ်းထားစရာမလိုတော့ပါဘူး။ OIDC ကနေတစ်ဆင့် လုံခြုံတဲ့ temporary credentials တွေကို အသုံးပြုသွားမှာဖြစ်ပါတယ်။ Pod တစ်ခုချင်းစီအတွက်ကို credential တွေ လိုက်ပေးနေစရာမလိုဘဲ service account နဲ့ IAM role ကိုသာ ချိတ်ဆက်ပေးလိုက်ရုံနဲ့ အဆင်ပြေပါတယ်။ Pod အသစ်တွေတက်လာရင်လည်း အဲ့ဒီ service account ကို သုံးလိုက်တာနဲ့ လိုအပ်တဲ့ permission တွေကို အလိုအလျောက်ရရှိမှာပဲဖြစ်ပါတယ်။ Pod (or) service account တစ်ခု အတွက် လိုအပ်တဲ့ permission အတိအကျကိုသာ IAM role မှာ သတ်မှတ်ပေးထားနိုင်တဲ့အတွက် "least privilege" principle ကိုလည်း အလွယ်တကူ အကောင်အထည်ဖော်နိုင်ပါတယ်။</p>
<h2 id="heading-to-authenticate-user-authentication-to-the-kubernetes-cluster">To authenticate user authentication to the Kubernetes Cluster</h2>
<p>EKS cluster ကို <code>kubectl</code> ကနေတစ်ဆင့် အသုံးပြုမယ့် developer တွေ၊ administrator တွေကို AWS IAM user တွေနဲ့ပဲ access ပေးမယ့်အစား Google, Okta, Auth0 စတဲ့ OIDC-compliant identity provider တွေနဲ့လည်း authentication လုပ်နိုင်အောင် configure လုပ်နိုင်ပါတယ်။ ဆိုလိုတာက မိမိတို့ corporate မှာအသုံးပြုနေတဲ့ user management system (eg - Google Workspace) နဲ့ EKS cluster ကို ချိတ်ဆက်ထားလိုက်တဲ့အခါမှာ user တွေက သူတို့ရဲ့ ရှိရင်းစွဲ corporate account တွေနဲ့ပဲ <code>kubectl</code> command တွေကိုအသုံးပြုပြီး Cluster ကို access ရနေမှာဖြစ်ပါတယ်။ ဒါကြောင့် user management ကို တစ်နေရာတည်းကနေ စီမံခန့်ခွဲနိုင်ပြီး user တွေအတွက်လည်း ပိုပြီးအဆင်ပြေစေပါတယ်။ ဒါကြောင့် EKS cluster မှာ OIDC provider ကို associate လုပ်ခြင်းဟာ Kubernetes cluster အတွင်းက application တွေ (pods) ကို အခြား AWS service တွေနဲ့ လုံခြုံစွာ ချိတ်ဆက်အသုံးပြုနိုင်ဖို့ (IRSA) နဲ့ cluster ကို အသုံးပြုမယ့် user တွေကို external identity provider တွေနဲ့ authentication လုပ်နိုင်ဖို့အတွက် မရှိမဖြစ်လိုအပ်တဲ့ အဆင့်တစ်ခုဖြစ်ပါတယ်။</p>
<p>အားလုံးပဲအချိန်ပေးပြီးဖတ်ရှုပေးတဲ့အတွက် ကျေးဇူးတင်ပါတယ်။</p>
]]></content:encoded></item><item><title><![CDATA[kubectl-like CLI tool for Amazon EKS]]></title><description><![CDATA[အားလုံးပဲမင်္ဂလာပါခင်ဗျာ။ ဒီနေ့မှာတော့ Amazon Elastic Kubernetes Service (EKS) ကို demo စမ်းဖို့အတွက် AWS ကနေမှ developed လုပ်ထားတဲ့ tool…]]></description><link>https://blog.vitaltechmyanmar.com/kubectl-like-cli-tool-for-amazon-eks</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/kubectl-like-cli-tool-for-amazon-eks</guid><category><![CDATA[AWS]]></category><category><![CDATA[EKS]]></category><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Thu, 02 Oct 2025 09:26:58 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1756272621937/51ee2845-0414-47b9-a240-a0521c204e5f.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>အားလုံးပဲမင်္ဂလာပါခင်ဗျာ။ ဒီနေ့မှာတော့ Amazon Elastic Kubernetes Service (EKS) ကို demo စမ်းဖို့အတွက် AWS ကနေမှ developed လုပ်ထားတဲ့ tool အကြောင်းကိုပြောပြမှာပဲဖြစ်ပါတယ်။ အဲ့ဒီ tool ရဲ့ nameလေးကတော့ eksdemo ပဲဖြစ်ပါတယ်။ <code>eksdemo</code> ဆိုတာဟာ Amazon EKS ကို testing, and demoing အတွက် အလွန်လွယ်ကူအောင် ဖန်တီးပေးထားတဲ့ command-line (CLI) tool တစ်ခုဖြစ်ပါတယ်။ သူ့ကို <code>kubectl</code>-like tool လို့ ခေါ်ဆိုရတဲ့ အကြောင်းရင်းကတော့ <code>kubectl</code> ရဲ့ command structure ကို အခြေခံထားပြီး အသုံးပြုရ ရင်းနှီးအောင် လုပ်ဆောင်ထားလို့ ဖြစ်ပါတယ်။ ဒါပေမဲ့ သူ့ရဲ့ အဓိကရည်ရွယ်ချက်ကတော့ <code>kubectl</code> ထက် ပိုပြီး Amazon EKS နဲ့ AWS service တွေကြားက ဆက်စပ်မှုကို ရှင်းရှင်းလင်းလင်းနဲ့ အလွယ်တကူ မြင်နိုင်အောင် ကူညီပေးဖို့ ဖြစ်ပါတယ်။</p>
<h4 id="heading-kubectl-like-command-structure"><code>kubectl</code>-like Command Structure</h4>
<p><code>eksdemo</code> ဟာ <code>kubectl</code> လိုပဲ သုံးပါတယ်။ example:</p>
<ul>
<li><code>eksdemo get nodegroup</code></li>
</ul>
<pre><code class="lang-bash">❯ eksdemo get nodegroup --cluster vtmm-cluster-1
+---------+--------+-----------------------+-------+-----+-----+-----------------+-----------+----------------+
|   Age   | Status |         Name          | Nodes | Min | Max |     Version     |   Type    |  Instance(s)   |
+---------+--------+-----------------------+-------+-----+-----+-----------------+-----------+----------------+
| 5 hours | ACTIVE | eks-master-node       |     1 |   1 |   2 | 1.32.9-20250920 | ON_DEMAND | c7i-flex.large |
| 6 hours | ACTIVE | eks-worker-node-group |     1 |   1 |   2 | 1.32.9-20250920 | ON_DEMAND | c7i-flex.large |
+---------+--------+-----------------------+-------+-----+-----+-----------------+-----------+----------------+
</code></pre>
<p>ဒီလို တူညီတဲ့ပုံစံကြောင့် <code>kubectl</code> နဲ့ ရင်းနှီးပြီးသားသူတွေအတွက် <code>eksdemo</code> ကို သုံးရတာ အလွန်လွယ်ကူပါတယ်။ <code>get</code>, <code>create</code>, <code>delete</code> ဆိုတာတွေကို အဓိကသုံးပါတယ်။</p>
<h4 id="heading-kubectl"><code>kubectl</code> ထက် ဘာတွေပိုထူးခြားလဲ။</h4>
<p><code>eksdemo</code> ရဲ့ အဓိက အားသာချက်ကတော့ Kubernetes object တွေကို AWS resource တွေနဲ့ ချိတ်ဆက်ပြီး ပြသနိုင်စွမ်း ဖြစ်ပါတယ်။</p>
<ul>
<li><p><strong>Viewpoint ကွာခြားမှု:</strong></p>
<ul>
<li><p><code>kubectl</code> က Kubernetes API ကိုပဲ အဓိကထားပြီး အလုပ်လုပ်ပါတယ်။ Cluster ထဲက resource တွေကိုပဲ ပြသနိုင်ပါတယ်။</p>
</li>
<li><p><code>eksdemo</code> ကတော့ Kubernetes API ရော၊ AWS API ကိုပါ တစ်ပြိုင်တည်း အသုံးပြုပါတယ်။ ဒါကြောင့် Kubernetes resource တစ်ခုနဲ့ ဆက်စပ်နေတဲ့ AWS resource ကိုပါ တစ်ပါတည်း ဖော်ပြပေးနိုင်ပါတယ်။</p>
<pre><code class="lang-bash">  ❯ eksdemo get ec2-instance
  +---------+------------+---------------------+--------------------------------+----------------+------------+
  |   Age   |   State    |         Id          |              Name              |      Type      |    Zone    |
  +---------+------------+---------------------+--------------------------------+----------------+------------+
  | 6 hours | running    | i-06dbfbc142668cb88 |                                | c7i-flex.large | us-east-1a |
  | 6 hours | running    | i-0497519f86b5f5981 |                                | c7i-flex.large | us-east-1c |
  +---------+------------+---------------------+--------------------------------+----------------+------------+
</code></pre>
<pre><code class="lang-bash">  ❯ eksdemo get vpc
  +-----------------------+-----------------------------+----------------+--------------+
  |          Id           |            Name             |  IPv4 CIDR(s)  | IPv6 CIDR(s) |
  +-----------------------+-----------------------------+----------------+--------------+
  | vpc-00bce47ab8ea38db0 | *                           | 172.31.0.0/16  | -            |
  +-----------------------+-----------------------------+----------------+--------------+
  * Indicates default VPC
</code></pre>
</li>
<li><p><strong>Viewing Node:</strong></p>
<ul>
<li><p><code>kubectl get nodes</code> လို့ရိုက်ရင် Kubernetes node တွေရဲ့ နာမည်၊ status, role, version စတာတွေကိုပဲ မြင်ရပါမယ်။</p>
</li>
<li><p><code>eksdemo get node</code> လို့ရိုက်ရင်တော့ အဲ့ဒီ Kubernetes node ရဲ့ အောက်မှာ run နေတဲ့ <strong>EC2 Instance ID, Instance Type, Subnet ID, AMI (Amazon Machine Image)</strong> စတဲ့ AWS အချက်အလက်တွေကိုပါ တစ်ခါတည်း တွဲပြီးပြပေးပါတယ်။</p>
<pre><code class="lang-bash">  ❯ eksdemo get node --cluster vtmm-cluster-1
  +---------+--------------------+---------------------+----------------+------------+-----------------------+
  |   Age   |        Name        |     Instance Id     |      Type      |    Zone    |       Nodegroup       |
  +---------+--------------------+---------------------+----------------+------------+-----------------------+
  | 6 hours | ip-172-31-33-128.* | i-0497519f86b5f5981 | c7i-flex.large | us-east-1c | eks-master-node       |
  | 6 hours | ip-172-31-89-30.*  | i-06dbfbc142668cb88 | c7i-flex.large | us-east-1a | eks-worker-node-group |
  +---------+--------------------+---------------------+----------------+------------+-----------------------+
  * Names end with <span class="hljs-string">"ec2.internal"</span>
</code></pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>command usage အသေးစိတ်အတွက်ကိုလည်း eksdemo ရဲ့ repo လေးကို အောက်မှာထည့်ပေးထားပါတယ်။</p>
<p>အားလုံးပဲအချိန်ပေးပြီးဖတ်ရှုပေးတဲ့အတွက်ကျေးဇူးတင်ပါတယ်။</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://github.com/awslabs/eksdemo">https://github.com/awslabs/eksdemo</a></div>
]]></content:encoded></item><item><title><![CDATA[Creating a cluster with kubeadm - Part 3]]></title><description><![CDATA[Part 2 မှာတော့ Cluster Setup လုပ်ဖို့အတွက် လိုအပ်တာတွေ အကုန် Installation လုပ်ပြီးဆိုတော့ ဒီမှာတော့ Cluster Setup ကို စတင်လုပ်ဆောင်တော့မှာပဲဖြစ်ပါတယ်။…]]></description><link>https://blog.vitaltechmyanmar.com/creating-a-cluster-with-kubeadm-part-3</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/creating-a-cluster-with-kubeadm-part-3</guid><category><![CDATA[Kubernetes]]></category><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Wed, 20 Aug 2025 08:13:03 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1753247365195/38357382-6884-4348-a114-06d4a78eaf0d.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Part 2 မှာတော့ Cluster Setup လုပ်ဖို့အတွက် လိုအပ်တာတွေ အကုန် Installation လုပ်ပြီးဆိုတော့ ဒီမှာတော့ Cluster Setup ကို စတင်လုပ်ဆောင်တော့မှာပဲဖြစ်ပါတယ်။</p>
<h1 id="heading-initializing-your-control-plane-node">Initializing your control-plane node</h1>
<p>ဒီမှာတော့ ကျွန်တော်တို့ Setup လုပ်မှာက Master Node က တစ်လုံးပဲ အသုံးပြုထားတာဆိုတော့အောက်ပါအတိုင်းပဲ အသုံးပြုပြီး run လို့ရပါတယ်။ တကယ်လို့ ကျွန်တော်တို့က kubeadm init နောက်မှာ ဘာ command တွေထည့်ရမလဲဆိုတာကို မသိဘူးဆိုရင်တော့ <code>kubeadm init —help</code> ဆိုပြီးတော့ စစ်ကြည့်နိုင်ပါတယ်။</p>
<pre><code class="lang-bash">kubeadm init --<span class="hljs-built_in">help</span>
</code></pre>
<p>ဒါဆိုရင်တော့ control-plane အနေနဲ့ အသုံးပြုမယ့် node ပေါ်မှာ cluster ကို initialize စလုပ်တော့မှာပဲဖြစ်ပါတယ်။</p>
<pre><code class="lang-bash">kubeadm init --pod-network-cidr 192.168.0.0/16
</code></pre>
<p>Output</p>
<pre><code class="lang-bash">[init] Using Kubernetes version: v1.33.4
[preflight] Running pre-flight checks
[preflight] Pulling images required <span class="hljs-keyword">for</span> setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action beforehand using <span class="hljs-string">'kubeadm config images pull'</span>
W0820 07:57:40.979712   92014 checks.go:846] detected that the sandbox image <span class="hljs-string">"registry.k8s.io/pause:3.8"</span> of the container runtime is inconsistent with that used by kubeadm.It is recommended to use <span class="hljs-string">"registry.k8s.io/pause:3.10"</span> as the CRI sandbox image.
[certs] Using certificateDir folder <span class="hljs-string">"/etc/kubernetes/pki"</span>
[certs] Generating <span class="hljs-string">"ca"</span> certificate and key
[certs] Generating <span class="hljs-string">"apiserver"</span> certificate and key
[certs] apiserver serving cert is signed <span class="hljs-keyword">for</span> DNS names [kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local mdo25-master] and IPs [10.96.0.1 10.230.66.136]
[certs] Generating <span class="hljs-string">"apiserver-kubelet-client"</span> certificate and key
[certs] Generating <span class="hljs-string">"front-proxy-ca"</span> certificate and key
[certs] Generating <span class="hljs-string">"front-proxy-client"</span> certificate and key
[certs] Generating <span class="hljs-string">"etcd/ca"</span> certificate and key
[certs] Generating <span class="hljs-string">"etcd/server"</span> certificate and key
[certs] etcd/server serving cert is signed <span class="hljs-keyword">for</span> DNS names [localhost mdo25-master] and IPs [10.230.66.136 127.0.0.1 ::1]
[certs] Generating <span class="hljs-string">"etcd/peer"</span> certificate and key
[certs] etcd/peer serving cert is signed <span class="hljs-keyword">for</span> DNS names [localhost mdo25-master] and IPs [10.230.66.136 127.0.0.1 ::1]
[certs] Generating <span class="hljs-string">"etcd/healthcheck-client"</span> certificate and key
[certs] Generating <span class="hljs-string">"apiserver-etcd-client"</span> certificate and key
[certs] Generating <span class="hljs-string">"sa"</span> key and public key
[kubeconfig] Using kubeconfig folder <span class="hljs-string">"/etc/kubernetes"</span>
[kubeconfig] Writing <span class="hljs-string">"admin.conf"</span> kubeconfig file
[kubeconfig] Writing <span class="hljs-string">"super-admin.conf"</span> kubeconfig file
[kubeconfig] Writing <span class="hljs-string">"kubelet.conf"</span> kubeconfig file
[kubeconfig] Writing <span class="hljs-string">"controller-manager.conf"</span> kubeconfig file
[kubeconfig] Writing <span class="hljs-string">"scheduler.conf"</span> kubeconfig file
[etcd] Creating static Pod manifest <span class="hljs-keyword">for</span> <span class="hljs-built_in">local</span> etcd <span class="hljs-keyword">in</span> <span class="hljs-string">"/etc/kubernetes/manifests"</span>
[control-plane] Using manifest folder <span class="hljs-string">"/etc/kubernetes/manifests"</span>
[control-plane] Creating static Pod manifest <span class="hljs-keyword">for</span> <span class="hljs-string">"kube-apiserver"</span>
[control-plane] Creating static Pod manifest <span class="hljs-keyword">for</span> <span class="hljs-string">"kube-controller-manager"</span>
[control-plane] Creating static Pod manifest <span class="hljs-keyword">for</span> <span class="hljs-string">"kube-scheduler"</span>
[kubelet-start] Writing kubelet environment file with flags to file <span class="hljs-string">"/var/lib/kubelet/kubeadm-flags.env"</span>
[kubelet-start] Writing kubelet configuration to file <span class="hljs-string">"/var/lib/kubelet/config.yaml"</span>
[kubelet-start] Starting the kubelet
[wait-control-plane] Waiting <span class="hljs-keyword">for</span> the kubelet to boot up the control plane as static Pods from directory <span class="hljs-string">"/etc/kubernetes/manifests"</span>
[kubelet-check] Waiting <span class="hljs-keyword">for</span> a healthy kubelet at http://127.0.0.1:10248/healthz. This can take up to 4m0s
[kubelet-check] The kubelet is healthy after 1.508544566s
[control-plane-check] Waiting <span class="hljs-keyword">for</span> healthy control plane components. This can take up to 4m0s
[control-plane-check] Checking kube-apiserver at https://10.230.66.136:6443/livez
[control-plane-check] Checking kube-controller-manager at https://127.0.0.1:10257/healthz
[control-plane-check] Checking kube-scheduler at https://127.0.0.1:10259/livez
[control-plane-check] kube-controller-manager is healthy after 8.305962353s
[control-plane-check] kube-scheduler is healthy after 12.083902309s
[control-plane-check] kube-apiserver is healthy after 16.004208401s
[upload-config] Storing the configuration used <span class="hljs-keyword">in</span> ConfigMap <span class="hljs-string">"kubeadm-config"</span> <span class="hljs-keyword">in</span> the <span class="hljs-string">"kube-system"</span> Namespace
[kubelet] Creating a ConfigMap <span class="hljs-string">"kubelet-config"</span> <span class="hljs-keyword">in</span> namespace kube-system with the configuration <span class="hljs-keyword">for</span> the kubelets <span class="hljs-keyword">in</span> the cluster
[upload-certs] Skipping phase. Please see --upload-certs
[mark-control-plane] Marking the node mdo25-master as control-plane by adding the labels: [node-role.kubernetes.io/control-plane node.kubernetes.io/exclude-from-external-load-balancers]
[mark-control-plane] Marking the node mdo25-master as control-plane by adding the taints [node-role.kubernetes.io/control-plane:NoSchedule]
[bootstrap-token] Using token: any80c.eqbktrknvek1dklk
[bootstrap-token] Configuring bootstrap tokens, cluster-info ConfigMap, RBAC Roles
[bootstrap-token] Configured RBAC rules to allow Node Bootstrap tokens to get nodes
[bootstrap-token] Configured RBAC rules to allow Node Bootstrap tokens to post CSRs <span class="hljs-keyword">in</span> order <span class="hljs-keyword">for</span> nodes to get long term certificate credentials
[bootstrap-token] Configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token
[bootstrap-token] Configured RBAC rules to allow certificate rotation <span class="hljs-keyword">for</span> all node client certificates <span class="hljs-keyword">in</span> the cluster
[bootstrap-token] Creating the <span class="hljs-string">"cluster-info"</span> ConfigMap <span class="hljs-keyword">in</span> the <span class="hljs-string">"kube-public"</span> namespace
[kubelet-finalize] Updating <span class="hljs-string">"/etc/kubernetes/kubelet.conf"</span> to point to a rotatable kubelet client certificate and key
[addons] Applied essential addon: CoreDNS
[addons] Applied essential addon: kube-proxy

Your Kubernetes control-plane has initialized successfully!

To start using your cluster, you need to run the following as a regular user:

  mkdir -p <span class="hljs-variable">$HOME</span>/.kube
  sudo cp -i /etc/kubernetes/admin.conf <span class="hljs-variable">$HOME</span>/.kube/config
  sudo chown $(id -u):$(id -g) <span class="hljs-variable">$HOME</span>/.kube/config

Alternatively, <span class="hljs-keyword">if</span> you are the root user, you can run:

  <span class="hljs-built_in">export</span> KUBECONFIG=/etc/kubernetes/admin.conf

You should now deploy a pod network to the cluster.
Run <span class="hljs-string">"kubectl apply -f [podnetwork].yaml"</span> with one of the options listed at:
  https://kubernetes.io/docs/concepts/cluster-administration/addons/

Then you can join any number of worker nodes by running the following on each as root:

kubeadm join 10.230.66.136:6443 --token any80c.eqbktrknvek1dklk \
        --discovery-token-ca-cert-hash sha256:575ef91069b8af3c00ca7f0fb91f9cf1313aaa070860ac63a3612c197448d4c5
</code></pre>
<p>ပြီးသွားရင်တော့ အထက်ပါအတိုင်းမြင်ရမည်ဖြစ်ပြီး Cluster Setup အောင်မြင်သည့်အခါ Your Kubernetes control-plane has initialized successfully! ဆိုပြီးပြနေမည်ဖြစ်သည်။ နောက်ထပ် Kubernetes Cluster ကို manage လုပ်ဖို့အတွက် Kubernetes Config ကို User Directory အောက်က <code>.kube</code> အောက်ထဲသို့ထည့်ပေးရပါမယ်။</p>
<pre><code class="lang-bash">mkdir -p <span class="hljs-variable">$HOME</span>/.kube
sudo cp -i /etc/kubernetes/admin.conf <span class="hljs-variable">$HOME</span>/.kube/config
sudo chown $(id -u):$(id -g) <span class="hljs-variable">$HOME</span>/.kube/config
<span class="hljs-built_in">export</span> KUBECONFIG=/etc/kubernetes/admin.conf
</code></pre>
<p>အဲ့ဒါဆိုရင်တော့ Cluster ရဲ့ Node Info ကိုကြည့်ဖို့အတွက် <code>kubectl get nodes</code> command လေးနဲ့ခေါ်ပြီးကြည့်ကြည့်ပါမယ်။</p>
<pre><code class="lang-bash">kubectl get nodes
NAME           STATUS     ROLES           AGE     VERSION
mdo25-master   NotReady   control-plane   6m39s   v1.33.3
</code></pre>
<p>ဒါဆိုရင်တော့ Cluster Setup လုပ်တယ့် အဆင့်က ပြီးသွားပြီဖြစ်ပါတယ်။ Status မှာ <code>NotReady</code> ဖြစ်နေတာကတော့ Container Network Interface (CNI) Plugin တွေ မသွင်းရသေးသည့်အတွက် NotReady ဖြစ်နေခြင်းဖြစ်ပါသည်။ ဒါကိုတော့ နောက်ထပ် lab တွေကျမှပဲ ပြောပြပေးသွားပါမယ်။ တခြား node တွေ ထပ် join ချင်ရင်တော့ Join ချင်တဲ့ Node မှာ Kubeadm init လုပ်ပြီးတော့ Output မှာပြထားတဲ့ အတိုင်း kubeadm join command ကိုအသုံးပြုပေးရမှာပါပဲဖြစ်ပါတယ်။</p>
<pre><code class="lang-bash">kubeadm join 10.230.66.136:6443 --token any80c.eqbktrknvek1dklk \
        --discovery-token-ca-cert-hash sha256:575ef91069b8af3c00ca7f0fb91f9cf1313aaa070860ac63a3612c197448d4c5
</code></pre>
]]></content:encoded></item><item><title><![CDATA[Creating a cluster with kubeadm - Part 2]]></title><description><![CDATA[ဒီနေ့ထပ်ပြီးတော့ Sharing လုပ်မှာကတော့ kubeadm tool နဲ့ Kubernetes Cluster Setup လုပ်မှာကို ပြောပြပေးသွားမှာပဲဖြစ်ပါတယ်။ Part 1 မှာတုန်းကတော့ Kubernetes…]]></description><link>https://blog.vitaltechmyanmar.com/creating-a-cluster-with-kubeadm-part-2</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/creating-a-cluster-with-kubeadm-part-2</guid><category><![CDATA[Kubernetes]]></category><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Wed, 23 Jul 2025 03:49:35 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1753192758044/8575886f-bb1d-4132-930a-e94d7ee3b624.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>ဒီနေ့ထပ်ပြီးတော့ Sharing လုပ်မှာကတော့ kubeadm tool နဲ့ Kubernetes Cluster Setup လုပ်မှာကို ပြောပြပေးသွားမှာပဲဖြစ်ပါတယ်။ Part 1 မှာတုန်းကတော့ Kubernetes ဆိုတာဘာလဲရယ် Kubernetes Distribution အကြောင်း တွေကို အနည်းငယ်ရှင်းပြပေးခဲ့ပါတယ်။ Part 1 ကိုမဖတ်ရသေးရင်တော့ အောက်က Link ကိုနှိပ်ပြီးတော့ သွားရောက်ဖတ်ရှုနိုင်ပါတယ်။</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://blogs.vitaltechmyanmar.com/creating-a-cluster-with-kubeadm-part-1">https://blogs.vitaltechmyanmar.com/creating-a-cluster-with-kubeadm-part-1</a></div>
<p> </p>
<h2 id="heading-installing-and-configuring-prerequisites">Installing and Configuring Prerequisites</h2>
<p>Kubernetes Cluster Setup မလုပ်ခင်မှာ လိုအပ်တဲ့ Network Configuration တွေ Cluster အတွက် လိုအပ်သည့် Container Runtime တွေကို အရင်ဆုံးဆုံးအနေနဲ့ Installing လုပ်သွားမှာပဲဖြစ်ပါတယ်။</p>
<h2 id="heading-enable-ipv4-packet-forwarding">Enable IPv4 packet forwarding</h2>
<p>Network Config အနေနဲ့ကတော့ IPv4 packet forwarding ဆိုသည့် Kernel Option တစ်ခုကို Enable လုပ်ပေးဖို့လိုအပ်ပါတယ်။ IPv4 packet forwarding မရှိခဲ့ရင် network interfaces အမျိုးစုံအကြား network traffic တွေပေးပို့တဲ့အခါမှာ အဆင်မပြေနိုင်တာတွေရှိနိုင်ပါတယ်။ ဥပမာ အနေနဲ့ ပြောရရင် pod-to-pod communication လိုဟာမျိုးတွေပေါ့။ ကျွန်တော်တို့ Cluster ရဲ့ <strong>Node A</strong> ပေါ်မှာ pod တစ်ခုရှိတယ်ပဲထားပါတော့ဗျာ။ အဲ့ဒီ <strong>Node A</strong> ရဲ့ pod ကနေ တခြား <strong>Node B</strong> မှာရှိတယ့် pod ကို packet လေးတွေပို့ချင်တယ်ဆိုပါတော့။ ဒီ packet တွေရောက်ဖို့အတွက်က IPv4 packet forwarding ကို enable လုပ်ထားမှသာ <strong>Node A</strong> ရဲ့ physical network adapter ကနေတစ်ဆင့် <strong>Node B</strong> ရဲ့ Network Adapter ကိုဖျက်ပြီးတော့ <strong>Node B</strong> ရဲ့ pod ကို packet တွေရောက်မှာဖြစ်ပါတယ်။ ဒီ IPv4 packet forwarding kernel option ကို enable လုပ်ထားမှသာ Kubernetes ထဲမှာ အသုံးပြုမယ့် Network CNI Plugin တွေအတွက်လည်းကောင်းမွန်စွာအလုပ်လုပ်မှာ ဖြစ်ပါတယ်။</p>
<pre><code class="lang-bash"><span class="hljs-comment"># sysctl params required by setup, params persist across reboots</span>
cat &lt;&lt;EOF | sudo tee /etc/sysctl.d/k8s.conf
net.ipv4.ip_forward = 1
EOF

<span class="hljs-comment"># Apply sysctl params without reboot</span>
sudo sysctl --system
</code></pre>
<p>net.ipv4.ip_forward ကို 1 ဆိုပြီး setup လုပ်လိုက်တဲ့ ပြန်ခေါ်ကြည့်လို့ output က 1 ပြန်ရတယ်ဆိုရင်တော့ ipv4 packet forwarding enable ဖြစ်နေပါပြီ။</p>
<pre><code class="lang-bash">sysctl net.ipv4.ip_forward
</code></pre>
<p><strong>Output</strong></p>
<pre><code class="lang-bash">ubuntu@mdo25-master:~$ sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
</code></pre>
<p>နောက်ထပ်အနေနဲ့ cgroups drivers ကို သတ်မှတ်ရမယ်ပေါ့နော်။ ဒါပေမယ့် cgroups drivers ကိုသီးသန့်သွားပြီး လုပ်စရာမလိုတော့ပဲ Kubernetes ရဲ့ v1.22 version ကနေစပြီးတော့ cgroup drivers နေရာမှာ ဘာမှ မသတ်မှတ်ထားခဲ့ရင် kubeadm က default အနေနဲ့ systemd ကိုအသုံးပြုသွားမယ်ဆိုတာမျိုးက ရှိတယ့်အတွက် ထွေထွေထူးထူးတော့ ဘာမှလုပ်စရာမလိုတော့ပါဘူး။ ကျွန်တော်တို့ အသုံးပြုသွားမယ့် Ubuntu Linux Distribution ကလဲ cgroup drivers အနေနဲ့က systemd ကိုပဲသုံးထားတာပဲဖြစ်တယ်။ ဒါကြောင့် cgroup drivers နဲ့ပတ်သက်ပြီးတော့ ဘာမှမသတ်မှတ်တော့ပါဘူး။</p>
<h1 id="heading-container-runtimes">Container Runtimes</h1>
<p>Container Runtimes အနေနဲ့ကတော့ ဒီ lab မှာ containerd ကိုအသုံးပြုမှာဖြစ်သည့်အတွက် containerd ကို installation လုပ်သွားမှာ ဖြစ်ပါတယ်။</p>
<h2 id="heading-containerd">Containerd</h2>
<p>Containerd ဆိုတာကတော့ ကျွန်တော်သိတယ့်အတိုင်းပဲ container တွေကို manage လုပ်ဖို့အတွက်သုံးတဲ့ tool တစ်ခုပဲဖြစ်ပါတယ်။ part 1 မှာပြောပြခဲ့အတိုင်း containerd manage လုပ်ဖို့အတွက် ctr ဆိုတယ့် cli tool နဲ့အသုံးပြုပါတယ်။ သူကတော့ docker command တွေနဲ့ အနည်းငယ် different ဖြစ်နေမည်ဖြစ်ပြီး docker က သုံးခဲ့သလိုမျိုးအသုံးပြုချင်ရင်တော့ nerdctl ဆိုတဲ့ cli tool ကိုအသုံးပြုလို့ရပါတယ်။ Kubernetes cluster တစ်ခုထဲမှာ kubelet က container runtime နဲ့ ချိတ်ဆက်ဖို့ <strong>Container Runtime Interface (CRI)</strong> ကိုသုံးပါတယ်။ အရင်တုန်းကတော့ docker ကို CRI အဖြစ် အသုံးပြုခဲ့တာဖြစ်ပြီးတော့ အခုနောက်ပိုင်းမှာတော့ containerd ကိုသာ CRI အဖြစ် native support လုပ်ပါတယ်။</p>
<pre><code class="lang-bash">sudo apt install containerd
</code></pre>
<p>containerd ကို install လုပ်တယ့်နေရာမှာ သူရဲ့ dependency ဖြစ်တယ့် runc ကိုပါတစ်ပါတည်း သွင်းသွားမည်ဖြစ်သည်။ containerd ကတော့ high-level runtime ဖြစ်ပြီးတော့ runc ကတော့ low-level runtime အနေနဲ့ ရှိပါတယ်။ containerd က စေခိုင်းသမျှကိုမှ runc အနေနဲ့ container တွေဖန်တီးတဲ့ ကိစ္စရပ်မျိုးတွေကို လုပ်ဆောင်ပေးတာပဲဖြစ်ပါတယ်။</p>
<pre><code class="lang-bash">ubuntu@mdo25-master:~$ sudo apt install containerd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  runc
The following NEW packages will be installed:
  containerd runc
0 upgraded, 2 newly installed, 0 to remove and 62 not upgraded.
Need to get 45.7 MB of archives.
After this operation, 172 MB of additional disk space will be used.
Do you want to <span class="hljs-built_in">continue</span>? [Y/n]
</code></pre>
<p>Installation လုပ်ပြီးသွားရင်တော့ containerd service လေးကောင်းမွန်စွာ အလုပ်လုပ်မလုပ်ကို စစ်ချင်သည့် အတွက်</p>
<pre><code class="lang-bash">systemctl status containerd
</code></pre>
<p>ဆိုပြီး စစ်ကြည့်ပါမယ်။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1753238827219/fc6b6aec-e400-4f56-a5c7-3881a40af8ec.png" alt class="image--center mx-auto" /></p>
<p>active (running) ဖြစ်နေပြီ ဖြစ်သည့်အတွက် containerd service က ကောင်းမွန်စွာအလုပ်လုပ်နေပြီလို့ သတ်မှတ်လို့ရပါတယ်။ containerd ကို installation လုပ်ပြီးသွားပြီဆိုတော့ နောက်ထပ်အနေနဲ့ cgroup driver တွေကို configure လုပ်ပေးဖို့လိုအပ်ပါတယ်။</p>
<h2 id="heading-configuring-cgroup-driver">Configuring cgroup driver</h2>
<p>cgroup driver ကို configuring လုပ်တဲ့နေရာမှာ ကျွန်တော်တို့ အသုံးပြုထားတဲ့ Ubuntu Linux Distribution က systemd ကိုအသုံးပြုထားတယ့်အတွက် <strong>systemd</strong> cgroup driver ကို configure လုပ်မှာပဲဖြစ်ပါတယ်။ သူရဲ့ config file လေးကတော့ <strong>/etc/containerd/config.toml</strong> ဆိုပြီးတော့သွားဆောက်ပေးမှာပဲဖြစ်ပါတယ်။ အရင်ဆုံးအနေနဲ့ /etc အောက်ထဲမှာ containerd ဆိုတယ့် directory တစ်ခုဆောက်ပေးရမှာပဲဖြစ်ပါတယ်။</p>
<pre><code class="lang-bash">sudo mkdir /etc/containerd
</code></pre>
<p>ပြီးရင်တော့ containerd config ကို create လုပ်ပါမယ်။</p>
<pre><code class="lang-bash">containerd config default &gt; /etc/containerd/config.toml
</code></pre>
<p>အထက်ပါ command ကိုအသုံးပြုပြီးသွားတဲ့ အခါမှာ /etc/containerd/config.toml ထဲမှာ config တွေ ရောက်နေမည်ဖြစ်ပါသည်။ အဲ့ထဲမှာမှ အောက်ပါပြထားတဲ့အတိုင်း SystemdCgroup နေရာမှာ false ကို true ဆိုပြီး ပြောင်းပေးရမည်ဖြစ်ပါသည်။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1753240227278/19ad7103-a360-483b-8729-902c2391c40c.png" alt class="image--center mx-auto" /></p>
<p>ပြီးသွားရင်တော့ config changes ကို containerd ကသိအောင်လို့ containerd service ကို restart ချပေးရပါမယ်။</p>
<pre><code class="lang-bash">systemctl restart containerd
</code></pre>
<p>ပြီးသွားရင်တော့ containerd service proper ပြန်အလုပ်လုပ်မလုပ်လုပ်ကို <strong>systemctl status containerd</strong> နဲ့တစ်ချက်စစ်ကြည့်ချင်ရင် စစ်ကြည့်လို့ရပါသည်။ ဘာလို့ပြန်စစ်ခိုင်းတာလဲဆိုတော့ best practice အနေနဲ့လဲ ဖြစ်အောင်တစ်ခုခု changes လုပ်ပြီးတိုင်း restart ချတဲ့အခါ service က ကောင်းမွန်စွာ အလုပ်လုပ် မလုပ်ကို သိစေနိုင်ရန်အတွက်ကြောင့် ဖြစ်ပါတယ်။</p>
<h2 id="heading-disable-swap">Disable Swap</h2>
<p>Swap Configuration အနေနဲ့ကတော့ swap ကို disable လုပ်ပေးရမှာပဲဖြစ်ပါတယ်။ node မှာ swap ကိုသာ disable မလုပ်ခဲ့ရင် kubelet service ကို run လိုက်ပြီဆိုတာနဲ့ swap memory ကို detected ဖြစ်နေတဲ့အခါ kubelet service ဟာ ကောင်းကောင်းအလုပ်မလုပ်နိုင်ပဲ fail သွားတာမျိုးတွေ ရှိတတ်ပါတယ်။ အရင်ဆုံးအနေနဲ့ swap က အလုပ်လုပ်နေလားတစ်ချက်အရင်စစ်ကြည့်ပါမယ်။</p>
<pre><code class="lang-bash">free -m
</code></pre>
<p>Output</p>
<pre><code class="lang-bash">root@mdo25-master:~<span class="hljs-comment"># free -m</span>
               total        used        free      shared  buff/cache   available
Mem:            7936         478        6866           4         843        7457
Swap:              0           0           0
</code></pre>
<p>လက်ရှိ ကျွန်တော့်ရဲ့ vm ထဲမှာတော့ swap က မသုံးထားတဲ့အတွက် ထွေထွေထူးထူး ပိတ်စရာတော့မလိုပါဘူး။ တကယ်လို့ Swap ကိုအသုံးပြုထားတယ်ဆိုရင်တော့</p>
<pre><code class="lang-bash">swap off -a
</code></pre>
<p>အထက်ပါ command ကိုအသုံးပြုပြီး swap ကို disable လုပ်နိုင်သလို <strong>/etc/fstab</strong> ထဲမှာလည်း swap memory ကို အလုပ်မလုပ်အောင် comment သွားပိတ်ပေးရပါမယ်။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1753241036883/4fb49e97-6ce0-459d-abd1-3a8b84c3765b.png" alt class="image--center mx-auto" /></p>
<h1 id="heading-installing-kubeadm-kubelet-and-kubectl">Installing kubeadm, kubelet and kubectl</h1>
<p>ဒီအဆင့်မှာတော့ Kubernetes အတွက် လိုအပ်မည့် package ကို စတင် install လုပ်မှာပဲဖြစ်ပါတယ်။</p>
<ul>
<li><p>kubeadm - ကတော့ cluster ကို bootstrap လုပ်ဖို့အတွက်အသုံးပြုရမည့် command ဖြစ်ပါတယ်။</p>
</li>
<li><p>kubelet - ကတော့ Kubernetes Cluster တစ်ခုလုံးရဲ့ အရေးကြီးဆုံးအစိတ်အပိုင်းတွေထဲက တစ်ခုဖြစ်ပြီး Node တိုင်းမှာ အလုပ်လုပ်တဲ့ service တစ်ခုဖြစ်ပါတယ်။</p>
</li>
<li><p>kubectl - ကတော့ kubernetes cluster ကို manage လုပ်ဖို့ command line utility tool ပဲဖြစ်ပါတယ်။</p>
</li>
</ul>
<p>ကျွန်တော်တို့က Kubernetes Cluster ကို Ubuntu Linux Distribution ကိုအသုံးပြုမှာဆိုတော့ Debian-based distributions တွေအတွက် Kubernetes Repo တွေကို add ပေးရပါမယ်။ ဒီ Lab မှာတော့ Kubernetes ရဲ့ latest version ဖြစ်တဲ့ v1.33 ကို အသုံးပြုမည်ဖြစ်ပါတယ်။</p>
<p>Update the <code>apt</code> package index and install packages needed to use the Kubernetes <code>apt</code> repository</p>
<pre><code class="lang-bash">sudo apt-get update
<span class="hljs-comment"># apt-transport-https may be a dummy package; if so, you can skip that package</span>
sudo apt-get install -y apt-transport-https ca-certificates curl gpg
</code></pre>
<p>Download the public signing key for the Kubernetes package repositories.</p>
<pre><code class="lang-bash"><span class="hljs-comment"># If the directory `/etc/apt/keyrings` does not exist, it should be created before the curl command, read the note below.</span>
<span class="hljs-comment"># sudo mkdir -p -m 755 /etc/apt/keyrings</span>
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.33/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
</code></pre>
<p>Add Kubernetes apt repository</p>
<pre><code class="lang-bash"><span class="hljs-built_in">echo</span> <span class="hljs-string">'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.33/deb/ /'</span> | sudo tee /etc/apt/sources.list.d/kubernetes.list
</code></pre>
<p>Update the <code>apt</code> package index, install kubelet, kubeadm and kubectl, and pin their version:</p>
<pre><code class="lang-bash">sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
sudo apt-mark hold kubelet kubeadm kubectl
</code></pre>
<p>Enable the kubelet service before running kubeadm:</p>
<pre><code class="lang-bash">sudo systemctl <span class="hljs-built_in">enable</span> --now kubelet
</code></pre>
<p>အဲ့တာဆိုရင်တော့ Kubernetes Cluster Setup လုပ်ဖို့အတွက် လိုအပ်တာတွေအကုန် installation လုပ်ပြီးပြီဖြစ်သည့်အတွက် Part 3 မှာတော့ Cluster Setup လုပ်တဲ့ဟာကို ထပ်မံရေးသားပေးသွားပါမယ်။</p>
<p>အချိန်ပေးပြီးဖတ်ရှုပေးတဲ့အတွက်ကျေးဇူးတင်ပါတယ်။</p>
]]></content:encoded></item><item><title><![CDATA[Creating a cluster with kubeadm - Part 1]]></title><description><![CDATA[ဒီနေ့ Sharing လုပ်ပေးမယ့် အကြောင်းကတော့ Kubeadm နဲ့ Kubernetes Cluster Setup လုပ်တယ့် အကြောင်းကိုပြောပြပေးသွားမှာပဲဖြစ်ပါတယ်။ အရင်ဆုံးအနေနဲ့ Cluster Setup…]]></description><link>https://blog.vitaltechmyanmar.com/creating-a-cluster-with-kubeadm-part-1</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/creating-a-cluster-with-kubeadm-part-1</guid><category><![CDATA[Kubernetes]]></category><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Tue, 22 Jul 2025 06:20:15 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1753164847254/c415a365-f3e6-4b42-99a5-8a4102e804d7.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>ဒီနေ့ Sharing လုပ်ပေးမယ့် အကြောင်းကတော့ Kubeadm နဲ့ Kubernetes Cluster Setup လုပ်တယ့် အကြောင်းကိုပြောပြပေးသွားမှာပဲဖြစ်ပါတယ်။ အရင်ဆုံးအနေနဲ့ Cluster Setup မလုပ်ခင်မှာ Kubernetes ဆိုတာဘာလဲရယ် Kubernetes Distribution အကြောင်းလေးတွေရယ်ကို အနည်းငယ်ရှင်းပြပေးသွားမှာပဲ ဖြစ်ပါတယ်။</p>
<h1 id="heading-what-is-kubernetes">What is Kubernetes?</h1>
<p>Kubernetes ကတော့ Open Source Container Orchestration Platform တစ်ခုဖြစ်ပြီး Google ကနေ Developed လုပ်ခဲ့တာပဲဖြစ်ပါတယ်။ အခုလက်ရှိမှာတော့ Kubernetes ကို <a target="_blank" href="https://www.cncf.io/"><strong>Cloud Native Computer Foundation</strong></a> <a target="_blank" href="https://www.cncf.io/">က နေ ကြီးကြပ်နေတာပဲဖြစ်ပါတယ်။</a> Kubernetes ကတော့ container orchestration tool တစ်ခုဖြစ်တယ့်အတွက် Orchestration Platform အနေနဲ့ပဲ အခြေခံပြီး ထွက်လာတာပေါ့နော်။ Container တွေကို manage လုပ်ဖို့အတွက်ကျတော့ သူ့ထဲမှာမပါဘူး။ ဒါကြောင့် Container Runtime နဲ့ပတ်သက်ပြီးတော့ Container Runtime ဖြစ်တယ့် Docker ပေါ်ကို Relies လုပ်ရတယ်ပေါ့နော်။ နောက်ပိုင်းမှာတော့ ဘာတွေဖြစ်လာလဲဆိုတော့ Kubernetes က Dockershim ကိုဖြုတ်ပြီးတော့ Containerd ကို သူရဲ့ Container Runtime အဖြစ်သုံးလာခဲ့ပါတယ်။ Kubernetes က Support လုပ်တဲ့ Container Engine မှာဆိုရင် Containerd အပြင် CRI-O ဆိုတာလဲရှိသေးတယ်။ Docker Engine ကိုပဲဆက်ပြီးအသုံးပြုချင်တယ်ဆိုရင်လဲ cri-dockerd ဆိုတယ့် tool ကို ကြားခံအသုံးပြုလို့ရပေမယ့် Containerd focus ဖြစ်တယ့်အတွက် တခြားဟာတွေတော့အများကြီးမပြောတော့ပါဘူး။</p>
<p>CRI-O ကိုတော့ Redhat က Develop လုပ်ထားတဲ့ container runtime ဖြစ်ပြီးတော့ သူကကျ containerd လိုမဟုတ်ပဲ low-level ဖြစ်တယ့် runc ကို တန်းပြီးတော့ manage လုပ်နိုင်တယ်။ ပိုပြီးတော့ lightweight ဖြစ်တယ့် runtime အနေနဲ့ ရှိနေတယ်ပေါ့နော်။ Containerd မှာဆိုရင် low-level ဖြစ်တယ့် runc ကို တိုက်ရိုက် manage မလုပ်နိုင်ပဲ containerd-shim ကနေမှတစ်ဆင့် runc ကို manage လုပ်တယ်။ runc ကနေမှ container တွေဖန်တီးတဲ့ ကိစ္စမျိုးတွေကို လုပ်ဆောင်ပေးတာပေါ့နော်။ CRI-O ကတော့ Redhat ရဲ့ Openshift မှာပဲ အဓိကသုံးတာဖြစ်တယ်။ ဒါမယ့် ကျွန်တော်တို့ Kubernetes Community Version မှာလဲ Containerd အစား CRI-O ကိုလဲ သုံးချင်ရင် သုံးလို့ရတယ်ပေါ့နော်။ ဒီမှာတော့ ကျွန်တော်တို့က Containerd ကိုပဲ သုံးသွားမှာဖြစ်တယ့်အတွက် Containerd နဲ့ပတ်သက်တာတွေပဲ ပြောပါမယ်။</p>
<p>ကျွန်တော်တို့ Environment မှာ Containerd ကိုအသုံးပြုထားတယ်ဆိုရင် containerd တွေကို manage လုပ်ဖို့အတွက် ctr ဆိုတယ့် tool ကိုအသုံးပြုပြီး manage လုပ်ရတယ်။ ctr ကတော့ containerd နဲ့ တွဲပြီးအလုပ်လုပ်တဲ့ cli tool ဖြစ်တယ်။ ဒါမယ့် သူက Docker မှာအသုံးပြုခဲ့တယ့် Command တွေနဲ့ နည်းနည်းကွဲတယ်။ Docker မှာလို manage လုပ်တဲ့ပုံစံအတိုင်းကို ctr မှာသွားပြီးတော့ သုံးလို့မရဘူး။ ဒါကြောင့် docker လိုပဲ manage လုပ်ချင်တယ်ဆိုရင်တော့ nerdctl ဆိုတယ့် tool ကိုအသုံးပြုလို့ရတယ်။ Nerdctl က Containerd ကို manage လုပ်တဲ့ docker compactible cli tool တစ်ခုဖြစ်တယ်။ အောက်မှာတော့ Nerdctl ရဲ့ github repo လေးထည့်ပေးထားပါတယ်။ အသေးစိတ်လေ့လာချင်ရင် လေ့လာလို့ရပါတယ်။</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://github.com/containerd/nerdctl">https://github.com/containerd/nerdctl</a></div>
<p> </p>
<h1 id="heading-kubernetes-distribution">Kubernetes Distribution</h1>
<p>Kubernetes Distribution တွေကတော့ အများကြီးရှိကြပါတယ်။ Enterprise မှာဆိုရင် Redhat OpenShift, Mirantis Kubernetes Engine, VMware မှာဆိုရင်လဲ Tanzu စသဖြင့်ပေါ့နော်။ Cloud မှာဆိုရင်လဲ သူ့ရဲ့ Cloud Provider ပေါ်မူတည်ပြီး Google မှာဆိုရင် GKE, AWS မှာဆိုရင် EKS, Azure မှာဆိုရင် AKS စသဖြင့်ရှိကြတယ်။ ဒါတွေကတော့ Managed Kubernetes Platform တွေပဲဖြစ်ပါတယ်။ Community Version မှာဆိုရင်တော့ ကျွန်တော်တို့ အခုအသုံးပြုမယ့် Open Source Kubernetes ပေါ့။ သူ့ကိုတော့ တစ်နည်းအားဖြင့် Vanilla Kubernetes လို့လဲခေါ်ကြတယ်။ ကျွန်တော်တို့ရဲ့ Organization မှာ Container နဲ့ပတ်သက်တဲ့ application တွေကို develop လုပ်ပြီးအသုံးပြုတော့မယ်ပေါ့နော်။ အရင်ဆုံးအနေနဲ့ စတင်ပြီးစဥ်းစားရမှာကတော့ ကျွန်တော်တို့ ဘယ် Kubernetes Distribution ကိုသုံးသင့်လဲဆိုတာမျိုးပေါ့။ ထားပါတော့ ကျွန်တော်တို့ Infrastructure မှာ Existing အနေနဲ့ VMware vSphere လိုမျိုးရှိတယ်ဆိုရင် နောက်ထပ် VMware Tanzu ကိုပဲ Add on Subscription ထပ်ဝယ်ပြီးသုံးမလားပေါ့။ ဒါမှမဟုတ် ကျွန်တော်တို့ အသုံးပြုနေတယ့် Product တွေက Redhat နဲ့ပတ်သက်ပြီး Redhat JBoss တို့ တခြား Red Hat 3scale API Management လိုဟာမျိုးတွေ သုံးထားတာမျိုးတွေရှိရင်တော့ ကျွန်တော်တို့အနေနဲ့ စဥ်းစားသင့်တာက Redhat OpenShift Container Platform လိုဟာမျိုးကို စဥ်းစားရမှာပေါ့နော်။ ဒီလိုပဲ ကျွန်တော်တို့ Product တွေက AWS မှာ သုံးထားတယ်ဆိုရင်တော့ EKS လိုမျိုး Elastic Kubernetes Service လိုဟာမျိုးကိုအသုံးပြုသင့်တယ်ပေါ့နော်။ ဒါတွေကတော့ ကိုယ့်ရဲ့ Organization nature ပေါ်မူတည်ပြီးတော့ ရွေးချယ်ရမယ့် ကိစ္စဖြစ်ပါတယ်။ ဒီလောက်ဆိုရင်တော့ Kubernetes Distribution ရွေးချယ်တာနဲ့ ပတ်သက်ပြီးသိမယ်လို့ထင်ပါတယ်။</p>
<p>ကျွန်တော်တို့က Open Source ဖြစ်တယ့် Kubernetes ကိုပဲ အသုံးပြုမှာဆိုတော့ Open Source နဲ့ပတ်သက်တာကိုပဲဆက်ပြီးတော့ သွားကြပါမယ်။ Local Kubernetes Cluster ကို Setup လုပ်ဖို့အတွက် Tool တွေကတော့ မျိုးစုံရှိတယ်ပေါ့နော်။ Minikube ဆိုတာကိုပဲသုံးမလား။ Kind ဆိုတယ့် tool ကိုပဲသုံးမလားပေါ့နော်။ Kind ကတော့ Kubernetes In Docker ပေါ့ Kubernetes Cluster Setup လုပ်တဲ့အခါမှာ Node တွေလိုတယ်။ အဲ့ဒါကိုမှ အဲ့ဒီ Node တွေကို Docker Container အနေနဲ့ ပြန်ပြီး run တဲ့ပုံစံမျိုးအနေနဲ့သုံးပါတယ်။ ကျွန်တော်တို့ အသုံးပြုမှာကတော့ Production အတွက် ready ဖြစ်တယ့် kubeadm ဆိုတယ့် tool ကိုပဲ အသုံးပြုသွားမှာပဲဖြစ်ပါတယ်။ လောလောဆယ်တော့ စာအရမ်းရှည်သွားမှာဆိုးတဲ့အတွက် ဒီလောက်နဲ့ပဲ ခဏရပ်ထားပါမယ်။ Part -2 မှာတော့ Kubeadm နဲ့ Cluster Setup လုပ်တယ့် အကြောင်းကို ထပ်ပြောပြသွားမှာပဲဖြစ်ပါတယ်။</p>
<p>အချိန်ပေးပြီးဖတ်ရှုသည့်အတွက်ကျေးဇူးတင်ပါတယ်။</p>
]]></content:encoded></item><item><title><![CDATA[Synchronization error from On-Prem (AD) to Microsoft Entra ID (Part-1)]]></title><description><![CDATA[ဒီ Topic လေးမှာတော့ On-Prem (AD) Server ကနေ Microsoft Entra ID ကို Identity တွေကို Microsoft Entra Connect ကနေ sync တဲ့အခါမှာ ဖြစ်နိုင်ခြေရှိတယ့် error…]]></description><link>https://blog.vitaltechmyanmar.com/synchronization-error-from-on-prem-ad-to-microsoft-entra-id-part-1</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/synchronization-error-from-on-prem-ad-to-microsoft-entra-id-part-1</guid><category><![CDATA[microsoft-entra-id]]></category><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Sun, 20 Apr 2025 06:51:16 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1745131616977/149dc66e-9592-434f-9744-6f8c031ca65b.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>ဒီ Topic လေးမှာတော့ On-Prem (AD) Server ကနေ Microsoft Entra ID ကို Identity တွေကို Microsoft Entra Connect ကနေ sync တဲ့အခါမှာ ဖြစ်နိုင်ခြေရှိတယ့် error တွေကို ပြောပြသွားမှာပဲဖြစ်ပါတယ်။ Microsoft Entra Connect က directories တွေကို sync တဲ့အခါမှာ three types of operations အနေနဲ့ လုပ်ဆောင်ပါတယ်။ အဲ့ဒါတွေကတော့ -</p>
<ul>
<li><p>Import</p>
</li>
<li><p>Synchronization</p>
</li>
<li><p>Export တို့ပဲဖြစ်ပါတယ်။ ဒီ section မှာအဓိကပြောပြသွားမှာကတော့ Export လုပ်နေစဥ်အတွင်းမှာဖြစ်နိုင်တယ့် error များကို ပြောပြသွားမှာပဲဖြစ်ပါတယ်။</p>
</li>
</ul>
<p>Microsoft Entra Connector ကနေ synchronization လုပ်နေစဥ် အတွင်း Identity တွေကို Microsoft Entra Id ကို export လုပ်နေချိန်မှာ error ဖြစ်နိုင်ပါတယ်။ Entra Connector မှာ name format အနေနဲ့ <a target="_blank" href="http://vitaltechmm.onmicrosoft.com">vitaltechmm.onmicrosoft.com</a> သတ်မှတ်ခဲ့ပြီးတော့ Microsoft Entra ID ကို (add, update, delete) စသည့် operation တွေကို export လုပ်နေစဥ်အတွင်းမှာ Microsoft Entra connect (Sync Engine) ရဲ့ Microsoft Entra directory failed ခြင်းကြောင့်ပဲဖြစ်ပါတယ်။ ဖြစ်နိုင်ခြေရှိတဲ့ error တွေကတော့ -</p>
<ul>
<li><p>Data mismatch errors</p>
</li>
<li><p>ObjectTypeMismatch</p>
</li>
<li><p>Duplicate attributes</p>
</li>
<li><p>Data validation failures</p>
</li>
<li><p>LargeObject တို့ပဲဖြစ်ပါတယ်။</p>
</li>
</ul>
<ol>
<li><h3 id="heading-data-mismatch-errors-invalidsoftmatch">Data Mismatch Errors (InvalidSoftMatch)</h3>
</li>
</ol>
<p>Microsoft Entra Connect (sync engine) ကနေမှ directory object တွေကို Local AD ကနေ Entra ID ကို add or update စတဲ့ အလုပ်တွေကို instruction စပေးတယ်ပေါ့ဗျာ။ Sync လုပ်လိုက်တဲ့အချိန်မှာ Local AD က sourceAnchor attribute နဲ့ Microsoft Entra ID မှာရှိတဲ့ object ရဲ့ ImmutableId attribute နှစ်ခုကို တိုက်စစ်ပြီး match ဖြစ်သွားတယ်ပေါ့ဗျာ။ အဲ့လိုဖြစ်သွားတာမျိုးကို Hard Match လို့ခေါ်ပါတယ်။ Hard Match ဖြစ်သွားရင်တော့ Entra Connect က existing Entra Id object ကို update လုပ်ပါမယ်။</p>
<p>နောက်ထပ် အနေနဲ့ Microsoft Entra ID ကိုရောက်လာတဲ့ sourceAnchor attribute နဲ့ immutalbleId attribute ကို Hard Match လုပ်တယ်ပေါ့ဗျာ။ ဒါပေမယ့် any object တိုင်းမှာ match ဖြစ်နေတာကို ရှာမတွေ့တဲ့အခါ နောက်ထပ်အနေနဲ့ ProxyAddresses နဲ့ UserPrincipalName attributes တွေ match ဖြစ်မဖြစ်ထပ်ရှာတယ်။ Soft Match ဖြစ်သွားတဲ့အခါမှာလဲ Entra Connect က existing Entra ID object နဲ့ on-premises AD object ကို link လုပ်ဖို့ ကြိုးစားတယ်။ အဲ့ဒါကိုကျတော့ Soft Match လို့ခေါ်ပါတယ်။</p>
<p>InvalidSoftMatch Error ဖြစ်ရသည့် အကြောင်းရင်း ကတော့ Example - <a target="_blank" href="mailto:johndoe@vitaltechmm.com">johndoe@vitaltechmm.com</a> ဆိုတဲ့ user ကို Entra ID မှာ manually create လုပ်ထားတယ်ပေါ့ဗျာ။ On-Prem AD မှာ <a target="_blank" href="mailto:johndoe@vitaltechmm.com">johndoe@vitaltechmm.com</a> ဆိုတဲ့ user ကရှိနေတယ်။ အဲ့ဒီ user ကို sync တဲ့အခါမှာ Entra ID မှာရှိတယ့် johndoe user နဲ့ email address တူနေပါလိမ့်မယ်။ အဲ့ဒါကြောင့် Hard Match ဖြစ်မှာမဟုတ်ဘူး။ ဘာလို့လဲဆိုတော့ sourceAnchor နဲ့ immutableId မတူတဲ့အတွက်ကြောင့်ပဲဖြစ်ပါတယ်။ ဒါကြောင့်မလို့ သူက Soft Match လုပ်ဖို့ ထပ်ကြိုးစားပါလိမ့်မယ်။ အဲ့မှာတော့ UserPrincipalName(UPN) or ProxyAddresses တွေက တူနေတယ့်အတွက် soft match ဖြစ်လိမ့်မယ်။ ဒါပေမယ့် sourceAnchor နဲ့ immutableId က မတူတဲ့အတွက် InvalidSoftMatch error ဖြစ်ရခြင်းပဲဖြစ်ပါတယ်။</p>
<p>Entra Connect က တူညီတဲ့ Entra ID object နဲ့ on-premises AD object ကို link မလုပ်နိုင်ဘူး။ ဒါကြောင့် duplicate user ဖြစ်နိုင်တယ် (Entra ID မှာ manually create ထားတဲ့ user နဲ့ sync လုပ်လာတဲ့ user နှစ်ခု ဖြစ်နေပါလိမ့်မယ်)။</p>
<h3 id="heading-how-to-fix-invalidsoftmatch-error">How To Fix InvalidSoftMatch Error</h3>
<p>Entra ID မှာ manually create ထားတဲ့ user ကို delete လုပ်ပြီး sync ပြန်လုပ်ပါ။ ဒါမှမဟုတ် User ကို delete မလုပ်ချင်ရင်တော့ On-premises AD user ရဲ့ sourceAnchor ကို Entra ID user ရဲ့ immutableId နဲ့တူအောင် လုပ်ပါ။ ဒါမှ Hard Match ဖြစ်ပြီးတော့ InvalidSoftMatch error မဖြစ်တော့ပါဘူး။</p>
<p>အချိန်ပေးပြီး ဖတ်ရှုပေးသည့်အတွက်လည်း ကျေးဇူးတင်ပါတယ်ခင်ဗျ။ ကျန်တဲ့ Error Type ကိုတော့ နောက်ထပ် blog တွေမှာ ထပ်ရေးသွားပေးပါ့မယ်ခင်ဗျ။</p>
<p>Author By: <a class="user-mention" href="https://hashnode.com/@sc3p73r">Sc3p73R</a></p>
<p>Reference: Microsoft Documentation</p>
]]></content:encoded></item><item><title><![CDATA[Deploy Falcon Sensor for Linux with a Helm chart]]></title><description><![CDATA[အားလုံးပဲ မင်္ဂလာပါခင်ဗျာ။ ဒီနေ့မှာတော့ ကျွန်တော်တို့ရဲ့ kubernetes cluster ထဲကို CrowdStrike Falcon Sensor ကို installation လုပ်တဲ့အကြောင်းကို…]]></description><link>https://blog.vitaltechmyanmar.com/deploy-falcon-sensor-for-linux-with-a-helm-chart</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/deploy-falcon-sensor-for-linux-with-a-helm-chart</guid><category><![CDATA[Kubernetes]]></category><category><![CDATA[Linux]]></category><category><![CDATA[CrowdStrike falcon sensor]]></category><dc:creator><![CDATA[Sc3p73R]]></dc:creator><pubDate>Mon, 02 Dec 2024 08:37:17 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1733128719134/7a90319f-4f75-45ce-8fa1-85cb865e17bc.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>အားလုံးပဲ မင်္ဂလာပါခင်ဗျာ။ ဒီနေ့မှာတော့ ကျွန်တော်တို့ရဲ့ kubernetes cluster ထဲကို CrowdStrike Falcon Sensor ကို installation လုပ်တဲ့အကြောင်းကို ပြောပြပေးမှာပဲဖြစ်ပါတယ်။</p>
<h2 id="heading-overview">Overview</h2>
<p>CrowdStrike Falcon Sensor ကို ဒီ lab မှာတော့ Helm Chart ကိုအသုံးပြုပြီး install လုပ်မှာဖြစ်ပါတယ်။ Helm Chart ကတော့ kubernetes ပေါ်တွင် falcon sensor install လုပ်ရန် အတွက် လိုအပ်တဲ့ kubernetes resource တွေကို pre-configured လုပ်ပေးထားမည်ဖြစ်ပြီးတော့ helm chart နဲ့ installation လုပ်သည့်အခါတွင် falcon-sensor pod လေးကတော့ Daemonset အနေနဲ့ run သွားမှာပဲဖြစ်ပါတယ်။ ဒီနေရာမှာတော့ Helm တို့ Daemonset အကြောင်းတွေကိုတော့ ပြောသွားတော့မှာမဟုတ်ပါဘူး။</p>
<h3 id="heading-prerequisites">Prerequisites</h3>
<p>Prerequisites အနေကတော့ အောက်ပါအတိုင်းပဲဖြစ်ပါသည်။</p>
<ul>
<li><p>you have Helm 3.x or later installed</p>
</li>
<li><p>your kubernetes cluster nodes are either x86_64 or ARM64, but not both</p>
</li>
<li><p>your kubernetes vendor supports Helm 3</p>
</li>
<li><p>you must be a cluster administrator to deploy a Helm chart to the cluster.</p>
</li>
<li><p>By default, the Helm chart is installed in the default namespace. Best practice is to create a new namespace. See Install the chart archive for info.</p>
</li>
<li><p>The Falcon sensor for Linux as a DaemonSet should be used as the container image to deploy to a Kubernetes node.</p>
</li>
<li><p>The Falcon sensor for Linux as a DaemonSet must run as a privileged container so that the sensor can access the kernel.</p>
</li>
<li><p>The Falcon sensor for Linux as a DaemonSet should be deployed to a Kubernetes environment that grants node access or installation via a Kubernetes DaemonSet.</p>
</li>
<li><p>The Falcon sensor for Linux as a DaemonSet creates <mark>/opt/CrowdStrike</mark> on the Kubernetes nodes. Do not delete this folder.</p>
</li>
</ul>
<p>နောက်ထပ်သိရမှာကတော့ CrowdStrike က Region ပေါ်အခြေခံပြီးတော့ သူ့ရဲ့ Cloud Domain URL တွေကလည်းမတူညီပါဘူး။ ဒါတွေကိုသိအောင်လို့ ကျွန်တော်အောက်မှာ List လုပ်ပေးထားပါတယ်။</p>
<p>Cloud domains for US-1</p>
<pre><code class="lang-plaintext">ts01-b.cloudsink.net
lfodown01-b.cloudsink.net
lfoup01-b.cloudsink.net
https://falcon.crowdstrike.com
https://assets.falcon.crowdstrike.com
https://assets-public.falcon.crowdstrike.com
https://api.crowdstrike.com
https://firehose.crowdstrike.com
</code></pre>
<p>CrowdStrike Cloud US-2 domains</p>
<pre><code class="lang-plaintext">ts01-gyr-maverick.cloudsink.net
lfodown01-gyr-maverick.cloudsink.net
lfoup01-gyr-maverick.cloudsink.net
https://falcon.us-2.crowdstrike.com
https://assets.falcon.us-2.crowdstrike.com
https://assets-public.falcon.us-2.crowdstrike.com
https://api.us-2.crowdstrike.com
https://firehose.us-2.crowdstrike.com
</code></pre>
<p>CrowdStrike Cloud EU-1 domains</p>
<pre><code class="lang-plaintext">ts01-lanner-lion.cloudsink.net
lfodown01-lanner-lion.cloudsink.net
lfoup01-lanner-lion.cloudsink.net
https://falcon.eu-1.crowdstrike.com
https://assets.falcon.eu-1.crowdstrike.com
https://assets-public.falcon.eu-1.crowdstrike.com
https://api.eu-1.crowdstrike.com
https://firehose.eu-1.crowdstrike.com
</code></pre>
<p>CrowdStrike Cloud US-GOV-1 domains</p>
<pre><code class="lang-plaintext">ts01-laggar-gcw.cloudsink.net
sensorproxy-laggar-g-524628337.us-gov-west-1.elb.amazonaws.com
lfodown01-laggar-gcw.cloudsink.net
ELB-Laggar-P-LFO-DOWNLOAD-1265997121.us-gov-west-1.elb.amazonaws.com
https://falcon.laggar.gcw.crowdstrike.com
laggar-falconui01-g-245478519.us-gov-west-1.elb.amazonaws.com
https://api.laggar.gcw.crowdstrike.com
https://firehose.laggar.gcw.crowdstrike.com
falconhose-laggar01-g-720386815.us-gov-west-1.elb.amazonaws.com
</code></pre>
<p>CrowdStrike Cloud US-GOV-2 domains</p>
<pre><code class="lang-plaintext">ts01-us-gov-2.cloudsink.crowdstrike.mil
lfodown01-us-gov-2.cloudsink.crowdstrike.mil
https://falcon.us-gov-2.crowdstrike.mil
https://api.us-gov-2.crowdstrike.mil
https://firehose.us-gov-2.crowdstrike.mil
</code></pre>
<p>တို့ပဲဖြစ်ပါတယ်။</p>
<h2 id="heading-multi-architecture-sensor-image">Multi-architecture sensor image</h2>
<p>CrowdStrike ရဲ့ Falcon Sensor ကတော့ Linux image version 7.15 နဲ့ နောက်ပိုင်းတွေမှာတော့ Multi-Architecture နဲ့လုပ်ထားတဲ့ image တွေဖြစ်လာပါတယ်။ ဆိုလိုရင်းကတော့ Falcon Sensor ရဲ့ ဒီ Image တစ်ခုတည်းကိုပဲ x86_64 and aarch64 nodes တွေပေါ်မှာ တစ်ပြိုင်နက်အသုံးပြုလို့ရလာတာပဲဖြစ်ပါတယ်။ နမူနာအနေနဲ့ အောက်မှာ Linux image version 7.15 နဲ့ 7.14 ကို ယှဥ်ပြပေးထားပါတယ်။</p>
<p><strong>The Falcon sensor for Linux Image 7.15 and later</strong></p>
<p>Syntax: <code>falcon-sensor:&lt;release_number&gt;-&lt;build_number&gt;-&lt;baseImage_number&gt;.falcon-linux.Release.&lt;cloud-env&gt;</code></p>
<p>Example: <code>falcon-sensor:</code><a target="_blank" href="http://7.15.0-15501-1.falcon-linux.Release.US"><code>7.15.0-15501-1.falcon-linux.Release.US</code></a><code>-1</code></p>
<p><strong>The Falcon sensor for Linux Image 7.14 and earlier</strong></p>
<p>Syntax: <code>falcon-sensor:&lt;release_number&gt;-&lt;build_number&gt;-&lt;baseImage_number&gt;.falcon-linux.&lt;architecture&gt;.Release.&lt;cloud-env&gt;</code></p>
<p>Example: <code>falcon-sensor:7.14.0-14401-1.falcon-linux.x86_</code><a target="_blank" href="http://64.Release.US"><code>64.Release.US</code></a><code>-1</code></p>
<p>Example အတိုင်း 7.14 နဲ့ အစောပိုင်း version တွေဆိုရင် falcon sensor image တွေကို x86_64 Architecture အတွက်ဆို release သပ်သပ် aarch64 အတွက်ဆို release သပ်သပ်ထုတ်ခဲ့ပါတယ်။ 7.15 version ကနေစပြီးတော့ falcon sensor image တွေကို သပ်သပ်မထုတ်တော့ပဲ multi-architecture အဆင်ပြေအောင် ထုတ်ခဲ့တာပဲဖြစ်ပါတယ်။</p>
<h2 id="heading-deploy-with-helm">Deploy with Helm</h2>
<p>Step 1: Create an API client ID and secret</p>
<p>အရင်ဆုံး အနေနဲ့ CrowdStrike falcon sensor ရဲ့ image ကို pull လို့ရဖို့အတွက် ကျွန်တော်တို့ရဲ့ CrowdStrike Portal ထဲကနေ API client id နဲ့ secret ကို create လုပ်ပေးရမှာပဲဖြစ်ပါတယ်။ ဘယ်မှာသွား create ရမလဲဆိုတော့ <a target="_blank" href="https://falcon.crowdstrike.com/login/">https://falcon.crowdstrike.com</a> ထဲကို ဝင်ပြီးတော့ <strong>Support and resources &gt; Resources and tools &gt; API clients and keys</strong> ထဲမှာ အသစ် create လုပ်ပေးရပါမယ်။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1733124148760/54733478-b2f5-476a-988e-6c1dc569a3fa.png" alt class="image--center mx-auto" /></p>
<p>ရလာတဲ့ api clients and keys ကို မှတ်ထားပြီးတော့ ကျွန်တော်တို့ရဲ့ စက်ထဲမှာပဲ environment variables ကြေညာပေးရမှာဖြစ်ပါတယ်။</p>
<p><code>export FALCON_CLIENT_ID=&lt;YOUR_FALCON_CLIENT_ID&gt;</code></p>
<p><code>export FALCON_CLIENT_SECRET=&lt;YOUR_FALCON_CLIENT_SECRET&gt;</code></p>
<p>Step 2: Get your CID with checksum</p>
<p>နောက်တစ်ဆင့်အနေနဲ့ Falcon console ထဲကနေပဲ Customer ID checksum ကိုသွားယူပြီး variable အဖြစ်ကြေညာပေးရမှာပဲဖြစ်ပါတယ်။</p>
<p><code>export FALCON_CID=&lt;YOUR_CID_WITH_CHECKSUM&gt;</code></p>
<h2 id="heading-pull-the-image-from-the-crowdstrike-registry">Pull the image from the CrowdStrike registry</h2>
<p>နောက်ထပ်အနေနဲ့ CrowdStrike registry က falcon-sensor image ကို pullလုပ်ရမှာပဲဖြစ်ပါတယ်။</p>
<pre><code class="lang-bash">curl -sSL -o falcon-container-sensor-pull.sh <span class="hljs-string">"https://raw.githubusercontent.com/CrowdStrike/falcon-scripts/main/bash/containers/falcon-container-sensor-pull/falcon-container-sensor-pull.sh"</span>
chmod +x falcon-container-sensor-pull.sh
</code></pre>
<p>ပြီးသွားရင်တော့ ကျွန်တော်တို့စက်ထဲရောက်လာသည့် <code>falcon-container-sensor-pull.sh</code> script လေးကို အောက်ပါအတိုင်း run ပေးရပါမယ်။</p>
<pre><code class="lang-bash">./falcon-container-sensor-pull.sh \
  -u <span class="hljs-variable">$FALCON_CLIENT_ID</span> \
  -s <span class="hljs-variable">$FALCON_CLIENT_SECRET</span> \
  --list-tags \
  -t falcon-sensor
</code></pre>
<p>အဲ့တာဆိုရင်တော့ OUTPUT အနေနဲ့</p>
<pre><code class="lang-bash">{
  <span class="hljs-string">"name"</span> : <span class="hljs-string">"falcon-sensor"</span>,
  <span class="hljs-string">"tags"</span> : [ <span class="hljs-string">"6.35.0-13206.falcon-linux.x86_64.Release.US-2"</span>, 
… 
<span class="hljs-string">"7.15.0-15501-1.falcon-linux.Release.US-2"</span> ]
}
</code></pre>
<p>အခုလိုမျိုးပြမှာပဲဖြစ်ပါတယ်။</p>
<p>နောက်ထပ်အနေနဲ့ CrowdStrike registry နဲ့ image tag တို့ကို variable အနေနဲ့ သတ်မှတ်ပေးရမှာဖြစ်ပါတယ်။</p>
<p>Set variables for the CrowdStrike registry and the image tag:</p>
<pre><code class="lang-bash"><span class="hljs-built_in">export</span> FALCON_IMAGE_REPO=registry.crowdstrike.com/falcon-sensor/&lt;cloud_tag&gt;/release/falcon-sensor
<span class="hljs-built_in">export</span> FALCON_IMAGE_TAG=7.15.0-15501-1.falcon-linux.Release.&lt;cloud_region&gt;
</code></pre>
<p><strong>Note</strong>: &lt;cloud_tag&gt; မှာတော့ မိမိရဲ့ crowdstrike cloud domain ကိုထည့်ပေးရမည်ဖြစ်ပါသည်။ region အလိုက် &lt;cloud_tag&gt; တွေက ကွဲမှာဖြစ်ပြီးတော့ us-1, us-2, eu-1, govcloud စသဖြင့် မိမိ region အလိုက်ထည့်ပေးရမှာပဲ ဖြစ်ပါတယ်။ &lt;cloud_region&gt; လဲထိုနည်းတူစွာပါပဲ &lt;cloud_region&gt; မှာ သူရဲ့သက်ဆိုင်ရာ region - US-1, US-2, EU-1, GOV-1 တို့ကို ထည့်ပေးရပါမယ်။ ကျွန်တော်ကတော့ ပုံပါအတိုင်း US-2 region ဖြစ်တယ့်အတွက် &lt;cloud_tag&gt; နေရာမှာ <code>us-2</code> ကို ထည့်ပေးရမည်ဖြစ်ပြီး &lt;cloud_region&gt; နေရာမှာ <code>US-2</code> ဆိုပြီး change ပေးရမှာပဲဖြစ်ပါတယ်။</p>
<p>အပေါ်က variable သတ်မှတ်ခဲ့တယ့် အဆင့်တွေ အကုန်လုပ်ဆောင်ပြီးရင်တော့ CrowdStrike registry ကနေ image ကို directly pull လုပ်လို့ရဖို့အတွက် pull token တွေကို create လုပ်ပေးရမှာပဲဖြစ်ပါတယ်။</p>
<p>Set variables for the CrowdStrike registry:</p>
<pre><code class="lang-bash">./falcon-container-sensor-pull.sh \
-u <span class="hljs-variable">$FALCON_CLIENT_ID</span> \
-s <span class="hljs-variable">$FALCON_CLIENT_SECRET</span> \
--dump-credentials
</code></pre>
<p>အခုလိုမျိုး run လိုက်တာနဲ့ Output အနေနဲ့ CrowdStrike registry username နဲ့ password ရမှာပဲဖြစ်ပါတယ်။</p>
<p>OUTPUT</p>
<pre><code class="lang-plaintext">CSRegistryUsername:fc-&lt;userName&gt;
CSRegistryPassword:ABC...123
</code></pre>
<p>အဲ့ဒီရလာတဲ့ registry Username နဲ့ Password ကို Image Pull လို့ရဖို့အတွက် variables သတ်မှတ်ပေးရမှာပဲဖြစ်ပါတယ်။</p>
<p>Create the pull token to pull images directly from the CrowdStrike registry:</p>
<pre><code class="lang-bash"><span class="hljs-built_in">export</span> PARTIALPULLTOKEN=$(<span class="hljs-built_in">echo</span> -n <span class="hljs-string">"<span class="hljs-variable">$FALCON_ART_USERNAME</span>:<span class="hljs-variable">$FALCON_ART_PASSWORD</span>"</span> | base64 -w 0)
<span class="hljs-built_in">export</span> FALCON_IMAGE_PULL_TOKEN=$(<span class="hljs-built_in">echo</span> <span class="hljs-string">"{\"auths\":{\"registry.crowdstrike.com\":{\"auth\":\"<span class="hljs-variable">$PARTIALPULLTOKEN</span>\"}}}"</span> | base64 -w 0)
</code></pre>
<p><strong>Note:</strong> The pull token for the CrowdStrike registry does not expire.</p>
<p><strong>Step 4: Add the CrowdStrike Helm chart client</strong></p>
<p>နောက်တစ်ဆင့်အနေနဲ့ CrowdStrike ရဲ့ Helm Chart repo ကိုထည့်သွင်းပေးရမှာဖြစ်ပါတယ်။</p>
<pre><code class="lang-bash">helm repo add crowdstrike https://crowdstrike.github.io/falcon-helm
helm repo update
helm repo list
</code></pre>
<p>helm repo list လုပ်ကြည့်လိုက်တာနဲ့ crowdstrike repo ကိုမြင်နေရမှာပဲဖြစ်ပါတယ်။</p>
<pre><code class="lang-plaintext">NAME         URL
crowdstrike  https://crowdstrike.github.io/falcon-helm
</code></pre>
<p>နောက်ထပ် Falcon sensor repo ကို variables သတ်မှတ်ပေးရပါမယ်။</p>
<p>Set a variable for the Falcon sensor Helm chart:</p>
<pre><code class="lang-bash"><span class="hljs-built_in">export</span> FALCON_SENSOR_REPO=crowdstrike/falcon-sensor
</code></pre>
<p><strong>Step 5: Install the Falcon sensor on your cluster</strong></p>
<p>အပေါ်ကအဆင့်တွေအားလုံးပြီးသွားပြီဆိုရင်တော့ Falcon sensor ကို ကျွန်တော်တို့ရဲ့ kubernetes cluster ထဲမှာ Install လုပ်လို့ရပီပဲဖြစ်ပါတယ်။</p>
<p>Create a namespace for the sensor and set the security context:</p>
<pre><code class="lang-bash"><span class="hljs-built_in">export</span> FALCON_NAMESPACE=falcon-system
kubectl create namespace <span class="hljs-variable">$FALCON_NAMESPACE</span>
kubectl label ns --overwrite <span class="hljs-variable">$FALCON_NAMESPACE</span> pod-security.kubernetes.io/enforce=privileged
</code></pre>
<p>နောက်ထပ်တစ်ဆင့်အနေနဲ့ pod တွေကို label ထိုးပေးမှာပဲဖြစ်ပါတယ်။ ဒါကတော့ Optional ဖြစ်ပြီးတော့ namespace ထဲမှာရှိနေတဲ့ pod တွေကို specific configuration နဲ့ resources တွေအတွက်ကို policies တွေသတ်မှတ်ရလွယ်ကူစေမှာပဲဖြစ်ပါတယ်။</p>
<p>Install the Falcon sensor in the namespace:</p>
<pre><code class="lang-bash">helm install falcon-sensor <span class="hljs-variable">$FALCON_SENSOR_REPO</span> \
  -n <span class="hljs-variable">$FALCON_NAMESPACE</span> \
  --<span class="hljs-built_in">set</span> falcon.cid=<span class="hljs-variable">$FALCON_CID</span> \
  --<span class="hljs-built_in">set</span> node.image.repository=<span class="hljs-variable">$FALCON_IMAGE_REPO</span> \
  --<span class="hljs-built_in">set</span> node.image.tag=<span class="hljs-variable">$FALCON_IMAGE_TAG</span> \
  --<span class="hljs-built_in">set</span> node.image.registryConfigJSON=<span class="hljs-variable">$FALCON_IMAGE_PULL_TOKEN</span>
</code></pre>
<p>Install လုပ်တာ successfully ဖြစ်ရင်တော့ အောက်ပါအတိုင်း output ရမှာပဲဖြစ်ပါတယ်။</p>
<pre><code class="lang-plaintext">NAME: falcon-sensor
LAST DEPLOYED: Wed Oct 11 14:20:01 2023
NAMESPACE: falcon-sensor
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Thank you for installing the CrowdStrike Falcon Helm Chart!
Access to the Falcon Linux and Container Sensor downloads at registry.crowdstrike.com are
required to complete the install of this Helm chart. If an internal registry is used instead of registry.crowdstrike.com.
the containerized sensor must be present in a container registry accessible from Kubernetes installation.
CrowdStrike Falcon sensors will deploy across all nodes in your Kubernetes cluster after
installing this Helm chart. The default image name to deploy a kernel sensor to a node is `falcon-node-sensor`.
When utilizing your own registry, an extremely common error on installation is accidentally forgetting to add your containerized
sensor to your local image registry prior to executing `helm install`. Please read the Helm Chart's readme
for more deployment considerations.
</code></pre>
<p>အဲ့တာဆိုရင်တော့ falcon-sensor pod တွေ running ဖြစ်မဖြစ်သိအောင်လို့ စစ်ကြည့်ပါမယ်။</p>
<pre><code class="lang-bash">kubectl get pod -n falcon-system
</code></pre>
<p>Output:</p>
<pre><code class="lang-plaintext">kubectl get pod -n falcon-system
NAME                  READY   STATUS    RESTARTS       AGE
falcon-sensor-2z8nf   1/1     Running   13 (66d ago)   120d
falcon-sensor-ckz89   1/1     Running   9 (66d ago)    120d
falcon-sensor-nfjk2   1/1     Running   7 (66d ago)    120d
falcon-sensor-wvz85   1/1     Running   9 (66d ago)    120d
falcon-sensor-zpjn2   1/1     Running   1 (66d ago)    112d
</code></pre>
<p>running ဖြစ်နေပီဆိုတော့ ကျွန်တော်တို့ ရဲ့ deployment state ကအောင်မြင်သွားပီပဲဖြစ်ပါတယ်။</p>
<p>ကျွန်တော်ရေးခဲ့တာ အမှားများပါခဲ့ရင်လဲ လာရောက်ပြောကြားနိုင်ပါတယ်ခင်ဗျ။ အားလုံးပဲ အချိန်ပေးပြီးဖတ်ရှုပေးတယ့်အတွက်ကျေးဇူးတင်ပါတယ်။</p>
<p>Author By: <a class="user-mention" href="https://hashnode.com/@sc3p73r">Sc3p73R</a></p>
<p>Reference: CrowdStrike Documentation</p>
]]></content:encoded></item><item><title><![CDATA[CCNA LAB SVI DHCP server VTP Root guard BPDU filter Inter VLAN routing 802.1Q and RSTP]]></title><description><![CDATA[LAB Diagram Configure the topology as per the diagram Configure VLAN_10 VLAN_20 VLAN_30 on Core_SW Configure 802.1Q Trunk Link Between Access Switches and…]]></description><link>https://blog.vitaltechmyanmar.com/ccna-lab-svi-dhcp-server-vtp-root-guard-bpdu-filter-inter-vlan-routing-8021q-and-rstp</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/ccna-lab-svi-dhcp-server-vtp-root-guard-bpdu-filter-inter-vlan-routing-8021q-and-rstp</guid><category><![CDATA[networking]]></category><category><![CDATA[ccna]]></category><category><![CDATA[VLAN Trunking Protocol]]></category><dc:creator><![CDATA[ko thu]]></dc:creator><pubDate>Mon, 21 Oct 2024 07:22:15 GMT</pubDate><content:encoded><![CDATA[<p><strong>LAB Diagram</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729483125386/485aa8b9-2d0e-4913-9268-b887399cf128.png" alt class="image--center mx-auto" /></p>
<p><strong>Configure the topology as per the diagram</strong></p>
<p><strong>Configure VLAN_10 VLAN_20 VLAN_30 on Core_SW</strong></p>
<p><strong>Configure 802.1Q Trunk Link Between Access Switches and Core_SW</strong></p>
<p><strong>Configure VTP version 2 on Core_SW</strong></p>
<p><strong>Configure VTP domain name lab.com</strong></p>
<p><strong>Make sure rest of the switches will get this information</strong></p>
<p><strong>Configure the ports into their VLAN as per the topology</strong></p>
<p><strong>Configure the IP address to VLANs for inter VLAN routing</strong></p>
<p><strong>IP 10.10.10.0/24 to VLAN 10</strong></p>
<p><strong>IP 20.20.20.0/24 to VLAN 20</strong></p>
<p><strong>IP 30.30.30.0/24 to VLAN 30</strong></p>
<p><strong>Configure DHCP server for VLAN 10,20,30 on Core_SW</strong></p>
<p><code>CORE_SW#show interfaces trunk</code></p>
<p><code>Core_SW(config)#interface range Gi 0/0-3</code></p>
<p><code>Core_SW(config-if-range)#switchport trunk encapsulation dot1q</code></p>
<p><code>Core_SW(config-if-range)#switchport mode trunk</code></p>
<p><code>Core_SW(config-if-range)#switchport nonegotiate</code></p>
<p><code>Core_SW(config-if-range)#switchport trunk allowed vlan 10,20,30</code></p>
<p><code>Core_SW(config-if-range)#switchport trunk native vlan 999</code></p>
<p><code>Core_SW(config-if-range)#exit</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729484158701/98baf5b3-4cc5-4266-bfbe-ec409b1d344b.png" alt /></p>
<p><code>FLOOR_1(config)#interface Gi 0/0</code></p>
<p><code>FLOOR_1(config-if)#switchport trunk encapsulation dot1q</code></p>
<p><code>FLOOR_1(config-if)#switchport mode trunk</code></p>
<p><code>FLOOR_1(config-if)#switchport nonegotiate</code></p>
<p><code>FLOOR_1(config-if)#switchport trunk allowed vlan 10,20,30</code></p>
<p><code>FLOOR_1(config-if)#switchport trunk native vlan 999</code></p>
<p><code>FLOOR_1(config-if)#exit</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729485888036/d0380af4-dc42-4b06-bf70-c6058682ad5c.png" alt /></p>
<p><code>FLOOR_2(config)#interface Gi 0/0</code></p>
<p><code>FLOOR_2(config-if)#switchport trunk encapsulation dot1q</code></p>
<p><code>FLOOR_2(config-if)#switchport mode trunk</code></p>
<p><code>FLOOR_2(config-if)#switchport nonegotiate</code></p>
<p><code>FLOOR_2(config-if)#switchport trunk allowed vlan 10,20,30</code></p>
<p><code>FLOOR_2(config-if)#switchport trunk native vlan 999</code></p>
<p><code>FLOOR_2(config-if)#exit</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729485934381/cead13a6-7870-4b86-8a8e-597360e7f9aa.png" alt /></p>
<p><code>FLOOR_3(config)#interface Gi 0/0</code></p>
<p><code>FLOOR_3(config-if)#switchport trunk encapsulation dot1q</code></p>
<p><code>FLOOR_3(config-if)#switchport mode trunk</code></p>
<p><code>FLOOR_3(config-if)#switchport nonegotiate</code></p>
<p><code>FLOOR_3(config-if)#switchport trunk allowed vlan 10,20,30</code></p>
<p><code>FLOOR_3(config-if)#switchport trunk native vlan 999</code></p>
<p><code>FLOOR_3(config-if)#exit</code></p>
<p><code>Core_SW(config)#VTP domain lab.com</code><br />Domain name already set to lab.com<br /><code>Core_SW(config)#VTP mode server</code></p>
<p><code>Core_SW(config)#VTP version 2</code></p>
<p><code>Core_SW(config)#end</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729486167974/9ea58a90-c21d-4b14-a847-cf0a61c8c0d1.png" alt class="image--center mx-auto" /></p>
<p><code>FLOOR_1(config)#VTP domain lab.com</code><br />Domain name already set to lab.com<br /><code>FLOOR_1(config)#VTP mode client</code></p>
<p><code>FLOOR_1(config)#VTP version 2</code></p>
<p><code>FLOOR_1(config)#end</code></p>
<p><code>FLOOR_2(config)#VTP domain lab.com</code><br />Domain name already set to lab.com</p>
<p><code>FLOOR_2(config)#VTP mode client</code></p>
<p><code>FLOOR_2(config)#VTP version 2</code></p>
<p><code>FLOOR_2(config)#end</code></p>
<p><code>FLOOR_3(config)#VTP domain lab.com</code><br />Domain name already set to lab.com</p>
<p><code>FLOOR_3(config)#VTP mode client</code></p>
<p><code>FLOOR_3(config)#VTP version 2</code></p>
<p><code>FLOOR_3(config)#end</code></p>
<p><code>Core_SW(config)#vlan 10</code></p>
<p><code>Core_SW(config-vlan)#vlan 20</code></p>
<p><code>Core_SW(config-vlan)#vlan 30</code></p>
<p><code>Core_SW(config-vlan)#exit</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729486672009/bd2a7e1d-f863-43d7-8b16-548ac6f58cdf.png" alt /></p>
<p><code>FLOOR_1(config)#interface range gi 0/1-2</code></p>
<p><code>FLOOR_1(config-if-range)#switchport mode access</code></p>
<p><code>FLOOR_1(config-if-range)#switchport access vlan 10</code></p>
<p><code>FLOOR_1(config-if-range)#exit</code></p>
<p><code>FLOOR_1(config)#end</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729486942747/9781932d-5219-44be-b3a1-c5448e965a6e.png" alt class="image--center mx-auto" /></p>
<p><code>FLOOR_2(config)#interface range gi 0/1-2</code></p>
<p><code>FLOOR_2(config-if-range)#switchport mode access</code></p>
<p><code>FLOOR_2(config-if-range)#switchport access vlan 20</code></p>
<p><code>FLOOR_2(config-if-range)#exit</code></p>
<p><code>FLOOR_2(config)#end</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729487064978/58caf1a0-5bbe-401f-bba5-77c0fcbafab4.png" alt class="image--center mx-auto" /></p>
<p><code>FLOOR_3(config)#interface range gi 0/1-2</code></p>
<p><code>FLOOR_3(config-if-range)#switchport mode access</code></p>
<p><code>FLOOR_3(config-if-range)#switchport access vlan 30</code></p>
<p><code>FLOOR_3(config-if-range)#exit</code></p>
<p><code>FLOOR_3(config)#end</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729487129782/a55dca10-0fcd-4948-8c46-38e0833b16f8.png" alt class="image--center mx-auto" /></p>
<p><code>Core_SW(config)#interface vlan 10</code></p>
<p><code>Core_SW(config-if)#ip address 10.10.10.254 255.255.255.0</code></p>
<p><code>Core_SW(config-if)#no shutdown</code></p>
<p><code>Core_SW(config-if)#exit</code></p>
<p><code>Core_SW(config)#interface vlan 20</code></p>
<p><code>Core_SW(config-if)#ip address 20.20.20.254 255.255.255.0</code></p>
<p><code>Core_SW(config-if)#no shutdown</code></p>
<p><code>Core_SW(config-if)#exit</code></p>
<p><code>Core_SW(config)#interface vlan 30</code></p>
<p><code>Core_SW(config-if)#ip address 30.30.30.254 255.255.255.0</code></p>
<p><code>Core_SW(config-if)#no shutdown</code></p>
<p><code>Core_SW(config-if)#exit</code></p>
<p><code>Core_SW#show ip interface brief</code><br />Interface              IP-Address      OK? Method Status          Protocol<br />Vlan10                 10.10.10.254     YES manual up                    up<br />Vlan20                20.20.20.254   YES manual up                    up<br />Vlan30                30.30.30.254    YES manual up                    up**</p>
<p><code>Core_SW(config)#service dhcp</code></p>
<p><code>Core_SW(config)#ip dhcp pool VLAN10</code></p>
<p><code>Core_SW(dhcp-config)#network 10.10.10.0 255.255.255.0</code></p>
<p><code>Core_SW(dhcp-config)#default-router 10.10.10.254</code></p>
<p><code>Core_SW(dhcp-config)#dns-server 8.8.8.8</code></p>
<p><code>Core_SW(dhcp-config)#exit</code></p>
<p><code>Core_SW(config)#service dhcp</code></p>
<p><code>Core_SW(config)#ip dhcp pool VLAN20</code></p>
<p><code>Core_SW(dhcp-config)#network 20.20.20.0 255.255.255.0</code></p>
<p><code>Core_SW(dhcp-config)#default-router 20.20.20.254</code></p>
<p><code>Core_SW(dhcp-config)#dns-server 8.8.8.8</code></p>
<p><code>Core_SW(dhcp-config)#exit</code></p>
<p><code>Core_SW(config)#service dhcp   Core_SW(config)#ip dhcp pool VLAN30   Core_SW(dhcp-config)#network 30.30.30.0 255.255.255.0   Core_SW(dhcp-config)#default-router 30.30.30.254   Core_SW(dhcp-config)#dns-server 8.8.8.8   Core_SW(dhcp-config)#exit</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729494401267/3f3c52cb-4bea-46e4-89bd-0a87b0aeddba.png" alt /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729494460288/2da7fd74-a65d-4794-b7e5-89dcfcfdb82d.png" alt /></p>
<p><code>Core_SW(config)#spanning-tree vlan 10,20,30 root primary</code></p>
<p><code>Core_SW(config)#end</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1729494830885/42a39867-1944-4289-9784-b7b29c4b8e7b.png" alt class="image--center mx-auto" /></p>
<p><code>Core_SW(config)#interface range gi 0/1-3</code></p>
<p><code>Core_SW(config-if-range)#spanning-tree guard root</code></p>
<p><code>Core_SW(config-if-range)#end</code></p>
<p>**<em>Oct  2 17:26:10.692: %SPANTREE-2-ROOTGUARD_CONFIG_CHANGE: Root guard enabled on port GigabitEthernet0/1<br />Oct  2 17:26:10.693: %SPANTREE-2-ROOTGUARD_CONFIG_CHANGE: Root guard enabled on port GigabitEthernet 0/2<br />\</em>Oct  2 17:26:10.693: %SPANTREE-2-ROOTGUARD_CONFIG_CHANGE: Root guard enabled on port GigabitEthernet 0/3.*</p>
]]></content:encoded></item><item><title><![CDATA[IPSec Tunnel Between CheckPoint Firewall and PaloAlto Firewall]]></title><description><![CDATA[Hello everyone, today I’d like to share step by step guide for configuration ipsec tunnel between CheckPoint Firewall and PaloAlto firewall using eve-ng…]]></description><link>https://blog.vitaltechmyanmar.com/ipsec-tunnel-between-checkpoint-firewall-and-paloalto-firewall</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/ipsec-tunnel-between-checkpoint-firewall-and-paloalto-firewall</guid><category><![CDATA[networking]]></category><dc:creator><![CDATA[ko thu]]></dc:creator><pubDate>Tue, 08 Oct 2024 08:34:03 GMT</pubDate><content:encoded><![CDATA[<p>Hello everyone, today I’d like to share step by step guide for configuration ipsec tunnel between CheckPoint Firewall and PaloAlto firewall using eve-ng.</p>
<p><strong>LAB Diagram</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728358297261/3edc0a73-b435-4ec4-9be6-99c7fd628867.png" alt class="image--center mx-auto" /></p>
<p><strong>CheckPoint Side Configuration</strong></p>
<p><strong>For WAN Interface</strong></p>
<p><strong>Network Management &gt;&gt; Network Interfaces &gt;&gt; Click eth1 &gt;&gt; Edit  &gt;&gt; Comment (optional) &gt;&gt; Checked Enabled &gt;&gt; Assign ip address manually &gt;&gt; Click OK</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728358357748/4a53d216-0eb4-41a6-b116-fcf9b6c88273.png" alt class="image--center mx-auto" /></p>
<p><strong>For LAN interface</strong></p>
<p><strong>Network Management &gt;&gt; Network Interfaces &gt;&gt; Click eth2 &gt;&gt; Edit  &gt;&gt; Comment (optional) &gt;&gt; Checked Enabled &gt;&gt; Assign ip address manually &gt;&gt; Click OK</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728360070480/c7b6f433-689e-46e9-900d-1a953df7bc65.png" alt class="image--center mx-auto" /></p>
<p><strong>Static Route Configuration</strong></p>
<p><strong>Network Management &gt;&gt; IPv4 Static Routes &gt;&gt; Click Default &gt;&gt; Edit &gt;&gt; Click Gateway &gt;&gt; Edit &gt;&gt; add the gateway ip address &gt;&gt; Click OK</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728360092487/12019da4-6aea-45a6-a56c-930b3c0f34b0.png" alt class="image--center mx-auto" /></p>
<p><strong>Login to the Smart Console &gt;&gt; navigate to the right side and Click New &gt;&gt; Network</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728360112932/feacb130-edc9-407a-99d5-4ab124b33f06.png" alt class="image--center mx-auto" /></p>
<p><strong>Checkpoint Internal Network Creation</strong></p>
<p><strong>Give a suitable name &gt;&gt; Click General &gt;&gt; Add Network Address and Subnet Mask</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728360136972/807311f5-a9c9-4adf-a6a9-13555434d0c3.png" alt class="image--center mx-auto" /></p>
<p><strong>Click NAT &gt;&gt; Checked Add Automatic address translation rules (for SNAT translation behind checkpoint firewall) &gt;&gt; Click OK</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728360152114/6ac6ad8b-1171-4699-89c0-0176a4d8b5f0.png" alt class="image--center mx-auto" /></p>
<p><strong>For PA Network Creation</strong></p>
<p><strong>Repeat Same Step likes checkpoint network creation</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728364362499/a453ec1d-4ce6-4335-98ec-19ad154d5fdb.png" alt class="image--center mx-auto" /></p>
<p><strong>PA Network Creation</strong></p>
<p><strong>Give a suitable name &gt;&gt; Click General &gt;&gt; Add Network Address and Subnet Mask</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728364388395/18656c16-b319-4f1c-8c0a-cb5ce7d3fe6d.png" alt class="image--center mx-auto" /></p>
<p><strong>Adding PA firewall object in checkpoint for ipsec tunnel</strong></p>
<p><strong>Click On right Navigation bar &gt;&gt; New &gt;&gt; More &gt;&gt; Network Object &gt;&gt; More &gt;&gt; Interoperable Device</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728373905835/df6f99a9-9ba2-4b64-a6a7-b205b3177c72.png" alt class="image--center mx-auto" /></p>
<p><strong>Configure the public ip address of PA firewall</strong></p>
<p><strong>General Properties &gt;&gt; Name (Suitable Name) &gt;&gt;</strong></p>
<p><strong>IPv4 Address (Public IP address of PA firewall)</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375512659/6df006aa-5cf9-4a2f-8a76-621ee4a5d0f2.png" alt class="image--center mx-auto" /></p>
<p><strong>Configuration External Network for PA firewall</strong></p>
<p><strong>Topology &gt;. New &gt;&gt; General &gt;&gt; Name (External) &gt;&gt; IP Address  &gt;&gt; Subnet Mask &gt;&gt; Topology &gt;&gt; Checked External &gt;&gt; Click OK</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375542608/4d750b91-11c2-4aeb-b6da-7c5681858d94.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375551154/0f3b9f04-9019-4cf5-be7b-cb000fd81811.png" alt class="image--center mx-auto" /></p>
<p><strong>Configuration VPN Domain for PA firewall’s Network</strong></p>
<p><strong>Topology &gt;&gt; VPN Domain &gt;&gt; Check User defined &gt;&gt;</strong></p>
<p><strong>Click PA_Network (the network you created before)</strong></p>
<p><strong>\&gt;&gt; Click OK</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375580398/d6f5fdc9-f388-4472-a825-67ba5490bfef.png" alt class="image--center mx-auto" /></p>
<p><strong>IPSec VPN &gt;&gt; Link Selection &gt;&gt; Check Selected address from topology table</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375601947/c0bfb538-ea44-45e5-83b4-c1d7ec1152bc.png" alt class="image--center mx-auto" /></p>
<p><strong>VPN Domain for CheckPoint</strong></p>
<p><strong>In Smart Console Maing Menu &gt;&gt; Click SMS &gt;&gt;</strong></p>
<p><strong>Network Management &gt;&gt; VPN Domain &gt;&gt;</strong></p>
<p><strong>User Defined &gt;&gt; Selected Pre defined Network</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375643227/d892fd6c-7a59-4f27-a098-42f4cbc60dde.png" alt class="image--center mx-auto" /></p>
<p><strong>Configuration IPSec Peer</strong></p>
<p><strong>Select IPSec VPN &gt;&gt; Link Selection &gt;&gt;</strong></p>
<p><strong>Check Selected address from topology table</strong></p>
<p><strong>\&gt;&gt; Click OK</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375672189/5d7f33f9-216f-47c7-b1b9-699defbfb33a.png" alt class="image--center mx-auto" /></p>
<p><strong>Configuration VPN community</strong></p>
<p><strong>On the Smart Console Main Menu &gt;&gt; Navigate to the left panel &gt;&gt; Select Security Policies &gt;&gt; Click VPN Communities &gt;&gt;</strong></p>
<p> <strong>Create Meshed Community</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375699381/7175c986-1f32-4e55-a98c-3481cce2c2cd.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375719276/e901c794-f699-4cab-a456-62e90baf412c.png" alt class="image--center mx-auto" /></p>
<p><strong>Firewall Policy for IPSec VPN</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375740046/e9ba4765-711c-441a-9762-1aefa1238e50.png" alt class="image--center mx-auto" /></p>
<p><strong>Click Install Policy &gt;&gt; Click Publish and Install on pop up box</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375756532/106b5d40-c1e7-43eb-ad89-9bf8133d51f2.png" alt class="image--center mx-auto" /></p>
<p><strong>Click Install IPSEC VPN preparation for CheckPoint Side is Done</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375774122/9e64272e-15bc-407b-b68d-af873d5c07c4.png" alt class="image--center mx-auto" /></p>
<p><strong>PaloAlto Side Configuration</strong></p>
<p><strong>Zone Configuration Trust , Untrust and IPSec Zones</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375813934/d02fcf96-7692-45cc-9cd7-1f16b48a6321.png" alt class="image--center mx-auto" /></p>
<p><strong>IP Assign Interface  (WAN and LAN )</strong></p>
<p><strong>Click &gt;&gt; Network &gt;&gt; Interfaces &gt;&gt; Ethernet &gt;&gt; ethernet 1/1 &gt;&gt; interface type &gt;&gt; Virtual Router &gt;&gt; Security Zone &gt;&gt;</strong></p>
<p> <strong>IPv4 &gt;&gt; Advanced &gt;&gt; Click OK</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375836769/7b10014d-ccc0-4ce3-8a7e-3399d15fdee3.png" alt class="image--center mx-auto" /></p>
<p><strong>Tunnel Interface configuration for IPSec Tunnel</strong></p>
<p><strong>Network &gt;&gt; interfaces &gt;&gt; Tunnel &gt;&gt; Add &gt;&gt; Tunnel id &gt;&gt; Virtual Router &gt;&gt; Security Zone &gt;&gt; Click OK</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375856822/ca3251f7-1051-42c6-a677-686e1cf212f0.png" alt class="image--center mx-auto" /></p>
<p><strong>Creation of Security Rule for local network to access internet</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375875535/1dd8873c-6b84-4442-9144-b44966eeab31.png" alt class="image--center mx-auto" /></p>
<p><strong>Security Rule Parameter</strong></p>
<p><strong>For local network to access</strong></p>
<p><strong>internet</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375899370/dd3158e8-572d-48c3-ac36-112ca995e3f6.png" alt class="image--center mx-auto" /></p>
<p><strong>IPSec Security Rule Creation</strong></p>
<p><strong>Click Policies &gt;&gt; General &gt;&gt; Name &gt;&gt; Source &gt;&gt; Destination</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375925630/bf9e874a-8c2a-4ef9-b178-39ed2ed90408.png" alt class="image--center mx-auto" /></p>
<p><strong>Security Rule Parameter for</strong></p>
<p><strong>Ipsec Tunnel</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375943440/9d5f2b7c-da04-4593-a4f6-01c444c3336c.png" alt class="image--center mx-auto" /></p>
<p><strong>SNAT Configuration</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375958385/81156521-f3ad-40c8-afdf-911ec3e37c30.png" alt class="image--center mx-auto" /></p>
<p><strong>SNAT Parameter</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375974361/7ec45db8-f62f-478c-8a8f-a41b9619a7ea.png" alt class="image--center mx-auto" /></p>
<p><strong>Default Route Configuration</strong></p>
<p><strong>Network &gt;&gt; Virtual Routers &gt;&gt; Click default &gt;&gt; Click Static Routes &gt;&gt; Add &gt;&gt; Configure Static Route &gt;&gt; Click OK</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728375996552/9b3c9996-9615-4ccf-b4b3-2c029e8b8ae1.png" alt class="image--center mx-auto" /></p>
<p><strong>Configure Route for Checkpoint Internal Network</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728376011394/d3187ed9-2e88-4231-b96f-07802ab69a62.png" alt class="image--center mx-auto" /></p>
<p><strong>IKE Crypto Profile Configuration</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728376039004/0fda0a9d-d54c-45da-885e-88b96adfd69d.png" alt class="image--center mx-auto" /></p>
<p><strong>IPSec Crypto Profile Configuration</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728376056934/ebf08311-ac35-42e7-bac5-6fe638aeda6c.png" alt class="image--center mx-auto" /></p>
<p><strong>IKE Gateway Configuration</strong></p>
<p><strong>Click Network &gt;&gt; IKE Gateways &gt;&gt; Add &gt;&gt; Name &gt;&gt; Version &gt;&gt; Interface &gt;&gt; Local IP Address &gt;&gt; Peer Address &gt;&gt; Authentication &gt;&gt;</strong></p>
<p> <strong>Pre-shared Key &gt;&gt; Click OK</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728376080800/9402f069-f502-430b-b071-a4d97f5c95bb.png" alt class="image--center mx-auto" /></p>
<p><strong>IKE Parameter</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728376095220/375367d2-d730-46b4-91f2-f341f6a61661.png" alt class="image--center mx-auto" /></p>
<p><strong>IPSec Tunnel Configuration</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728376111465/92983aed-03cc-4222-ba87-c335091df121.png" alt class="image--center mx-auto" /></p>
<p><strong>After All Parameter Configure Sucessfully Your IPSec Tunnel Will be up !!!</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728376297710/8394db10-a8a3-4ea6-964f-254ed6b338e0.png" alt class="image--center mx-auto" /></p>
<p><strong>Monitor Traffic From PA Side</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728376316936/56af88e8-7c92-4dcc-9d64-82cd3969b978.png" alt class="image--center mx-auto" /></p>
<p><strong>Monitor Traffic From CheckPoint Side</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728376332534/7c47c085-1279-4130-bebb-9586fef40dc3.png" alt class="image--center mx-auto" /></p>
<p><strong>Monitor From CheckPoint Side(Details)</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728376348158/5615f2bc-f664-469c-8539-e273891ddeb7.png" alt class="image--center mx-auto" /></p>
<p><strong>THANK FOR YOUR ATTENTION !!!!!</strong></p>
]]></content:encoded></item><item><title><![CDATA[Step By Step guide to install Veritas Backup Exec licenses]]></title><description><![CDATA[How to install Veritas License Key?]]></description><link>https://blog.vitaltechmyanmar.com/step-by-step-guide-to-install-veritas-backup-exec-licenses</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/step-by-step-guide-to-install-veritas-backup-exec-licenses</guid><category><![CDATA[VeritasLicense]]></category><category><![CDATA[Install Veritas License]]></category><dc:creator><![CDATA[PoneMyat]]></dc:creator><pubDate>Fri, 04 Oct 2024 09:34:28 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1728034327838/424648f4-8961-4c0d-b941-a76ef14a39be.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>ဒီနေ့မှာတော့ ကျွန်တော်တို့ Veritas Backup Exec မှာ License ဘယ်လို ထည့်ရမလဲဆိုတာ ပြောပြပေးသွားမှာဖြစ်ပါတယ်။ ဒီ article ရဲ့ ရည်ရွယ်ချက်ကတော့ ပုံမှန် License တွေ update လုပ်တဲ့အခါ Error မတက်ပေမဲ့ BackupExec Version နဲ့ License Version မတူတဲ့အခါမျိုးမှာ License Key ထည့်မရတာမျိုးဖြစ်တတ်ပါတယ်။ အဲ့အချိန်ကျရင် ဘယ်လိုမျိုးထည့်ရမလဲဆိုတာ ပြောပြပေးသွားမှာပဲဖြစ်ပါတယ်။</p>
<ol>
<li><p>Delete Old License Directory</p>
</li>
<li><p>Download License Key</p>
</li>
<li><p>Install License</p>
</li>
<li><p>Review License</p>
</li>
</ol>
<hr />
<h2 id="heading-delete-old-license-directory">Delete Old License Directory.</h2>
<h2 id="heading-download-license-key">Download License Key.</h2>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033134821/0317a8d9-5ba1-4890-b886-1790d288f8d9.jpeg" alt class="image--center mx-auto" /></p>
<p>အရင်ဆုံး ကျွန်တော်တို့က Licenses Folder ကို Directory မှာ ရှာပြီးဖျက်ပေးရမှာဖြစ်ပါတယ်။ ဖျက်ပြီးသွားရင် အောက်က Step တွေအတိုင်း တစ်ဆင့်ချင်းလုပ်သွားရုံပါပဲ။</p>
<p>License Key ကိုလဲ Portal ကနေ Generate &amp; Download လုပ်ထားပေးဖို့လဲလိုပါတယ်။</p>
<hr />
<h2 id="heading-install-license-key">Install License Key</h2>
<p>A) Go To <strong>Backup Exec</strong> --&gt; <strong>Installation and Licensing</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033197379/8c1917de-dbd0-4358-9e91-d25725b8e638.png" alt class="image--center mx-auto" /></p>
<p>B) Select --&gt; <strong>Install Features and Licenses on this Backup Exec Server</strong>.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033219789/6d8eab04-86fb-4f8e-89da-14a1cbc42b83.png" alt class="image--center mx-auto" /></p>
<p>C) Installing Licenses using .SFL files (Offline Installation):</p>
<p>•Click <strong>Import License File.</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033239495/8247706a-bb4c-4649-a4ee-bfcb6a49b085.png" alt class="image--center mx-auto" /></p>
<p>•Select the <strong>.SLF</strong> file and click <strong>Open</strong>.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033254324/38abc012-e8b4-4e66-81cf-452fa76db6cc.png" alt class="image--center mx-auto" /></p>
<p>•Click <strong>Next</strong>.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033270371/5b31e531-639c-479c-b6fd-34cf7548790d.png" alt class="image--center mx-auto" /></p>
<p>•Select a Backup Exec edition license to install and click <strong>Next</strong>.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033288618/966d6904-f979-4362-92c0-bde2f4fd85f5.png" alt class="image--center mx-auto" /></p>
<p>•Select required features to install and click <strong>Next</strong>.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033304749/a9d39da2-693a-4f0a-a9cd-492bdb6f7ebc.png" alt class="image--center mx-auto" /></p>
<p>•Select the additional languages to be installed and click <strong>Next</strong>.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033322250/cba69c89-6d05-4f4f-92f0-aab57a8a00fe.png" alt class="image--center mx-auto" /></p>
<p>•Review install summary and click <strong>Install</strong>.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033335313/2de8c6e4-6d54-4fd2-a42d-0072ac661c55.png" alt class="image--center mx-auto" /></p>
<p>•Click <strong>Yes</strong> to close <strong>Backup Exec console</strong> and continue installation.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033373335/df455da1-db39-49c4-997e-edc71185bd8a.png" alt class="image--center mx-auto" /></p>
<p>•Installation progress will be displayed.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033383871/8f3d717f-32e5-4daa-97b4-3eef0c7ffa85.png" alt class="image--center mx-auto" /></p>
<p>•Click <strong>Finish</strong>.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033396740/e6832fae-24ee-4f33-9f4d-fdb0249c80d8.png" alt class="image--center mx-auto" /></p>
<hr />
<h2 id="heading-reviewing-license-information">Reviewing License information:</h2>
<p>A) Go To <strong>Backup Exec</strong> --&gt; <strong>Installation and Licensing</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033606286/63504413-0e01-4b17-a699-1477a17e9802.png" alt class="image--center mx-auto" /></p>
<p>B) Select <strong>License Information</strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033610011/142fac71-049d-44b7-a7e3-34e3e21d335d.png" alt class="image--center mx-auto" /></p>
<p>C) License Information page is displays:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1728033612496/c2bed9ad-bc78-4263-b5df-0b95e5a560f0.png" alt class="image--center mx-auto" /></p>
<p>ဒါဆိုရင် License Key ထည့်တာ Success ဖြစ်ပါတယ်။</p>
<hr />
<p>အားလုံးပဲ အချိန်ပေးပြီး ဖတ်ရှုပေးတဲ့အတွက်လဲ ကျေးဇူးတင်ပါတယ် ခင်ဗျ။</p>
<p>Author By <a class="user-mention" href="https://hashnode.com/@ponemyat110">PoneMyat</a></p>
]]></content:encoded></item><item><title><![CDATA[How to Monitor VCenter With Zabbix]]></title><description><![CDATA[အားလုံးပဲ မင်္ဂလာပါ။ ဒီနေ့ ပြောပြပေးသွားပေးမဲ့အကြောင်းအရာက ကျွန်တော်တို့ရဲ့ Vcenter ကို Zabbix အသုံးပြုပြီး Monitoring ဘယ်လိုလုပ်ရမလဲဆိုတာ…]]></description><link>https://blog.vitaltechmyanmar.com/how-to-monitor-vcenter-with-zabbix</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/how-to-monitor-vcenter-with-zabbix</guid><category><![CDATA[Montior Vcenter with Zabbix]]></category><category><![CDATA[Howtomonitorvcenterwithzabbix]]></category><category><![CDATA[Vcenter & Zabbix]]></category><category><![CDATA[Zabbix montior]]></category><category><![CDATA[Vcenter Monitor]]></category><dc:creator><![CDATA[PoneMyat]]></dc:creator><pubDate>Thu, 12 Sep 2024 09:34:02 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1726128456877/39bf9060-abd8-4b25-b04f-b752b59deb71.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>အားလုံးပဲ မင်္ဂလာပါ။ ဒီနေ့ ပြောပြပေးသွားပေးမဲ့အကြောင်းအရာက ကျွန်တော်တို့ရဲ့ Vcenter ကို Zabbix အသုံးပြုပြီး Monitoring ဘယ်လိုလုပ်ရမလဲဆိုတာ ပြောပြပေးသွားမှာပဲဖြစ်ပါတယ်။</p>
<p>ပထမဦးဆုံး Zabbix ကို <a target="_blank" href="https://www.zabbix.com/download">Download &amp; Install</a> လုပ်ထားရပါမယ်။</p>
<p>Install လုပ်ပြီးရင်တော့ ကျွန်တော်တို့ စပြီး Config ချလို့ရပါပြီ။</p>
<h2 id="heading-configure-zabbix-server"><strong>Configure Zabbix server</strong></h2>
<ol>
<li>Open Zabbix server configuration file</li>
</ol>
<pre><code class="lang-plaintext">vi /etc/zabbix/zabbix_server.conf
</code></pre>
<ol start="2">
<li><p>Change <a target="_blank" href="https://www.zabbix.com/documentation/current/en/manual/appendix/config/zabbix_server#startvmwarecollectors">StartVMwaeCollectors</a> parameter</p>
<pre><code class="lang-plaintext"> ### Option: StartVMwareCollectors
        #       Number of pre-forked vmware collector instances.
        #
        # Mandatory: no
        # Range: 0-250
        # Default:
        # StartVMwareCollectors=0

        StartVMwareCollectors=2
</code></pre>
</li>
<li><p>Restart Zabbix Server.</p>
<pre><code class="lang-plaintext"> systemctl restart zabbix-server
</code></pre>
</li>
</ol>
<hr />
<h2 id="heading-configure-zabbix-frontend"><strong>Configure Zabbix Frontend</strong></h2>
<ol>
<li><p>Login to Zabbix</p>
</li>
<li><p>Create Host in Zabbix.</p>
<p> <code>In the Host name field, enter a host name (for example, "VMware environment").</code></p>
<p> <code>In the Templates field, type or select the "VMware FQDN" (or "VMware") template.</code></p>
<p> <code>In the Host groups field, type or select a host group (for example, a new host group "VMware").</code></p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1726132986363/939f86be-527b-4512-8108-d9083292a7d9.png" alt class="image--center mx-auto" /></p>
<ul>
<li><p><code>In the Macros tab, set the following host macros:</code></p>
<p>  <code>{$VMWARE.URL} - VMware service (vCenter or ESXi hypervisor) SDK URL (</code><a target="_blank" href="https://servername/sdk"><code>https://servername/sdk</code></a><code>)</code></p>
<p>  <code>{$VMWARE.USERNAME} - VMware service user name</code></p>
<p>  <code>{$VMWARE.PASSWORD} - VMware service {$VMWARE.USERNAME} user password</code></p>
</li>
<li><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1726133163564/eb07e01b-0903-440b-aa26-59db87258910.png" alt class="image--center mx-auto" /></p>
</li>
</ul>
</li>
<li><p>Click Add to create host.</p>
</li>
</ol>
<hr />
<h2 id="heading-view-collected-metrics"><strong>View collected metrics</strong></h2>
<p>Zabbix is already monitoring your VCenter.</p>
<p>To View Create Host, navigate to <a target="_blank" href="https://www.zabbix.com/documentation/current/en/manual/web_interface/frontend_sections/data_collection/hosts">Data Collection » Hosts</a></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1726133308143/4506498f-faf6-41cb-9685-9b527a39dad3.png" alt class="image--center mx-auto" /></p>
<p>To View Collected Metrics, navigate to Monitoring » Hosts</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1726133363182/20528cdd-667a-4cd8-a99e-8a4109c628b8.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1726133398873/f0872347-cd42-4458-9a13-af5b726763a6.png" alt class="image--center mx-auto" /></p>
<hr />
<p>အခုဆိုရင်တော့ Zabbix ကို အသုံးပြုပြီး ကိုယ့်ရဲ့ VCenter ကို Monitor လုပ်လို့ရပြီပဲဖြစ်ပါတယ်။</p>
<p>အဆင်ပြေကျမယ်လို့ မျှော်လင့်ပါတယ် ။ အားလုံးပဲ အချိန်ပေးပြီး ဖတ်ရှုပေးတဲ့အတွက်လဲ ကျေးဇူးတင်ပါတယ် ခင်ဗျ ။</p>
<p>Author By <a class="user-mention" href="https://hashnode.com/@ponemyat110">PoneMyat</a></p>
]]></content:encoded></item><item><title><![CDATA[Hosting Static Website using Amazon S3]]></title><description><![CDATA[Hello everyone. ကျွန်တော်ဒီနေ့ sharing လုပ်ပေးမှာကတော့ Amazon S3 ကိုအသုံးပြီး static website တစ်ခုဘယ်လိုတည်‌ဆောက်မလဲဆိုတာကို sharing လုပ်ပေးမှာဖြစ်ပါတယ် ။…]]></description><link>https://blog.vitaltechmyanmar.com/hosting-static-website-using-amazon-s3</link><guid isPermaLink="true">https://blog.vitaltechmyanmar.com/hosting-static-website-using-amazon-s3</guid><category><![CDATA[S3 static website hosting]]></category><dc:creator><![CDATA[Min Chan Mon]]></dc:creator><pubDate>Fri, 06 Sep 2024 19:36:02 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1725647352237/b4529ae5-2b5f-4ff7-9f2b-bb076e46da57.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hello everyone. ကျွန်တော်ဒီနေ့ sharing လုပ်ပေးမှာကတော့ Amazon S3 ကိုအသုံးပြီး static website တစ်ခုဘယ်လိုတည်‌ဆောက်မလဲဆိုတာကို sharing လုပ်ပေးမှာဖြစ်ပါတယ် ။</p>
<p>Demo အနေနဲ့ကိုတော့ ကျွန်‌‌တော်ကတော့ html file တစ်ခုကိုအသုံးပြုပြီး static website အနေနဲ့ host လုပ်ပြသွားပါမယ်. So let’s get started ။</p>
<p>ပထမဆုံးအနေနဲ့ Amazon Portal ‌ကိုအရင်ဝင်ပြီး‌ ပြီး‌တော့ S3 bucket တစ်ခုကို create အရင်လုပ်ပါမယ် ။</p>
<p>click Search bar and type “S3”</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725648046986/267f1e7f-54dc-4493-bbb4-007f1278c493.png" alt class="image--center mx-auto" /></p>
<p>and then click s3 button and create a bucket</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725648073669/02b96671-209f-45cd-b348-7012d367d97e.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725648086077/969137a7-12af-43f7-99c7-43f21f5b1115.png" alt class="image--center mx-auto" /></p>
<p>create bucket လုပ်ပြီးသွားတဲ့အခါ ပထမဆုံး bucket အတွက် name တစ်ခုပေးရပါမယ် ။ Name ကတော့ ကိုယ်အဆင်ပြေတဲ့ naming ကိုပေးလို့ရပါတယ် ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725648152105/9465bb08-4f54-4712-baac-302a25fe4e2d.png" alt class="image--center mx-auto" /></p>
<p>ပြီးသွားရင်တော့ ဒီနေရာမှာသတိထားရမှာက <strong><mark>Block public access</mark></strong> ပါပဲ, AWS က default အရ bucket ကို public access မရအောင် block လုပ်ထားပါတယ် ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725648269562/0de6675e-20d3-4ce5-9a56-9183d698de26.png" alt class="image--center mx-auto" /></p>
<p>အကယ်၍ block public access ကို off မလုပ်ခဲ့ရင်တော့ user တွေက bucket ကို public ကနေ access လုပ်လို့ရမှာမဟုတ်ပါဘူး ။ ဒီတော့ ကျွန်တော်တို့ block access ကို untick လုပ်ပြီး‌တော့ current setting changes လုပ်ထားတာကို acknowledge လုပ်ပါတယ်ဆိုပြီး box မှာ tick လုပ်‌ပေးရပါမယ် ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725648459651/f1c01580-5adf-4b77-949b-b6340ae4e07b.png" alt class="image--center mx-auto" /></p>
<p>ပြီးရင်တော့ ကျန်တဲ့ setting တွေကို default အတိုင်းထားပြီး bucket ကို create လုပ်လိုက်ပါမယ် ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725648600115/3a0e6d24-8c36-447d-b4cd-3e165549b36f.png" alt class="image--center mx-auto" /></p>
<p>ဒါဆိုရင်တော့ S3 dashboard မှာ create လုပ်ထားတဲ့ bucket လေးပေါ်လာပါပြီ ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725648644995/db7108dc-e6cf-45bc-afd0-ca72b3f72e42.png" alt class="image--center mx-auto" /></p>
<hr />
<p>အခုကျွန်တော်တို့ backet create လုပ်ပြီးသွာပြီဆိုတော့ website အတွက်လိုအပ်တဲ့ content file ကို upload လုပ်ပါမယ် ။ Upload လုပ်ဖို့အတွက် create လုပ်ထားတဲ့ bucket ကို double click လုပ်ပြီးတော့ဝင်ပြီး file ကို upload လုပ်ပေးရပါမယ် ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725649047615/31868b7f-373f-43f3-b237-93f3c48357e0.png" alt class="image--center mx-auto" /></p>
<p>Demo မှာ‌‌တော့ html file ‌‌လေးကို upload လုပ်ပြီးသုံးထားပါတယ်. Add file ကိုနှိပ်ပြီး content file ကို ရွေးပြီး upload လုပ်လိုက်ယုံပါပဲ ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725649093793/e4f48165-8357-498c-a158-0c3848c53def.png" alt class="image--center mx-auto" /></p>
<p>ပြီးရင်တော့ upload ကို click လုပ်ပြီး save လုပ်လိုက်ရပါမယ် ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725649202699/c18321f7-4fa2-4c9a-941c-edfb1e09c163.png" alt class="image--center mx-auto" /></p>
<p>Now the file has been uploaded.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725649403856/0970d9e5-c21b-4ab4-ad9d-06d7369d3e94.png" alt class="image--center mx-auto" /></p>
<hr />
<p>File upload လုပ်ပြီးသွားတဲ့အခါကျရင် bucket က static website hosting လုပ်လို့ရအောင် static website hosing feature ကို on လုပ်ပေးရပါမယ် ။ Feature ကို on လုပ်ဖို့ဆိုရင် Properties ထဲကိုသွားရပါမယ် ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725649539531/6bfed79b-8afa-4376-baba-4329a473406e.png" alt class="image--center mx-auto" /></p>
<p>Scroll down to the end . Static website hosting ဆိုပြီးတွေ့ပါလိမ့်မယ် ။ Edit button ကို click လုပ်ပြီးတော့ enable box ကို tick လုပ်ပေးပြီး‌‌တော့ index document ဆိုတဲ့နေရမှာ index.html ဆို ပြီး ဖြည့်ရပါမယ် ပြီးရင်တော့ကျန်တာကို default အတိုင်းထားပြီး save changes လုပ်လိုက်ပါမယ် ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725649590477/4ff88b79-9a4a-489c-a2cc-982227d0963f.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725649651714/8930c8e9-cdc7-459a-85ac-52bf28dec364.png" alt class="image--center mx-auto" /></p>
<p>အခု static website hosting feature ကို enable လုပ်ပြီးသွားပြီဆိုတော့ နောက်ထက်တစ်ခုအနေနဲ့ bucket အတွက် policy တခုကို attach လုပ်ပေးရပါမယ် ။ Policy attach လုပ်ဖို့ဆိုရင် Permission tab ထဲက bucket policy ထဲမှာသွားပြီး edit လုပ်ပေးရပါမယ် ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725649814558/b8a6b413-73d3-4040-8944-3def33851323.png" alt class="image--center mx-auto" /></p>
<p>Edit လုပ်တဲ့အခါမှာ policy ရဲ့ resource နေရာမှာကိုယ့်ရဲ့ bucket name ကိုထည့်ပေးရပါမယ် ။ ဒီနေရာမှာတော့ ကျွန်တော် bucket create လုပ်ထားတဲ့ name ဖြစ်တဲ့ <code>vitaltechmyanmar</code> ဆိုတာကိုထည့်လိုက်မှာဖြစ်ပါတယ် ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725649890787/ba25cbd0-62a1-4f3d-b98f-7642eb08dbdc.png" alt class="image--center mx-auto" /></p>
<p>ပြီးသွားရင်တော့ scroll down ‌and save changes လုပ်လိုက်ပြီးရင်ရပါပြီ ။ ဒါဆိုရင် ကျွန်တော်တို့ website hosting လုပ်တဲ့ step တွေပြီးသွားပြီဆိုတော့ website ကို access တာအဆင်ပြေလားမပြေလားတချက်ကြည့်ကြည့်ရအောင် ။</p>
<hr />
<p>ကျွန်တော်တို့ create လုပ်ထားတဲ့ website က accessရမရစမ်းဖို့အတွက်ဆိုရင်တော့ bucket ထဲက index.html ထဲကိုဝင် ပြီးတော့ properties ထဲက Object URL ကို copy လုပ်ပြီး တခြား tab တစ်ခုမှာ paste လုပ်ကြည့်ပါမယ် ။</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725650150645/7c9e39ee-d74d-42f4-859f-e2d66e318550.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725650157856/aa33787f-69b8-487b-8793-a8c8922a5fce.png" alt class="image--center mx-auto" /></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1725650212962/5b9f2e49-c27c-448a-a322-4a03c841fe9f.png" alt class="image--center mx-auto" /></p>
<p>ဒါဆို ကျွန်တော်တို့ host လုပ်ထားတဲ့ static website လေးကို public ကနေ access လုပ်လိုရသွားပါပြီ .......</p>
<hr />
<p>အခုဆိုရင်တော့ကျွန်တော်တို့က static website တစ်ခုကို amazon ရဲ့ s3 bucket ကိုအသုံးပြုပြီးတော့ လွယ်လွယ်ကူကူတည်ဆောက်သွားတာဖြစ်ပါတယ် ။ အဆင်ပြေကျမယ်လို့ မျှော်လင့်ပါတယ် ။ အားလုံးပဲ အချိန်ပေးပြီး ဖတ်ရှုပေးတဲ့အတွက်လဲ ကျေးဇူးတင်ပါတယ် ခင်ဗျ ။</p>
]]></content:encoded></item></channel></rss>