Home Explore Blog CI



docker

content/manuals/compose/bridge/advanced-integration.md
d2840cb145ebb303213fbb24f3afd7abdcefe9a690d1ba8f0000000300000580
---
title: Advanced integration
linkTitle: Advanced
weight: 30
description: Learn about how Compose Bridge can function a kubectl plugin
keywords: kubernetes, compose, compose bridge, plugin, advanced
---

{{< summary-bar feature_name="Compose bridge" >}}

Compose Bridge can also function as a `kubectl` plugin, allowing you to integrate its capabilities directly into your Kubernetes command-line operations. This integration simplifies the process of converting and deploying applications from Docker Compose to Kubernetes.

## Use `compose-bridge` as a `kubectl` plugin

To use the `compose-bridge` binary as a `kubectl` plugin, you need to make sure that the binary is available in your PATH and the name of the binary is prefixed with `kubectl-`. 

1. Rename or copy the `compose-bridge` binary to `kubectl-compose_bridge`:

    ```console
    $ mv /path/to/compose-bridge /usr/local/bin/kubectl-compose_bridge
    ```

2. Ensure that the binary is executable:
    
    ```console
    $ chmod +x /usr/local/bin/kubectl-compose_bridge
    ```

3. Verify that the plugin is recognized by `kubectl`:

    ```console
    $ kubectl plugin list
    ```

    In the output, you should see `kubectl-compose_bridge`.

4. Now you can use `compose-bridge` as a `kubectl` plugin:

    ```console
   $ kubectl compose-bridge [command]
    ```

Replace `[command]` with any `compose-bridge` command you want to use.

Chunks
a4aa0f6a (1st chunk of `content/manuals/compose/bridge/advanced-integration.md`)
Title: Using Compose Bridge as a Kubectl Plugin
Summary
Compose Bridge can be used as a kubectl plugin to streamline the conversion and deployment of Docker Compose applications to Kubernetes. To use it as a plugin, rename the compose-bridge binary to kubectl-compose_bridge, ensure it's in your PATH and executable, and verify it's recognized by kubectl. You can then use it like any other kubectl plugin with the command `kubectl compose-bridge [command]`.