docker / compose-on-kubernetes

Deploy applications described in Compose onto Kubernetes clusters
Apache License 2.0
1.42k stars 159 forks source link

Mapping to job? #118

Closed denisa closed 3 years ago

denisa commented 5 years ago
deploy:
  replicas: 1
  restart_policy:
    condition: on-failure

has two very different behavior: in the docker world, the service is restarted until it completes successfully, then it is left to rest. in the kubernetes world, the service is constantly restarted, even after it has completed successfully

It seems that the (expected) docker behavior would best be achieved by mapping the service to a Job

silvin-lubecki commented 5 years ago

Hello @denisa , thank you for this issue. We have plan about Kubernetes jobs, so yes it may fit with what you propose.

chris-crone commented 3 years ago

Hi! Thanks for your feedback. Unfortunately we're no longer maintaining this repository so I will close this issue.