[kubernetes-users] Cassandra on Kubernetes

2018-05-05 Thread Niranjan Kolly
Hi Guys,

I am installing cassandra with 3 replicas on 3 VM's 1 master and 2 slave.

only one container is coming up and other two are going in to 
crashloopbackoff.

In the log files am seeing unable to gossip the seed and seed not found.

All my DNS and flannel are running. 

Please share me the steps.



Thanks,
Niranjan

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" 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] Re: Cassandra on Kubernetes

2018-05-06 Thread Niranjan Kolly
Thanks Sunil Bhai for the recommendation

I have followed the same link. Can you please share the installation steps
for kubernetes cluster.

I am not able to ping my cassandra service from kube-dns pod. I think my
kubernetes is not correct.


Thanks,
Niranjan

On Sun, May 6, 2018 at 12:30 PM, Sunil Bhai  wrote:

> You can also check this in kubernetes.io site
>
> https://kubernetes.io/docs/tutorials/stateful-application/cassandra/
>
>
> On Sunday, May 6, 2018 at 12:29:52 PM UTC+5:30, Sunil Bhai wrote:
>
>> Check this
>>
>> https://kubernetes.io/blog/2016/07/thousand-instances-of-cas
>> sandra-using-kubernetes-pet-set/
>>
>>
>> On Sunday, May 6, 2018 at 12:28:41 PM UTC+5:30, Sunil Bhai wrote:
>>
>>> Hi,
>>>
>>> Pls check this.
>>>
>>> https://github.com/waterplaclid/Scalable-Cassandra-deployment-on-Kubernetes.git
>>>
>>>
>>> https://github.com/waterplaclid/Scalable-Cassandra-
>>> deployment-on-Kubernetes.git
>>>
>>>
>>>
>>>
>>> On Saturday, May 5, 2018 at 10:25:54 PM UTC+5:30, Niranjan Kolly wrote:
>>>
>>>> Hi Guys,
>>>>
>>>> I am installing cassandra with 3 replicas on 3 VM's 1 master and 2
>>>> slave.
>>>>
>>>> only one container is coming up and other two are going in to
>>>> crashloopbackoff.
>>>>
>>>> In the log files am seeing unable to gossip the seed and seed not found.
>>>>
>>>> All my DNS and flannel are running.
>>>>
>>>> Please share me the steps.
>>>>
>>>>
>>>>
>>>> Thanks,
>>>> Niranjan
>>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q&A" 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&A" 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] Re: Cassandra on Kubernetes

2018-05-06 Thread Niranjan Kolly
Can you share the detail steps for kubernetes installation on 3 CentOS Vm's.
am struggling kubernetes installation from 2 weeks its not going good.
Please help me Sunil Bhai.

On Sun, May 6, 2018 at 5:42 PM, Niranjan Kolly 
wrote:

> Thanks Sunil Bhai for the recommendation
>
> I have followed the same link. Can you please share the installation steps
> for kubernetes cluster.
>
> I am not able to ping my cassandra service from kube-dns pod. I think my
> kubernetes is not correct.
>
>
> Thanks,
> Niranjan
>
> On Sun, May 6, 2018 at 12:30 PM, Sunil Bhai  wrote:
>
>> You can also check this in kubernetes.io site
>>
>> https://kubernetes.io/docs/tutorials/stateful-application/cassandra/
>>
>>
>> On Sunday, May 6, 2018 at 12:29:52 PM UTC+5:30, Sunil Bhai wrote:
>>
>>> Check this
>>>
>>> https://kubernetes.io/blog/2016/07/thousand-instances-of-cas
>>> sandra-using-kubernetes-pet-set/
>>>
>>>
>>> On Sunday, May 6, 2018 at 12:28:41 PM UTC+5:30, Sunil Bhai wrote:
>>>
>>>> Hi,
>>>>
>>>> Pls check this.
>>>>
>>>> https://github.com/waterplaclid/Scalable-Cassandra-deployment-on-Kubernetes.git
>>>>
>>>>
>>>> https://github.com/waterplaclid/Scalable-Cassandra-deploymen
>>>> t-on-Kubernetes.git
>>>>
>>>>
>>>>
>>>>
>>>> On Saturday, May 5, 2018 at 10:25:54 PM UTC+5:30, Niranjan Kolly wrote:
>>>>
>>>>> Hi Guys,
>>>>>
>>>>> I am installing cassandra with 3 replicas on 3 VM's 1 master and 2
>>>>> slave.
>>>>>
>>>>> only one container is coming up and other two are going in to
>>>>> crashloopbackoff.
>>>>>
>>>>> In the log files am seeing unable to gossip the seed and seed not
>>>>> found.
>>>>>
>>>>> All my DNS and flannel are running.
>>>>>
>>>>> Please share me the steps.
>>>>>
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Niranjan
>>>>>
>>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Kubernetes user discussion and Q&A" 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
>



-- 
Regards
NiranjanKolly

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" 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] Container not starting Error: cannot find volume \"default-token-hwtv5\" to mount into container

2018-05-17 Thread Niranjan Kolly
Hi,

I am getting below issue when trying to create pod.

Any help is appreciated.

 pod_workers.go:186] Error syncing pod 2f0ce712-59a6-11e8-afb7-005056980c31
("kong-migration-2gtfp_default(2f0ce712-59a6-11e8-afb7-005056980c31)"),
skipping: failed to "StartContainer" for "kong-migration" with
CreateContainerConfigError: "cannot find volume \"default-token-hwtv5\" to
mount into container \"kong-migration\""


-- 
Regards
NiranjanKolly

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" 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] 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&A" 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&A  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&A" 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&A" 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&A" 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] Tools to monitor for K8

2018-08-07 Thread Niranjan Kolly
Hello,

What are the best open source tools for monitoring and alerting K8 cluster .
Please help me.

-- 
Regards
NiranjanKolly

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" 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] Tools to monitor for K8

2018-08-07 Thread Niranjan Kolly
Hi Sri,

Thanks for the reply.

we are using K8 1.10.2, is cadvisor is bundled in the kubelet . How to
check that ?


Thanks,
Niranjan

On Tue, Aug 7, 2018 at 7:00 PM, Vasu Srivasthav 
wrote:

> Hi,
>
> Open source tools to monitor K8, Grafana and Prometheus.
>
>
>
> -Sri
>
> On Tue, Aug 7, 2018, 6:27 AM Niranjan Kolly 
> wrote:
>
>> Hello,
>>
>> What are the best open source tools for monitoring and alerting K8
>> cluster .
>> Please help me.
>>
>> --
>> Regards
>> NiranjanKolly
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Kubernetes user discussion and Q&A" 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&A" 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&A" 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] Tools to monitor for K8

2018-08-08 Thread Niranjan Kolly
Does it require cadvisor in the K8 to collect the metrics. ?


Thanks,
Niranjan

On Wed, Aug 8, 2018 at 12:31 PM, Ben Kochie  wrote:

> You may be interested in the Prometheus Operator.
>
> https://coreos.com/blog/the-prometheus-operator.html
> https://coreos.com/operators/prometheus/docs/latest/user-
> guides/getting-started.html
> https://github.com/coreos/prometheus-operator
>
> On Wed, Aug 8, 2018 at 8:06 AM Niranjan Kolly 
> wrote:
>
>> Hi Sri,
>>
>> Thanks for the reply.
>>
>> we are using K8 1.10.2, is cadvisor is bundled in the kubelet . How to
>> check that ?
>>
>>
>> Thanks,
>> Niranjan
>>
>> On Tue, Aug 7, 2018 at 7:00 PM, Vasu Srivasthav <
>> vasu.srivast...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Open source tools to monitor K8, Grafana and Prometheus.
>>>
>>>
>>>
>>> -Sri
>>>
>>> On Tue, Aug 7, 2018, 6:27 AM Niranjan Kolly 
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> What are the best open source tools for monitoring and alerting K8
>>>> cluster .
>>>> Please help me.
>>>>
>>>> --
>>>> Regards
>>>> NiranjanKolly
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Kubernetes user discussion and Q&A" 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&A" 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&A" 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&A" 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&A" 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] Tools to monitor for K8

2018-08-14 Thread Niranjan Kolly
Thank you guys for your suggestions!.


Thanks,
Niranjan

On Wed, Aug 8, 2018 at 9:00 PM, Jay Pipes  wrote:

> On 08/08/2018 10:56 AM, Ben Kochie wrote:
>
>> On Wed, Aug 8, 2018 at 3:07 PM Jay Pipes > jaypi...@gmail.com>> wrote:
>>
>> cadvisor is a library dependency for kubelet:
>>
>> https://github.com/kubernetes/kubernetes/blob/master/pkg/kub
>> elet/cadvisor/BUILD#L29-L31
>>
>> so when you install kubelet, you will install the cadvisor library.
>>
>> Prometheus does not use cadvisor, no.
>>
>> That depends on what you mean by use. :-D  Prometheus does have the
>> ability to collect metrics from cAdvisor.
>>
>
> Sorry, I mean Prometheus does not depend on cadvisor.
>
>
> Best,
> -jay
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q&A" 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&A" 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] [Statefulset]Setting environment variables specific to each HOSTNAME loading from certain PATH mounted to container

2018-08-19 Thread Niranjan Kolly
Use hostpath directory mount if you have more than one config file for each
env.. and use  node  antiaffinity.


Thanks,
Niranjan

On Sat, Aug 18, 2018, 7:41 AM Rodrigo Campos  wrote:

> On Friday, August 17, 2018, ilter P  wrote:
>
>> Hi Rodrigo,
>>
>> Thanks for the reply
>> First of all this is stable external image and I dont want to maintain my
>> version.
>> Secondly, the values that I would like to get are created during my
>> deployment (ingress external host urls) and I can only map them during
>> container initializing.
>>
>> What i tried in 1st option is trying to create environment variable with
>> the value of executing the command $(eval cat )
>>
>> Here is the block I am trying in statefulset
>> - name: KAFKA_ADVERTISED_LISTENERS
>> value: INSIDE://$(POD_IP):9092,OUTSIDE://$(eval cat
>> /opt/conf/ext-url):9093
>>
>>
> So, it's the $(pod_ip) part working?
> If so, why not have the file /opt/conf/ext-url be an env var? Is that file
> coming from a configMap volume? Or how is it created?
>
>
>> And ext-url is mounted via dynamic configMaps
>> - name: cm-vol
>> configMap:
>>   name: kafka-0
>>   items:
>>   - key: kafka-ext-host
>> path: ext-host
>>
>
> Why not use an env variable from the configMap? If that is what you want
> in an env var, you can just have it. Instead of using it as a volume, use
> it as an env var.
>
> What am I missing?
>
>
>>
>> Note: I went to this direction after observing that reading from dynamic
>> configMap is not working
>> valueFrom:
>> configMapKeyRef:
>>   key: kafka-ext-host
>>  name: $(POD_NAME) . --> Kubernetes giving error to here
>>
>
> Yeah, that won't work
>
>
>>
>> So the question is that, can I use "cat " command to environment
>> variable ?
>>
>
> Not as part of the yaml. But if you have it mounted as the item you want,
> you may just have it as an env var.
>
> And if it's not the case, the hack I mentioned in my previous mail I think
> should work.
>
>
>>
>> I hope it is little bit clear now :) Sorry for the mess
>>
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q&A" 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&A" 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] Kubernetes internal certificates expires

2018-08-20 Thread Niranjan Kolly
Hi Team,

The certificates which comes along with K8 will going to expire ?


-- 
Regards
NiranjanKolly

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" 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] Kubernetes internal certificates expires?

2018-08-20 Thread Niranjan Kolly
 Hi ,

The certificates which comes along with K8 will going to expire ?


-- 
Regards
NiranjanKolly

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" 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] Save the kubernetes container logs on the host node where the pod is deployed.

2018-08-21 Thread Niranjan Kolly
Mount the vm path as hostpat..what ever writes in the containers will come
sit in ur vm...

On Tue, Aug 21, 2018, 4:32 PM gaurav gundal  wrote:

>
>
> Adding to the above question.
> What is the best practice to copy the application or service logs from the
> container to the vm that host the container?
>
>
> On Aug 20, 2018, at 9:33 PM, Rodrigo Campos  wrote:
>
> You can write to stdout and see the logs of the crashed container with
> kubectl logs (or kubectl logs --previous or something like that was the
> flag called).
>
> Usually writing to stdout is a good practice:-)
>
> On Monday, August 20, 2018, Ashish r  wrote:
>
>> Hello all,
>>
>> I have implemented a 3 Master kubernetes cluster that works perfectly
>> fine. I have been deploying some apps to test out the network. Assume I
>> have deployed an application app1. There is only 1 replica of this pod on
>> one of the kubernetes worker nodes. I am also writing the logs of the app
>> to a file on the container . If for some reason, the container dies (the
>> application service running inside the container died) the kubernetes
>> master will bring up another pod/container. But I would like to view the
>> logs of the container that has died so as to understand the root cause of
>> the issue.
>>
>> I have give through this documentation but it only mentions about saving
>> the log file on the container.
>> https://kubernetes.io/docs/concepts/cluster-administration/logging/
>> But I would atleast like to store it on my worker node or the master so
>> that I do not loose the logs.
>>
>> I am looking for better ways of doing this. Any suggestion is highly
>> appreciated and please let me know if I need to provide any additional
>> information. Thanks in advance.
>>
>>
>> Cheers,
>> Ashish
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Kubernetes user discussion and Q&A" 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&A" 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&A" 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&A" 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.