github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/concepts/plugins/index.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: Plugins
     4  description: Learn about how external plugins work in Nomad.
     5  ---
     6  
     7  # Plugins
     8  
     9  Nomad 0.9 introduced a plugin framework which allows users to extend the
    10  functionality of some components within Nomad. The design of the plugin system
    11  is inspired by the lessons learned from plugin systems implemented in other
    12  HashiCorp products such as Terraform and Vault.
    13  
    14  The following components are currently pluggable within Nomad:
    15  
    16  - [Task Drivers](/docs/concepts/plugins/task-drivers)
    17  - [Devices](/docs/concepts/plugins/devices)
    18  
    19  # Architecture
    20  
    21  The Nomad plugin framework uses the [go-plugin][goplugin] project to expose
    22  a language independent plugin interface. Plugins implement a set of gRPC
    23  services and methods which Nomad manages by running the plugin and calling the
    24  implemented RPCs. This means that plugins are free to be implemented in the
    25  author's language of choice.
    26  
    27  To make plugin development easier, a set of go interfaces and structs exist for
    28  each plugin type that abstract away go-plugin and the gRPC interface. The
    29  guides in this documentation reference these abstractions for ease of use.
    30  
    31  [goplugin]: https://github.com/hashicorp/go-plugin