Questions tagged [kompose]

Kompose is a tool to convert Docker Compose YAML files to Kubernetes artifacts. Use this tag for questions about using the Kompose tool, including specific features of Docker Compose syntax and about adjusting or deploying the resulting Kubernetes YAML files.

Kompose is a tool to convert Docker Compose YAML files to Kubernetes artifacts. It is eases migration from a single-host Docker Compose setup to a full Kubernetes cluster.

Kompose does not support every Docker Compose feature; see the Kompose Conversion Matrix for an official summary. Some Docker features like host bind mounts or populating named volumes do not translate well into Kubernetes, and a Kompose-based conversion may need to make additional manual updates to the generated YAML.

Use this tag for questions about using the Kompose tool, including modifying the resulting YAML or porting specific Docker features. It frequently will make sense to also label these questions with or , since this tool intersects with both topics.

61 questions
15
votes
2 answers

Unable to create a tarball: archive/tar: write too long

I am attempting to run a docker-compose file using kompose up. I am on Mac OS High Sierra, running latest and greatest versions of everything (Docker CE 17.12.0, VirtualBox 5.2.8 and kompose 1.11.0). My docker-compose file is: version:…
horcle_buzz
  • 2,101
  • 3
  • 30
  • 59
6
votes
1 answer

Convert kubernetes config to docker-compose file (reverse kompose)

Kompose translates docker-compose.yml files to Kubernetes config, allowing you to use docker-compose.yaml as a single source of truth if you develop locally with docker-compose and deploy on k8s. Is there a tool that does the reverse? I'd like to…
Andreas Jansson
  • 3,137
  • 2
  • 30
  • 40
4
votes
1 answer

How to specify imagePullSecrets in docker-compose.yml to get converted by kompose

I have got a following yml file after doing kompose convert But, I want to add imagePullSecrets in the conversion output. Instead of everytime making a local change, I would like to put something in docker-compose.yml so that it gets converted…
nizam.sp
  • 4,002
  • 5
  • 39
  • 63
3
votes
2 answers

Connect to mongodb with mongoose both in kubernetes

I have a microservice which I developed and tested using docker-compose. Now I would like to deploy it to kubernetes. Part of my docker-compose file looks like this: tasksdb: container_name: tasks-db image: mongo:4.4.1 restart: always …
Denn
  • 447
  • 1
  • 6
  • 27
2
votes
2 answers

convert docker-compose.yml file to kubernetes

I am converting a docker-compose file to kubernetes using kompose running the follwing command: $kompose convert -f docker-compose.yml -o kubernetes_image.yaml After the command finish the ouput is the following. WARN Volume mount on the host…
rdinis
  • 21
  • 2
2
votes
1 answer

Kuberbetes: Kompose up error while deploying application

I am attempting to run compose up and am running the following command sudo kompose up --push-image=false --verbose kompose builds all the containers successfully but right at the very end throws this error: FATA Error while deploying application:…
Winux503
  • 39
  • 3
2
votes
0 answers

skaffold init using docker compose configuration fails with "Nil Pointer Dereference" error

I am trying to generate skaffold configuration for docker-compose configuration using the following init command + skaffold init --compose-file docker-compose.yml --verbosity=info Expected behavior: The command should generate k8s manifests based…
Bhavani Prasad
  • 1,079
  • 1
  • 9
  • 26
2
votes
0 answers

executing kompose in openshift throws Unauthorized at the end

Trying to use kompose to deploy a docker-compose file below into OpenShift. At the last line I just get Unauthorized error which doesnt point where is the root cause. Please note before this I have successfully authenticated using oc login and…
2
votes
1 answer

kompose up fail with unable to build image

I am trying to convert my docker-compose.yml file which works perfectly fine to run it in minikube with kubectl. I have installed minikube, kubectl and kompose, when I try to run I get the following error: …
Naggappan Ramukannan
  • 2,564
  • 9
  • 36
  • 59
2
votes
1 answer

kubernetes kompose up Unsupported env_file key

i am trying to migrate a docrized project to kubernetes, i have used Kompose to convert the project kompose --file docker-compose.yml convert, when i run kompose up after migrating the files i get this error $ kompose up WARN Unsupported…
zewOlF
  • 403
  • 3
  • 8
  • 13
2
votes
1 answer

Kompose creates many files from one compose file?

I'm in the process of trying to convert a Docker Cloud based setup to k8s. I've found the k8s kompose tool which can convert a docker compose file into a k8s file. Based on my results I'm wondering if it is possible to define a full stack in a…
Philip Kirkbride
  • 21,381
  • 38
  • 125
  • 225
1
vote
1 answer

Neo4j docker-compose to kubernetes

I want to go from docker-compose to kubernetes. I already have a docker-compose, and docker images that work perfectly fine. Now I have difficulty deploying it to kubernetes, specifically with neo4j... This is my docker-compose.yaml: version:…
cryxnet
  • 31
  • 2
1
vote
0 answers

After converting docker-compose.yml into k8s using kompose.io , Kubernetes pods are in pending state due to PVC

I have used kompose.io to convert the docker-compose.yml (given at the end) into kubernetes yaml deployments and then applied kubeclt apply -f . to deploy them in my 4-node k8s cluster in cloudlab. But most of the pods are in pending due to the…
Azad Md Abul Kalam
  • 115
  • 1
  • 1
  • 7
1
vote
1 answer

Converting docker-compose using Kompose to deploy workloads on GKE

I have project written in Django Restframework, Celery for executing long running task, Redis as a broker and Flower for monitoring Celery task. I have written a Dockerfile & docker-compose.yaml to create a network and run this services inside…
Jeet Patel
  • 1,140
  • 18
  • 51
1
vote
1 answer

Container filesystem is empty when deploying k8s application with Minikube

I have a small web application (a Rails app called sofia) that I'm deploying locally with minikube. When I create the k8s resources and run my deployment, the containers do not contain any of the files that were supposed to be copied over during the…
abhchand
  • 515
  • 6
  • 13
1
2 3 4 5