Using Multiple Adapters
Advanced Configuration
Meshery is capable of running zero or more adapters. Meshery offers many features without the need for adapters. Adapters are optional components that enhance and extend Mesheryβs core functionality.
Modifying the default adapter deployment configuration
The number of adapters, type of adapters, where they are deployed, how they are named and what port they are exposed on are all configurable deployment options. To modify the default configuration, find ~/.meshery/meshery.yaml on your system. ~/.meshery/meshery.yaml is a Docker Compose file.
Configuration: Running fewer Meshery adapters
To customize which Meshery Adapters are used in which deployments, customize your contexts in your meshconfig.
Recommended:
Configure your meshconfig using mesheryctl system context to customize which Meshery Adapters are used in which deployments.
Alternative:
Alternatively, directly modify the ~/.meshery/meshery.yaml configuration file, removing the entries for any adapters you want to remove from your deployment.
Configuration: Running more than one instance of the same Meshery adapter
The default configuration of a Meshery deployment includes one instance of each of the Meshery Adapters (that have reached a stable version status). You may choose to run multiple instances of the same type of Meshery Adapter; for example, two instances of the Meshery Adapter for NGINX Service Mesh. To do so, you can use either of Mesheryβs clients to modify your Meshery deployment:
- Using
mesheryctl, modify~/.meshery/meshery.yamlto include multiple copies of the given adapter. - Using Meshery UI, navigate to the Settings page and enter the host and port of your additional adapter.
Configuration: Choosing an adapter while installing Mesheryctl
When installing mesheryctl using the Bash installation script, you can choose which adapters to load.
Do so by passing the ADAPTERS environment variable to the Meshery Bash script.
For example:
curl -L https://meshery.io/install | ADAPTERS=consul PLATFORM=kubernetes bash - installs mesheryctl and starts Meshery Server in your connected Kubernetes cluster, deploying only the Meshery Adapter for Consul and not the rest of Mesheryβs adapters.
Demo of Meshery managing deployments across multiple Kubernetes clusters:
See on YouTube: Cloud Native Austin Virtual Meetup: April 2020