• Rapid deployment – Because you can quickly create and publish a small service
  • Easier to iterate – because new functionality can be added to each service independently
  • More flexibility – Even if a single service (component) is not available, other services can still work.












So how does this cultural shift affect infrastructure?





Manage large-scale infrastructure












On the other hand, developing microservices will bring new challenges.
























You may need to waste a lot of money on computing resources.






























You pay for five, but you can only use four.


















You also waste a lot of money on resource utilization.








































































It’s like changing a tire while driving — very dangerous.




































When you pay $1,000 in an EC2 instance on Amazon, you’re really only using $100.






That doesn’t sound like the best way to spend your budget.






You should get back the money you spent on resources you didn’t use.






But why are the requirements for each service so different? !





Sometimes choosing the right tool can even do more harm than good








































































Yes, it’s always easier said than done.











Learn the concept of container from logistics industry






























Do you want to ship your goods safely?
























Do you want to deploy your application and all its dependencies safely?


















Does that sound like a virtual machine?





A compact version of the VM




























































So what are these containers made of?





The Linux container is a standalone process


































































docker run < my-container>






docker run mysql

















  • You save money running dozens of operating systems ✅
  • You package your application as a portable unit ✅
  • You have plenty of containers ❌

















Managing large-scale containers
























Maybe there’s an automated way?





























Kubernetes: powerful container choreography tool










































So what is Kubernetes?



















































































Kubernetes acts as an API layer for the data center





























  • You can create scripts and daemons that programmatically interact with the API with versioned apis;
  • When upgrading a cluster, you can continue to use the old API and migrate over time
  • You can install Kubernetes in any cloud provider or data center, and you can use the same API
























no problem





























Use Kubernetes to save on your cloud bill





















































































































































Final Notes




































What is Kubernetes? Optimize your hosting costs and efficiency