-
Notifications
You must be signed in to change notification settings - Fork 771
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
restart: Unsupported value: "OnFailure": supported values: Always #318
Comments
So I tried this in continuation with discussion at #236 (comment) |
But this is perfectly valid thing $ cat pod-maria.yml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
name: mariadb
spec:
containers:
- image: centos/mariadb
name: mariadb
restartPolicy: OnFailure a pod without controller can have |
I'm afraid that this doesn't have easy solution. But we could get away with just ignoring it, and showing warning explaining that this is ignored and |
@kadel but then this is not solving our original problem of how do we simulate k8s-job like workflow with kompose and docker-compose? |
I'm not even sure if we should simulate Kubernetes job workflow with kompose and docker-compose. You are proposing creating Job if there is |
so with #334 pod will be created instead of Job if there is |
@ngtuna yes you are right! |
With #334 merged this issue is solved. |
So, what is the point of having Also, I suppose one could use |
Using this docker-compose file
which fails as
when converted it looks like this:
so this cannot be
OnFailure
it always has to beAlways
which stops us from usingdocker-compose
'srestart: on-failure
to simulate kubernetes jobs.The text was updated successfully, but these errors were encountered: