Skip to content

PoC: initialization of datadir #252

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

Closed
wants to merge 0 commits into from
Closed

PoC: initialization of datadir #252

wants to merge 0 commits into from

Conversation

kubco2
Copy link
Contributor

@kubco2 kubco2 commented Mar 12, 2019

This PR is to point idea. It does not update all entry points of container and all example templates for openshift.
Container side:
Idea is to add argument "init" into entry points of containers.
If this argument is used container exits after datadir initialization.

Openshift side:
Init containers are started before the pod app containers are started. They do not have probes so they have enough time to initialize datadir.
https://docs.openshift.com/container-platform/3.6/architecture/core_concepts/pods_and_services.html#pods-services-init-containers

@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

2 similar comments
@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@centos-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@kubco2 kubco2 requested review from pkubatrh, praiskup and hhorak March 12, 2019 18:24
@hhorak
Copy link
Member

hhorak commented Mar 12, 2019

I don't see any specific problem at this point, but it is a big enough change to think it through very well, to make sure it does not have any side effects.

@pkubatrh
Copy link
Member

I am not sure I understand the use case for this? From docs it seems like this is a way to wait for some outside services without time-outing the pod that needs said services to function.

Is this supposed to help out with cases where the pod gets restarted before it is ready? Why not just increase the probe timeouts instead?

@kubco2
Copy link
Contributor Author

kubco2 commented Jul 10, 2019

[test]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants