You can read more here

https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/

Le mar. 18 juin 2019 à 10:44, William Brown <wbrown@suse.de> a écrit :


> On 17 Jun 2019, at 16:25, Olivier JUDITH <gnulux@gmail.com> wrote:
>
> From my understanding readiness operates when the pod starts.
> If it doesn't reach the replica your pods will never initialize.
> An option (for k8s) can be another container (in the pod) "389-ds-headless" which will do all the steps required to enable replication.
>
> > Okay - how does the content of secrets.yaml get sent to the process running in the container?
> By files or by variables but are always present in the container.
>
> To enable replicas , k8s provides StatefullSet controller which is better to manage multiple instances/replication.

Is there some documentation on this I could have a look at? It would be good for me to understand to help advise on this, because dynamic scaling of replicas is something I'd really love to see supported in k8s and upstream so we can provide a really good experience for people :)

I think it's time for me to setup k8s at home again to learn this .....

>
> Regards
>
>
> Le lun. 17 juin 2019 à 13:57, aravind gosukonda <arabha123@gmail.com> a écrit :
> >
> > Is there also a way in k8s that when an event occurs (IE a new container is launched in a
> > pod) that a program can be called in existing containers? (This way we can automate
> > replica addition/removal)
> >
> What I'm planning to do is to use readiness probes, which can be scripts, to handle dynamic configuration of replicas. I haven't seen any way that enables existing containers to know when a new container has been launched or an old container deleted.
>
> Regards,
> Aravind G
> _______________________________________________
> 389-users mailing list -- 389-users@lists.fedoraproject.org
> To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org
> _______________________________________________
> 389-users mailing list -- 389-users@lists.fedoraproject.org
> To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org


Sincerely,

William Brown

Senior Software Engineer, 389 Directory Server
SUSE Labs
_______________________________________________
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org