https://github.com/codefresh-io/cf-kompose-plugin
Codefresh Kompose Plugin
https://github.com/codefresh-io/cf-kompose-plugin
codefresh codefresh-plugin docker docker-compose kompose kubernetes
Last synced: 4 months ago
JSON representation
Codefresh Kompose Plugin
- Host: GitHub
- URL: https://github.com/codefresh-io/cf-kompose-plugin
- Owner: codefresh-io
- License: apache-2.0
- Created: 2017-11-27T11:47:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-14T17:59:24.000Z (over 3 years ago)
- Last Synced: 2025-04-25T14:59:41.174Z (10 months ago)
- Topics: codefresh, codefresh-plugin, docker, docker-compose, kompose, kubernetes
- Language: Shell
- Size: 6.84 KB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Codefresh Kompose Plugin
Use Codefresh [Kompose](http://kompose.io) plugin to deploy or convert a Docker Compose file into Kubernetes resources.
## Usage
Set required and optional environment variable and add the following step to your Codefresh pipeline:
```yaml
---
version: '1.0'
steps:
...
release_to_env:
image: codefresh/plugin-kompose:v1.5.0
...
```
## Environment Variables
- **required** `KUBE_CONTEXT` - Kubernetes context to use
- `FILE` - Docker Compose file to deploy (default `docker-compose.yaml` file)
- `NAMESPACE` - target Kubernetes namespace (default `default` namespace)
- `REPLICAS` - specify the number of replicas generated (default `1`)
- `VOLUMES` - volumes to be generated (`persistentVolumeClaim`|`emptyDir`) (default `persistentVolumeClaim`)
- `DRY_RUN` - do a "dry run" (print out) deployment (do not install anything, useful for Debug)
- `DEBUG` - print verbose install output
## Kubernetes Configuration
Add Kubernetes integration to Codefresh: `> Account Settings > Integration > Kubernetes`. From now on, you can use added Kubernetes cluster in Codefresh pipeline, addressing its context by the name you see in `Clusters` menu.
## Building Plugin
Use `docker build` command to build the plugin.
Two build arguments can be provided to override default `kubectl`, `helm` and `kompose` version:
- `HELM_VERSION` - default to `latest`
- `KOMPOSE_VERSION` - default to `v1.5.0`