Re: [akka-user] Re: Akka Cluster (and Cluster Client) on Kubernetes

2016-09-26 Thread 'Ruben Wagner' via Akka User List
Hi,

it took me some time, to find some time. But finally I created a github 
project from my solution:
https://github.com/ouven/akka-k8s-seednode

Ruben

Am Dienstag, 19. Juli 2016 02:11:06 UTC+2 schrieb Ashley Aitken:
>
>
> Thanks for sharing Ruben.
>
> I was considering if it could be done without a fixed seed node.
>
> I am keen to see your github project when you have time.
>
>
> On 19 Jul 2016, at 3:44 AM, 'Ruben Wagner' via Akka User List <
> akka...@googlegroups.com > wrote:
>
> Hi,
>
> actually the configuration is a bit tricky, because you need to set a 
> fixed seed node, which is not fixed in Kubernetes. I looked at the 
> Cassandra pod and ported it to Akka Cluster (s. attached file). It derives 
> the config from the Kubernetes API and then starts the Akka Cluster. If the 
> kubernetes service does not exist yet, it has to fail fast, so it can be 
> restarted from the Kubernetes controller, that's why it throws an 
> exception. As an entry point in the main class one can use something like 
> this:
>
> ...
> val kubeConfig = KubernetesSeednodeConfig.getConfig("akka-kube")
> val config = kubeConfig.withFallback(ConfigFactory.load()).resolve()
> val system = ActorSystem("akka-kube", config)
> ...
>
> I will put this all together in a github project, when I find the time and 
> post the link here. Also I did not have the time to play around with, it is 
> not perfect and comes with no warranties.
>
> Ruben
>
> Am Montag, 18. Juli 2016 17:24:34 UTC+2 schrieb Mahmoud Atef:
>>
>> Did it work with you, I mean Akka cluster over kubernetes?
>>
>>
>> On Monday, March 2, 2015 at 7:44:13 PM UTC+2, Ashley Aitken wrote:
>>>
>>>
>>> Howdy All,
>>>
>>> Has anyone had any experience getting an Akka Cluster and Cluster Client 
>>> running on Kubernetes, e.g. on Google Container Engine (GCE)?
>>>
>>> I note the problem with Akka dropping messages when the host IP address 
>>> doesn't match the container virtual IP address.
>>>
>>> I note the solution in Akka 2.4.
>>>
>>> I would most appreciate anyone confirming if they have an Akka Cluster 
>>> running on Kubernetes (on GCE or not) and sharing any tips / hints.
>>>
>>> Thanks in advance,
>>> Ashley.
>>>
>>> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: 
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> --- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/akka-user/obBNWy1bixI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> akka-user+...@googlegroups.com .
> To post to this group, send email to akka...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
> 
>
>

-- 
>>>>>>>>>>  Read the docs: http://akka.io/docs/
>>>>>>>>>>  Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Re: Akka Cluster (and Cluster Client) on Kubernetes

2016-07-18 Thread 'Ruben Wagner' via Akka User List
Hi,

actually the configuration is a bit tricky, because you need to set a fixed 
seed node, which is not fixed in Kubernetes. I looked at the Cassandra pod 
and ported it to Akka Cluster (s. attached file). It derives the config 
from the Kubernetes API and then starts the Akka Cluster. If the kubernetes 
service does not exist yet, it has to fail fast, so it can be restarted 
from the Kubernetes controller, that's why it throws an exception. As an 
entry point in the main class one can use something like this:

...
val kubeConfig = KubernetesSeednodeConfig.getConfig("akka-kube")
val config = kubeConfig.withFallback(ConfigFactory.load()).resolve()
val system = ActorSystem("akka-kube", config)
...

I will put this all together in a github project, when I find the time and 
post the link here. Also I did not have the time to play around with, it is 
not perfect and comes with no warranties.

Ruben

Am Montag, 18. Juli 2016 17:24:34 UTC+2 schrieb Mahmoud Atef:
>
> Did it work with you, I mean Akka cluster over kubernetes?
>
>
> On Monday, March 2, 2015 at 7:44:13 PM UTC+2, Ashley Aitken wrote:
>>
>>
>> Howdy All,
>>
>> Has anyone had any experience getting an Akka Cluster and Cluster Client 
>> running on Kubernetes, e.g. on Google Container Engine (GCE)?
>>
>> I note the problem with Akka dropping messages when the host IP address 
>> doesn't match the container virtual IP address.
>>
>> I note the solution in Akka 2.4.
>>
>> I would most appreciate anyone confirming if they have an Akka Cluster 
>> running on Kubernetes (on GCE or not) and sharing any tips / hints.
>>
>> Thanks in advance,
>> Ashley.
>>
>>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


KubernetesSeednodeConfig.scala
Description: Binary data