Installing Sermant Injector
Sermant Agent is automatically mounted to container-deployed Spring Cloud applications through the Sermant Injector plug-in. These applications are connected to the ServiceComb engine or registry/configuration center with security authentication disabled through Sermant Agent. For details about Sermant Agent, see Sermant-agent User Manual.
Compared with Spring Cloud Huawei, Sermant Agent allows you to access the engine and use functions such as application registry and discovery, full-link dark launch, graceful startup and shutdown, and label routing without modifying application code. However, microservice governance is not supported.
Use either Sermant Agent or Spring Cloud Huawei to connect Spring Cloud applications to the exclusive ServiceComb engine. Do not use them at the same time to avoid conflicts.
This section describes how to install Sermant Injector for a CCE cluster bound to a Kubernetes environment.
Prerequisites
- A Kubernetes environment has been created. For details, see Creating a Kubernetes Environment in Resource Management Mode.
- A CCE cluster later than 1.15 has been bound in the environment. For details, see Binding a CCE Cluster.
- Namespace cse of the bound CCE cluster cannot contain the configuration item sermant-injector, key sermant-injector-secret, workload sermant-injector, or service sermant-injector. Otherwise, the plug-in installation will fail.
- For details about namespaces, see Managing Namespaces.
- For details about configuration items, see Managing Configuration Items.
- For details about secrets, see Managing Secrets.
- For details about workloads, see Overview.
- For details about services, see Overview.
- An exclusive ServiceComb engine 2.4.0 or later or registry/configuration center with security authentication disabled has been managed in the environment. For details, see Managing Basic Resources.
Installing Sermant Injector
- Log in to ServiceStage.
- Choose Environment Management. The Environment Management page is displayed.
- Click the target environment. The Overview page is displayed.
- Choose Plug-in Management.
- Select Sermant Injector under Addons.
- Set the parameters by referring to the following table.
Parameter
Description
CCE Cluster
By default, a managed CCE cluster in the current environment is selected.
Server Type
CPU architecture of the CCE cluster.
- x86_64
- aarch64
Associated Microservice Engine
Select the exclusive ServiceComb engine or registry/configuration center for installing the plug-in.
- Click OK.
- After the Sermant Injector plug-in is successfully installed, the content listed in the following table is created.
Name
Description
Namespace
Create a namespace named cse in the CCE cluster selected in 6.
NOTE:If the CCE cluster selected in 6 already has a namespace named cse, the namespace will be reused when the Sermant Injector plug-in is installed.
ConfigMaps
In namespace cse of the CCE cluster selected in 6, create a configuration item named sermant-injector.
Secrets
In namespace cse of the CCE cluster selected in 6, create a secret named sermant-injector-secret.
Workloads
In namespace cse of the CCE cluster selected in 6, create a workload named sermant-injector.
Services
In namespace cse of the CCE cluster selected in 6, create a service named sermant-injector.
- If the Sermant Injector plug-in fails to be installed, try again by referring to Reinstalling Sermant Injector.
- If a CCE cluster with the Sermant Injector plug-in installed is bound to another environment, manage the exclusive ServiceComb engine or registry/configuration center associated with the Sermant Injector plug-in in that environment. Otherwise, the Sermant Injector plug-in will be unavailable in that environment.
For details about how to manage exclusive ServiceComb engines, see Managing Basic Resources.
- After the Sermant Injector plug-in is successfully installed, the content listed in the following table is created.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot