Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Cloud Native in kubernetes

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "sample analysis of cloud natives in kubernetes", which is easy to understand and well-organized. I hope it can help you solve your doubts. Let the editor lead you to study and learn the article "sample analysis of cloud natives in kubernetes".

One: cloud origin

Cloud natively contains a set of application models to help enterprises deliver business software quickly, continuously, reliably, and on a large scale. Cloud native consists of micro-service architecture, DevOps and agile infrastructure represented by containers.

Two: twelve elements of micro-service

1. Benchmark code

Each code repository (repo) generates docker image and saves it to the image repository and uses unique ID management, using compile-time ID in Jenkins.

two。 Dependence

Explicitly declare dependencies in your code, using package management tools such as Glide in Go.

3. Configuration

Separate the configuration from the code, and the application deployed in kubernetes can be mounted to the container using the container's environment variables or ConfigMap.

4. Back-end service

Taking the back-end service as an additional resource is essentially computing storage separation, reducing service coupling and decomposing single applications.

5. Build, release, run

Strictly separate the build and run, each time you modify the code to generate a new image, rerelease, you can not directly modify the runtime code and configuration.

6. Process

The application process should be stateless, which means that the previous state can be calculated after restarting again.

7. Port binding

Each Pod in kubernetes has an independent IP, and each application running in Pod does not need to care about whether the ports are duplicated, just specify the ports in the service, and the service in the cluster discovers each other through configuration.

8. Concurrence

Each container is a process, and concurrency is achieved by increasing the number of copies of the container.

9. Easy to handle

Fast start and graceful termination maximize robustness and kuberentes's excellent Pod lifecycle control.

10. The development environment is equivalent to the online environment

Multiple namespace can be created in kubernetes, a set of environment can be easily copied using the same image, and a back-end service can be easily deployed with the use of image.

11. Journal

Treat the log as an event stream and use stdout to output and collect it, for example, to view it uniformly in ES.

twelve。 Management process

The background management task runs as an one-time process, and the kubectl exec enters the container for internal operation.

Three: Kubernetes and cloud origin

Cloud native applications are applications developed to run on the cloud. To run such applications, there must be an operating system, just like we run PC or mobile applications, and Kubernetes is such an operating system.

The above is all the content of the article "sample Analysis of Cloud Native in kubernetes". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report