Comments (6)
I duplicated everything in arch linux as well, same exact issue there.
from kompose.
hmm using the release binary works just fine:
curl -L https://github.com/kubernetes/kompose/releases/download/v1.32.0/kompose-linux-amd64 -o kompose
so this is specific to the go installation?
from kompose.
I duplicated everything in arch linux as well, same exact issue there.
Hmmm really odd, can you run it with kompose convert -v
for verbose output?
It could be that the binary when installing via go is messed up / or using an old binary.
from kompose.
yeah, I've tried to replicate it here in this Dockerfile:
FROM debian:bookworm
# Install dependencies
RUN apt-get update && apt-get install -y \
curl \
gnupg \
wget
# Install Golang 1.19.8
RUN curl -LO https://golang.org/dl/go1.19.8.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.19.8.linux-amd64.tar.gz && \
rm go1.19.8.linux-amd64.tar.gz
# Set environment variables
ENV PATH="/usr/local/go/bin:/root/go/bin:${PATH}"
RUN go install github.com/kubernetes/kompose@latest
WORKDIR /test
RUN wget https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml
# Run the command on container startup
CMD [ "kompose", "convert", "-f", "compose.yaml" ]
a than
docker build -t kompose-test .
docker run kompose-test
Output:
harry@fedora:~/dev/test$ docker run kompose-test
INFO Kubernetes file "redis-leader-service.yaml" created
INFO Kubernetes file "redis-replica-service.yaml" created
INFO Kubernetes file "web-service.yaml" created
INFO Kubernetes file "redis-leader-deployment.yaml" created
INFO Kubernetes file "redis-replica-deployment.yaml" created
INFO Kubernetes file "web-deployment.yaml" created
from kompose.
same here, successfully converted with golang 1.19.8 and kompose@latest
DEBU Checking validation of provider: kubernetes
DEBU Checking validation of controller:
DEBU Compose file dir: /app
DEBU Target Dir: .
INFO Kubernetes file "redis-leader-service.yaml" created
INFO Kubernetes file "redis-replica-service.yaml" created
INFO Kubernetes file "web-service.yaml" created
INFO Kubernetes file "redis-leader-deployment.yaml" created
INFO Kubernetes file "redis-replica-deployment.yaml" created
INFO Kubernetes file "web-deployment.yaml" created
from kompose.
Closing this for now as unreproduceable.
from kompose.
Related Issues (20)
- [BUG] Conflicting name assigned to configmap generated for compose referencing ".env" files HOT 2
- Create ConfigMaps automatically from existing docker-compose volume mounts. HOT 2
- Add Labels for CronJob HOT 1
- docker-compose to k8s HOT 2
- Consolidate filenames in tests from docker-compose[.*].y[a]ml to compose[.*].yaml
- Website does not have the correct trademark disclaimer
- [BUG] Kompose Client can't create pods / cronjobs
- [BUG] Bump Alpine HOT 2
- [BUG] Update README.md doc HOT 7
- [BUG] Creating ConfigMaps from volume mounts in windows is unsuccessful when the working directory is specified as an absolute path.
- [BUG] Creating ConfigMaps from volume mounts with CRLF characters should be converted as text and not binary.
- [BUG] kompose dont respect target of compose build
- Support for `network_mode: service:`* HOT 4
- [BUG] Environment variables containing `status:` are removed HOT 1
- [BUG] mapping format of services[].env_file is not supported HOT 1
- Reorganize flags on --help page HOT 1
- Remove "Convert Docker Compose file" to just "Convert Compose file"
- Support adding condition to compose depends_on / warn the user HOT 2
- [BUG] build-config incompatible for openshift target
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kompose.