Introduction to Knative Knative implements its Serverless standard by integrating container building (or function), workload management (dynamic scaling), and event model. In the Knative architecture, the collaboration between the roles is shown in the following figure. Developers refer to the developers of Serverless services who can directly use the native Kubernetes API to deploy Serverless services based on Knative. Collaboration between roles in the Knative architecture Serving: manages serverless workloads, can be well integrated with events, and provides request-driven automatic scaling capabilities, and can be scaled down to zero when there are no services to be processed. The responsibility of the Serving component is to manage workloads to provide services to the outside world. The most important feature of the Serving component is the ability to automatically scale. Currently, its scaling boundaries are unlimited. Serving also has the ability to release in grayscale. This article will take the deployment of Knative services on Alibaba Cloud as an example to explain in detail how to deploy Knative related services. First, log in to the Container Service Management Console, as shown in the figure. Alibaba Cloud Container Service Management Console If there is no cluster, you can choose to create a cluster first, as shown in the following figure. Configuring and creating a cluster Creating a cluster is slow. Please wait patiently for the cluster to be created. If successful, it will be as shown in the figure. Schematic diagram of successful cluster creation After entering the cluster, select "Application" on the left, find "Knative" and click "One-click Deployment", as shown in the figure. Creating a Knative Application After a while, when Knative is installed, you can see that the core components are in the "deployed" state, as shown in the figure. Knative application deployment is complete So far, we have completed the deployment of Knative. Experience Test First, you need to create an EIP and bind it to the API Server service, as shown in the following figure. Quickly create a sample application After the creation is complete, you can see that a Serverless application has appeared in the console, as shown in the figure. The sample application was created successfully At this point, we can click the application name to view the details of the application, as shown in the figure below. View sample app details To facilitate testing, you can set up the Host locally: 101.200.87.158 helloworld-go.default.example.com After the settings are completed, open the domain name assigned by the system in the browser, and you can see that the expected results have been output, as shown in the figure. Browser Test Sample App So far, we have completed the deployment and testing of a Serverless application based on Knative. At this point, we can also manage the cluster through CloudShell. On the cluster list page, select Manage through CloudShell, as shown in the figure. Cluster management list Manage the created cluster through CloudShell, as shown in the figure. CloudShell window Execute the command: kubectl get knative You can see the newly deployed Knative application, as shown in the figure. CloudShell View Knative Application |
On November 25 , the 2023 6th SD-WAN & SASE C...
In the past decade, 10G and 40G technologies have...
More than 2 years ago, I recorded the process of ...
On July 19, in the third batch of specialized, so...
With the development and popularization of popula...
[[271144]] "There are few things in the worl...
introduction: 1: CC attack is normal business log...
The tiger is gone and the rabbit is here, everyth...
There is a place that gathers the most energetic ...
DesiVPS has launched a 2023 New Year promotion, w...
This article is reprinted from the WeChat public ...
With the end of the extended Spring Festival holi...
edgeNAT is a Chinese hosting company established ...
China Unicom is currently actively promoting the ...
While we are still struggling to decide whether t...