Installation and Deployment
Software
- OS: openEuler 23.03
Hardware
- x86_64
Preparing the Environment
Install the openEuler operating system. For details, see the openEuler 23.03 Installation Guide.
The root permission is required for installing Kmesh.
Installing Kmesh
Install the Kmesh software package.
yum install Kmesh
Check whether the installation is successful. If the command output contains the name of the software package, the installation is successful.
rpm -q Kmesh
Deploying Kmesh
Cluster Startup Mode
Before starting Kmesh, modify the configuration to set the IP address of the control plane program (for example, Istiod IP address) in the cluster.
"clusters": [
{
"name": "xds-grpc",
"type" : "STATIC",
"connect_timeout": "1s",
"lb_policy": "ROUND_ROBIN",
"load_assignment": {
"cluster_name": "xds-grpc",
"endpoints": [{
"lb_endpoints": [{
"endpoint": {
"address":{
"socket_address": {
"protocol": "TCP",
"address": "192.168.0.1", // Set the control plane IP address (for example, Istiod IP address).
"port_value": 15010
}
}
}
}]
}]
Local Startup Mode
Before starting Kmesh, modify kmesh.service
to disable ADS.
$ vim /usr/lib/systemd/system/kmesh.service
ExecStart=/usr/bin/kmesh-daemon -enable-kmesh -enable-ads=false
$ systemctl daemon-reload
When the Kmesh service is started, the kmesh-daemon program is invoked. For details about how to use the kmesh-daemon program, see Using kmesh-daemon.
Starting Kmesh
# Start the Kmesh service.
$ systemctl start kmesh.service
# Check the Kmesh running status.
$ systemctl status kmesh.service
Stopping Kmesh
# Stop the Kmesh service.
$ systemctl stop kmesh.service