Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conversion documentation #448

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

cdrage
Copy link
Member

@cdrage cdrage commented Feb 23, 2017

This adds a document regarding all the values which are converted from
Docker Compose to Kubernetes / OpenShift. Adding both notes as well as
the value that docker-compose is mapped to in Kubernetes / OpenShift.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 23, 2017
@cdrage cdrage force-pushed the add-compatibility-table branch 2 times, most recently from 655931b to e09e591 Compare February 23, 2017 17:50
|-------------------|-----------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
| | | | | |
| Service | | | | |
| build | | YES | [BuildConfig](https://docs.openshift.com/enterprise/3.1/dev_guide/builds.html#defining-a-buildconfig) | Converts, but local builds are not yet supported. See issue [97](https://github.com/kubernetes-incubator/kompose/issues/97) |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe mention that build is supported only for OpenShift.
For Kubernetes build in unsupported

| stop_grace_period | | UNSUPPORTED | | |
| stop_signal | | UNSUPPORTED | | |
| sysctls | | UNSUPPORTED | | |
| ulimits | | UNSUPPORTED | | |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kubernets issue about ulimit support - kubernetes/kubernetes#3595

| | | | | |
| Service | | | | |
| build | | YES | [BuildConfig](https://docs.openshift.com/enterprise/3.1/dev_guide/builds.html#defining-a-buildconfig) | Converts, but local builds are not yet supported. See issue [97](https://github.com/kubernetes-incubator/kompose/issues/97) |
| cap_add, cap_drop | | YES | N/A | |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a mistake in the code. We are reading cap_add and cap_drop but we are not using it anywhere.

PR #468 is adding cap_add and cap_drop to unsupported keys.

| container_name | | YES | Mapped to both [Metadata.Name](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/identifiers.md) and [Deployment.Spec.Containers.Name](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/identifiers.md) | |
| deploy | v3 | UNSUPPORTED | | Upcoming support started |
| devices | | UNSUPPORTED | N/A | Not supported within Kubernetes, see this [issue](https://github.com/kubernetes/kubernetes/issues/5607) |
| depends_on | | UNSUPPORTED | N/A | Elaborate on why this isn't supported and what happens when it's converted. Multiple users in #kompose has voiced concerns |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What concerns were voiced?
We have depends_on in unsupported keys. I'm not sure if that is right, maybe yes, maybe no :-D
It needs more explanation.
depends_on defines order in which containers should start. Problem is that there is no way to ensure that in Kubernetes.
Questionis is if it matters or not :-)

| env_file | | UNSUPPORTED | | |
| environment | | YES | [Pod.Spec.Container.Env](https://kubernetes.io/docs/api-reference/v1/definitions/#_v1_envvar) | |
| expose | | YES | [Service.Spec.Ports](https://kubernetes.io/docs/api-reference/v1/definitions/#_v1_containerport) | |
| extends | v2 | UNSUPPORTED | N/A | |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extends is parser thing. So it is possible that we get ServiceConfig from libcompose that is already "extended".
It might be good to test it.

@kadel
Copy link
Member

kadel commented Mar 2, 2017

we should also have link to this document in readme

@cdrage cdrage force-pushed the add-compatibility-table branch from e09e591 to 9562146 Compare March 2, 2017 14:11
@cdrage
Copy link
Member Author

cdrage commented Mar 2, 2017

@kadel I agree. I'll add an "index" to the README eventually.

I've updated the PR based on your comments as well as converted it to a "compact" table instead of having all the spacing everywhere.

This adds a document regarding all the values which are converted from
Docker Compose to Kubernetes / OpenShift. Adding both notes as well as
the value that docker-compose is mapped to in Kubernetes / OpenShift.
@cdrage cdrage force-pushed the add-compatibility-table branch from 9562146 to 40a9fbc Compare March 2, 2017 14:17
@cdrage
Copy link
Member Author

cdrage commented Mar 2, 2017

@kadel Updated again, I shortened the unsupported column to Y/N as well as labeled the separate sections by boldness (volumes, services, networks, etc.). Looks better now 👍

@cdrage cdrage merged commit a6aec65 into kubernetes:master Mar 2, 2017
@cdrage cdrage deleted the add-compatibility-table branch March 30, 2017 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants