Support for migrating docker-compose solutions to kubernetes #820
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi
I'm using
podman-compose
to migrate docker-composite solutions tokubernetes
via:podman-compose uses the
_
character as a delimiter when generating volume and container names.For example, when starting a service stack
hello-python in POD:
we get a pod with container names
hello-python_redis_1,``hello-python_web_1
:and volume name
hello-python_redis
After generating the kube- manifest
and trying to run it,
we receive an error message:
This pull request supports the
--kubecompat
flag, which when specified uses the-
separator character when generating names of containers and volumes.When
podman-compose
called with a flag--kubecompat
we get a pod with container names hello-python-redis-1, hello-python-web-1:
and volume name hello-python-redis
After generating the kube- manifest
and trying to run it,
we get a correctly deployed pod:
The reason for using the
_
character as a delimiter is not obvious to me.Maybe it's worth using the
-
character as a default separator?