Skip to main content

 ๐Š๐ฎ๐›๐ž๐ซ๐ง๐ž๐ญ๐ž๐ฌ ๐ƒ๐ž๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐ž๐ง๐ญ ๐’๐ญ๐ซ๐š๐ญ๐ž๐ ๐ข๐ž๐ฌ


๐Ÿš€ Deploying in Kubernetes isn’t just about putting new code into production — it’s about doing it safely, without downtime or issues.


That’s why deployment strategies are important — the right one helps you avoid problems and keep everything running smoothly.


If you’re a DevOps Engineer, SRE, or just starting with Kubernetes, here’s a simple guide to 6 popular deployment methods — with tips and pros & cons ๐Ÿ‘‡


๐Ÿ”น ๐Ÿ. ๐‚๐š๐ง๐š๐ซ๐ฒ ๐ƒ๐ž๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐ž๐ง๐ญ๐ฌ

 ๐Ÿ›ฃ️ Route a small % of live traffic (like 20%) to the new version before a full rollout.

 ✅ Safer rollout with real user testing

 ❌ Requires monitoring + traffic splitting tools

 ๐ŸŸข Downtime: No

 ๐Ÿ“Œ Use it when you want to test updates in production without fully committing.


๐Ÿ”น ๐Ÿ. ๐๐ฅ๐ฎ๐ž-๐†๐ซ๐ž๐ž๐ง ๐ƒ๐ž๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐ž๐ง๐ญ๐ฌ

 ๐ŸŸฆ Old version (Blue) + ๐ŸŸฉ New version (Green) in parallel

 ๐Ÿ“ Shift all traffic to Green once validated

 ✅ Instant rollback by switching back

 ❌ Double infra cost & complexity

 ๐ŸŸข Downtime: No

 ๐Ÿ“Œ Use it when uptime is critical and rollback speed matters.


๐Ÿ”น ๐Ÿ‘. ๐€/๐ ๐“๐ž๐ฌ๐ญ๐ข๐ง๐ 

 ๐Ÿ‘ฅ Route users to different versions based on segments (e.g., region, device)

 ✅ Great for feature validation & experimentation

 ❌ Needs complicated setup to send users to the right version, and users might see different experiences.

 ๐ŸŸก Downtime: Not applicable

 ๐Ÿ“Œ Use it to test features with specific user groups before full rollout.


๐Ÿ”น ๐Ÿ’. ๐‘๐จ๐ฅ๐ฅ๐ข๐ง๐  ๐”๐ฉ๐๐š๐ญ๐ž

 ♻️ Replace old pods gradually with new ones

 ✅ Built-in Kubernetes strategy, no downtime

 ❌ Late detection = widespread issues

 ๐ŸŸข Downtime: No

 ๐Ÿ“Œ Use it when you want to upgrade progressively but simply.


๐Ÿ”น ๐Ÿ“. ๐‘๐ž๐œ๐ซ๐ž๐š๐ญ๐ž ๐’๐ญ๐ซ๐š๐ญ๐ž๐ ๐ฒ

 ❌ Stop the old version completely before starting the new one

 ✅ Clean and simple for basic apps

 ❌ Downtime & user disruption

 ๐Ÿ”ด Downtime: Yes

 ๐Ÿ“Œ Use only if your app doesn’t support running multiple versions at once.


๐Ÿ”น ๐Ÿ”. ๐’๐ก๐š๐๐จ๐ฐ ๐ƒ๐ž๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐ž๐ง๐ญ

 ๐Ÿ‘ป Mirror real traffic to a new version without exposing it to users

 ✅ Performance testing under real load

 ❌ Doesn’t test user interaction, uses more resources

 ๐ŸŸข Downtime: No

 ๐Ÿ“Œ Use it to validate backend performance safely before rollout.


๐Ÿ” ๐๐ฎ๐ญ ๐ก๐ž๐ซ๐ž’๐ฌ ๐ญ๐ก๐ž ๐›๐ข๐  ๐ฉ๐ข๐œ๐ญ๐ฎ๐ซ๐ž:

 Choosing a strategy isn’t just technical — it’s about ๐ฒ๐จ๐ฎ๐ซ ๐š๐ฉ๐ฉ’๐ฌ ๐ญ๐จ๐ฅ๐ž๐ซ๐š๐ง๐œ๐ž ๐Ÿ๐จ๐ซ ๐ซ๐ข๐ฌ๐ค, ๐œ๐จ๐ฌ๐ญ, ๐œ๐จ๐ฆ๐ฉ๐ฅ๐ž๐ฑ๐ข๐ญ๐ฒ, ๐š๐ง๐ ๐ฎ๐ฌ๐ž๐ซ ๐ž๐ฑ๐ฉ๐ž๐œ๐ญ๐š๐ญ๐ข๐จ๐ง๐ฌ.


✅ Want quick feedback? Try ๐‚๐š๐ง๐š๐ซ๐ฒ.

✅ Need ultra-safe rollback? Go with ๐๐ฅ๐ฎ๐ž-๐†๐ซ๐ž๐ž๐ง.

✅ Running experiments? Use ๐€/๐ ๐ญ๐ž๐ฌ๐ญ๐ข๐ง๐ .

✅ Just want to keep it simple? Stick with ๐‘๐จ๐ฅ๐ฅ๐ข๐ง๐  ๐”๐ฉ๐๐š๐ญ๐ž๐ฌ.

✅ Testing under load? Use ๐’๐ก๐š๐๐จ๐ฐ ๐๐ž๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐ž๐ง๐ญ๐ฌ.

✅ Okay with downtime? Only then consider ๐‘๐ž๐œ๐ซ๐ž๐š๐ญ๐ž.


๐Ÿ’ฌ What deployment strategy do you use most often — and why?

 Drop your experience or tips in the comments ๐Ÿ‘‡



Comments

Popular posts from this blog

Step-by-Step Explanation of Ballooning, Compression & Swapping in VMware

 ๐Ÿ”น Step-by-Step Explanation of Ballooning, Compression & Swapping in VMware ⸻ 1️⃣ Memory Ballooning (vmmemctl) Ballooning is the first memory reclamation technique used when ESXi detects memory pressure. ➤ Step-by-Step: How Ballooning Works  1. VMware Tools installs the balloon driver (vmmemctl) inside the guest OS.  2. ESXi detects low free memory on the host.  3. ESXi inflates the balloon in selected VMs.  4. Balloon driver occupies guest memory, making the OS think RAM is full.  5. Guest OS frees idle / unused pages (because it believes memory is needed).  6. ESXi reclaims those freed pages and makes them available to other VMs. Why Ballooning Happens?  • Host free memory is very low.  • ESXi wants the VM to release unused pages before resorting to swapping. Example  • Host memory: 64 GB  • VMs used: 62 GB  • Free: 2 GB → ESXi triggers ballooning  • VM1 (8 GB RAM): Balloon inflates to 2 GB → OS frees 2 GB → ESXi re...

ESXi Host Troubleshooting Checklist

  ๐Ÿ› ️ ESXi Host Troubleshooting Checklist (With Complete Log Locations) ✅ 1. Host Status & Connectivity Check host state in vCenter (Connected / Not Responding / Disconnected) Review CPU, RAM, and datastore usage Validate HA/DRS recommendations ✅ 2. Hardware Health Monitor hardware sensors (CPU, DIMMs, fans, PSU, RAID) Check RAID controller logs via vendor tools View hardware status in: vCenter → Monitor → Hardware Health DCUI → Hardware Status ✅ 3. Network Validation Verify vSwitches, Port Groups, NIC teaming, VLAN tagging Check vmkernel ports (mgmt, vMotion, iSCSI, vSAN) Test reachability using: Shell vmkping < IP > Show more lines Validate physical NIC status and link speed ✅ 4. Storage & Datastore Checks Confirm datastore accessibility Rescan storage adapters (iSCSI/FC/NFS) Validate multipathing (Round Robin / Fixed / MRU) Check datastore latency with esxtop ✅ **5. Critical Logs & Their Locations (Full List) Here are key ESXi log files that every VMware adm...
  vCenter Troubleshooting Tips, Common Issues & Log Locations ๐Ÿš€ 1. General Troubleshooting Approach A. Check service health first For vCenter Server Appliance (VCSA): Shell https : / / < vcenter - FQDN > : 5480 Show more lines Go to Services → Health to verify: vCenter Server ESXi hosts vSphere Client DNS, NTP, DB connections vpxd, vpxd-svcs, vsphere-ui B. DNS & NTP checks vCenter is highly dependent on correct DNS & time sync. Check: Shell nslookup < vcenter - fqdn > nslookup < esxi - host - fqdn > Show more lines Time drift > 5 minutes causes: Login failures vpxd crashes PSC authentication issues C. Check storage/database health Slow DB/storage = UI slow, tasks hung. For VCSA: Shell df - h du - sh / storage / log / * / var / log Show more lines Free up space if partitions hit >80%. D. Restart critical services safely On VCSA: Shell service - control - - status service - control - - stop - - all service - control - - start - - all ...