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 |
The previous section introduced the evolution of ...
For a long time, the relationship between the thr...
Technology has changed the way we conduct diagnos...
Although research shows that 5G technology will b...
DiyVM is a Chinese hosting company that has been ...
In the world of computer networks, one of the mos...
On February 1, 2018, the annual core media commun...
The epoch-making 5G technology, in addition to a ...
On October 15, Huawei held a press conference tit...
[[428843]] Since the issuance of the "Action...
[51CTO.com original article] "Visualization&...
Friends who need CN2 GIA line hosts can pay atten...
In the past decade, the field of machine learning...
The statement that "5G is coming and Wi-Fi w...
BuyVM is a long-established foreign VPS hosting c...