* ENGDOCS-2078 * edits * edits * SME review edits * Apply suggestions from code review Co-authored-by: Craig Osterhout <103533812+craig-osterhout@users.noreply.github.com> * Update content/compose/bridge/_index.md Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com> --------- Co-authored-by: Craig Osterhout <103533812+craig-osterhout@users.noreply.github.com> Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
1.3 KiB
title, description, keywords
| title | description | keywords |
|---|---|---|
| Advanced integration | Learn about how Compose Bridge can function a kubectl plugin | kubernetes, compose, compose bridge, plugin, advanced |
{{< include "compose-bridge-early-access.md" >}}
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-.
-
Rename or copy the
compose-bridgebinary tokubectl-compose_bridge:$ mv /path/to/compose-bridge /usr/local/bin/kubectl-compose_bridge -
Ensure that the binary is executable:
$ chmod +x /usr/local/bin/kubectl-compose_bridge -
Verify that the plugin is recognized by
kubectl:$ kubectl plugin listIn the output, you should see
kubectl-compose_bridge. -
Now you can use
compose-bridgeas akubectlplugin:$ kubectl compose-bridge [command]
Replace [command] with any compose-bridge command you want to use.