[kubernetes-users] pod migration if the node goes down

2018-08-06 Thread Niranjan Kolly
Hi,

I have a K8 cluster with 3 master and 3 slave on centOS VM.

we have installed KONG and cassandra with 3 replica each. As a part of the
resiliency we brought down one node , but still the "kubectl get pods"
command shows the pods running in that node showing up.

As a K8 feature the master should spin the pods in the available node. How
to do this configuration, but the master is not doing until we delete the
pod manually.

Please help me how to setup this.

-- 
Regards
NiranjanKolly

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


[kubernetes-users] Atomic API requests

2018-08-06 Thread Craig Buchanan
Is it possible to send multiple API requests atomically to the Kubernetes 
master? Or do I need to implement rollback in my application code?

E.g. I need to create a configmap, deployment, and service from an SDK. If 
any of these API requests fails for any reason, I would like to rollback 
and delete the resources that have already been created.

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


Re: [kubernetes-users] What is the default 'name' of the kubernetes master cluster host?

2018-08-06 Thread Stephen Kong
Thanks. It works. But how do I found out the valid name for my influxDB??

I just discovered --sink=influxdb:http//*influxdb*:8086 is not valid...


On Monday, August 6, 2018 at 12:48:32 PM UTC-4, Daniel Smith wrote:
>
> If you use the standard kube-dns add-on, you can refer to apiserver as 
> 'kubernetes.default.svc.cluster.local.' The port is 443.
>
> You could also use the ClusterIP of the service directly, as it is 
> predictably going to be the first IP in the Service IP range, unless you've 
> done some manual surgery to your backend storage :) 
>
> But I would use the name.
>
> On Sun, Aug 5, 2018 at 5:27 PM Stephen Kong  > wrote:
>
>> In my heapster.yaml, it references the IP of the master cluster host (
>> https://142.141.33.10:6443). Is there any *built-in name* I could use 
>> for referencing the master host IP? I don't want to hard-coded any static 
>> IP's...
>>
>> spec:
>>   serviceAccountName: heapster
>>   containers:
>>   - name: heapster
>> image: k8s.gcr.io/heapster-amd64:v1.5.3
>> imagePullPolicy: IfNotPresent
>> command:
>> - /heapster
>> - --source=kubernetes:https://142.141.33.10:6443  
>> - --sink=influxdb:http://influxdb:8086
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Kubernetes user discussion and Q" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to kubernetes-use...@googlegroups.com .
>> To post to this group, send email to kubernet...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/kubernetes-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


Re: [kubernetes-users] pod migration if the node goes down

2018-08-06 Thread Rodrigo Campos
Feel free to search the documentation for the default values.

But in my experience, it was never an issue (we don't have one replica of
anything, though. So a single node going down is pretty tolerable)

On Monday, August 6, 2018, Niranjan Kolly  wrote:

> Hi MR,
>
> What about any application which are running(like nginx) , what if the
> node goes down and how quick master would spin those pods in the available
> nodes(for load distribution)
> How to tweak the timeout in the contol manager.
>
>
> Thanks,
> Niranjan
>
> On Mon, Aug 6, 2018 at 1:12 PM, 'Matthias Rampke' via Kubernetes user
> discussion and Q  wrote:
>
>> It takes a few minutes to declare a node lost, this is configurable via
>> kube-controller-manager flags.
>>
>> There are a few things you can do on a pod that prevents them being put
>> on the same node, such as declaring a hostPort.
>>
>> How will Cassandra react when a pod disappears and another one appears
>> (the is no "pod migration", only replacement)? I think this is a fairly
>> complex problem; research how others have solved this. A common pattern is
>> to name a thing that manages some technology in Kubernetes an Operator,
>> googling "cassandra operator kubernetes" I see several candidates but I
>> haven't used any so I can't say which one works best for you.
>>
>> /MR
>>
>> On Mon, Aug 6, 2018, 09:06 Niranjan Kolly 
>> wrote:
>>
>>> Hi,
>>>
>>> I have a K8 cluster with 3 master and 3 slave on centOS VM.
>>>
>>> we have installed KONG and cassandra with 3 replica each. As a part of
>>> the resiliency we brought down one node , but still the "kubectl get pods"
>>> command shows the pods running in that node showing up.
>>>
>>> As a K8 feature the master should spin the pods in the available node.
>>> How to do this configuration, but the master is not doing until we delete
>>> the pod manually.
>>>
>>> Please help me how to setup this.
>>>
>>>
>>> --
>>> Regards
>>> NiranjanKolly
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Kubernetes user discussion and Q" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to kubernetes-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to kubernetes-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/kubernetes-users.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Kubernetes user discussion and Q" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to kubernetes-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to kubernetes-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/kubernetes-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Regards
> NiranjanKolly
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


Re: [kubernetes-users] What is the default 'name' of the kubernetes master cluster host?

2018-08-06 Thread 'Daniel Smith' via Kubernetes user discussion and Q
If you use the standard kube-dns add-on, you can refer to apiserver as
'kubernetes.default.svc.cluster.local.' The port is 443.

You could also use the ClusterIP of the service directly, as it is
predictably going to be the first IP in the Service IP range, unless you've
done some manual surgery to your backend storage :)

But I would use the name.

On Sun, Aug 5, 2018 at 5:27 PM Stephen Kong  wrote:

> In my heapster.yaml, it references the IP of the master cluster host (
> https://142.141.33.10:6443). Is there any *built-in name* I could use for
> referencing the master host IP? I don't want to hard-coded any static
> IP's...
>
> spec:
>   serviceAccountName: heapster
>   containers:
>   - name: heapster
> image: k8s.gcr.io/heapster-amd64:v1.5.3
> imagePullPolicy: IfNotPresent
> command:
> - /heapster
> - --source=kubernetes:https://142.141.33.10:6443
> - --sink=influxdb:http://influxdb:8086
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


Re: [kubernetes-users] pod migration if the node goes down

2018-08-06 Thread Niranjan Kolly
Hi MR,

What about any application which are running(like nginx) , what if the node
goes down and how quick master would spin those pods in the available
nodes(for load distribution)
How to tweak the timeout in the contol manager.


Thanks,
Niranjan

On Mon, Aug 6, 2018 at 1:12 PM, 'Matthias Rampke' via Kubernetes user
discussion and Q  wrote:

> It takes a few minutes to declare a node lost, this is configurable via
> kube-controller-manager flags.
>
> There are a few things you can do on a pod that prevents them being put on
> the same node, such as declaring a hostPort.
>
> How will Cassandra react when a pod disappears and another one appears
> (the is no "pod migration", only replacement)? I think this is a fairly
> complex problem; research how others have solved this. A common pattern is
> to name a thing that manages some technology in Kubernetes an Operator,
> googling "cassandra operator kubernetes" I see several candidates but I
> haven't used any so I can't say which one works best for you.
>
> /MR
>
> On Mon, Aug 6, 2018, 09:06 Niranjan Kolly  wrote:
>
>> Hi,
>>
>> I have a K8 cluster with 3 master and 3 slave on centOS VM.
>>
>> we have installed KONG and cassandra with 3 replica each. As a part of
>> the resiliency we brought down one node , but still the "kubectl get pods"
>> command shows the pods running in that node showing up.
>>
>> As a K8 feature the master should spin the pods in the available node.
>> How to do this configuration, but the master is not doing until we delete
>> the pod manually.
>>
>> Please help me how to setup this.
>>
>>
>> --
>> Regards
>> NiranjanKolly
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Kubernetes user discussion and Q" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to kubernetes-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to kubernetes-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/kubernetes-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
NiranjanKolly

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.