Skip to content

Commit

Permalink
fix: migrate compose to kubefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxd committed Nov 11, 2023
1 parent f3ef5d0 commit 9c789d6
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Migrate from podman-compose to Kubefiles

## Overview

Kubefiles are a way to define a podman pod and containers in a single file. They are similar to docker-compose files,
but can also be used with Kubernetes.

## Requirements

The podman-compose or docker-compose file must be started with `podman-compose up -d` and the created podman pod should be listed with `podman pod ls`.

## Generate Kubefiles

### Pod

Get the pod name via `podman pod ls` and generate the Kubefile with:

```bash
podman kube generate <pod_name> -f pod.kube.yaml
```

### Persistent Volume Claim

Get the volume name via `podman volume ls` and generate the Kubefile with:

```bash
podman kube generate <volume_name> -f pvc.kube.yaml
```

0 comments on commit 9c789d6

Please sign in to comment.