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

How to integrate Kubeless with Kubernetes

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

Share

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

Editor to share with you how to integrate Kubernetes Kubeless, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!

Summary: what are the benefits of Kubeless as a Serverless framework for actual project development? Take JAVA development as an example to illustrate

Single application: high service coupling, inconvenient expansion, high demand for hardware resources for high traffic applications, and waste of idle resources

Micro-services: reduce service granularity and coupling, expand more, but the resource utilization rate is not very high For example, in the case of high traffic, there may be only one API with a high request frequency. Each service created is a separate JVM, and the size of allocated resources will be specified during initialization. For low-frequency applications, resources will be idle when used, because some space will be reserved according to the traffic to ensure the normal operation of the service during the service operation phase. To complete a complete set of micro-service system will increase the difficulty of development and the cost of operation and maintenance.

Serverless: reduces the application granularity, realizes high decoupling, and provides services in the form of micro-functions, which can be configured according to the requested traffic and utilization rate, and can really be used on demand; if you use the services provided by cloud vendors, developers only need to care about business functions, which greatly reduces the difficulty and cost of development, and the front end can even directly develop the uploading code of business modules, reducing team size and collaborative communication costs.

1. Kubernetes installation starts normally, download kubeless-non-rbac-v1.0.6.yaml file, install and configure Kubeless (version specified according to your current system)

Second, download and extract kubeless. I use v1.0.6 here, switch to the current directory: sudo mv bundles/kubeless_darwin-amd64/kubeless / usr/local/bin or update the configuration file to set the environment variable, and check whether the kubeless instruction is in effect.

Third, create a namespace: kubectl create ns kubeless

Create the test file test.py and deploy the application (kubeless-v1.0.6 supports JDK11, Python2.7 testing is used here)

5. designated external access port

The above is all the content of the article "how Kubernetes integrates Kubeless". 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