Re: pod inter connections inside k8s cluster

2018-09-19 Thread Tristan FAURE
I do agree with you but as I said my IT team wants to deploy small nodes on the cluster and sometimes my pods are too big and cannot be deployed, that's why I wanted to test separate pods. I looked for some links for my IT team but what are the recommendations for k8s cluster, several small

Re: pod inter connections inside k8s cluster

2018-09-19 Thread Vincent Latombe
Why do you use 2 different pods? Would be much simpler with a single one. Vincent Le mar. 18 sept. 2018 à 23:22, Tristan FAURE a écrit : > thank you for your answer, You were right about the plugin I used ( > ttps://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md >

Re: pod inter connections inside k8s cluster

2018-09-19 Thread Tristan FAURE
thank you for your answer, You were right about the plugin I used ( ttps://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md ), sorry to not mention that I will test the kubernetes cli plugin, but I think I will see

Re: pod inter connections inside k8s cluster

2018-09-18 Thread Jonathan Rogers
On 9/18/18 9:12 AM, Tristan FAURE wrote: > Hello all my previous message with edit : > Thank you to both of you for your answers. I was thinking about creating > services but my db is created then deleted during the build I was not > sure it was a good practice (and if it is possible) to create >

Re: pod inter connections inside k8s cluster

2018-09-18 Thread Tristan FAURE
Hello all my previous message with edit : Thank you to both of you for your answers. I was thinking about creating services but my db is created then deleted during the build I was not sure it was a good practice (and if it is possible) to create dynamically (and delete then) a service directly

Re: pod inter connections inside k8s cluster

2018-09-17 Thread Tristan FAURE
Thank you to both of you for your answers. I was thinking about creating services but my db is created then deleted during the build I was not sure it was a good practice (and if it is possible) to create dynamically (and delete then) a service directly from the jenkinsfile yaml. I will try

Re: pod inter connections inside k8s cluster

2018-09-17 Thread Jonathan Rogers
On 9/17/18 10:47 PM, Carlos Sanchez wrote: > You need to use services if you want to expose pods > If you put everything in one pod, you can use localhost to talk between > containers I'm not sure if you meant to respond to me or to Tristan FAURE. I would also recommend using a service to allow

Re: pod inter connections inside k8s cluster

2018-09-17 Thread Carlos Sanchez
You need to use services if you want to expose pods If you put everything in one pod, you can use localhost to talk between containers On Mon, Sep 17, 2018, 18:57 JonathanRRogers wrote: > > > On Monday, September 17, 2018 at 11:29:33 AM UTC-4, Tristan FAURE wrote: >> >> Hello, >> I need your

Re: pod inter connections inside k8s cluster

2018-09-17 Thread JonathanRRogers
On Monday, September 17, 2018 at 11:29:33 AM UTC-4, Tristan FAURE wrote: > > Hello, > I need your advice, i want to achieve integration tests using several pods > : > > pod 1 : database postgresql > pod 2 : build with maven image and test using a connection to pod 2 > > To implement that I