Re: [kubernetes-users] System resource info seen by the pod through the /proc filesystem and the resource request/limit set in the pod yaml configuration file

2017-07-21 Thread Rodrigo Campos
What, exactly, in /proc do you want to see?

On Friday, July 21, 2017,  wrote:

> Hi All,
>
> Is there a way to make the detectable system resource through /proc
> filesystem to match the resource request/limit set in the yaml
> configuration file?
>
>
> Thanks
>
> Weiming
>
> --
> 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] Question about images docker to POD

2017-07-21 Thread Rodrigo Campos
You need for the process to stay running, not fork and die. I don't know
about jboss, but probably there is a way to not "daemonize".

This is entirely in the docker layer, you can probably reproduce it just
running that container on your PC and play more easily. But, basically, if
the command that is run when starting the container finishes, the docker
container stops running and exit too.

For example, to run nginx in docker is quite common to specify the command
as:

nginx -g 'daemon off;'


This makes the process to not daemonize.

On Friday, July 21, 2017,  wrote:

> hello everyone, I create one image using docker that have CentOS 7 + Jboss
> + any configurations to deploy my apllication. So, I commit my image and
> create my POD in Kubernetes, but, the POD only sucess run when I start the
> pod with any command run in console, for example monitoring the log of the
> jboss using tail -f. I would like know if when I create one image in
> docker, I need do anything to kubernetes acess my container whitin a POD.
> When I begin the POD without the tail -f the POD don't start whit sucess.
>
> --
> 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 best way to deploy the Redis cluster

2017-07-21 Thread Guang Ya Liu
+ Kubernetes dev, hope can get more comments/suggestions here.

Thanks,

Guangya

On Fri, Jul 21, 2017 at 8:42 AM, Guang Ya Liu  wrote:

> Thanks Rodrigo!
>
> But even with deployment, I can still have volume mounts in the deployment
> to mount to external storage, so even using deployment, I can still have 
> persistency,
> right?
>
> For statefulset, I can use volumeClaimTemplates to mount PVCs to have 
> persistency,
> but how an it make upgrade easily? Also I can always rolling upgrade a
> Deployment for this case, comments?
>
> Thanks,
>
> Guangya
>
> On Thu, Jul 20, 2017 at 11:35 AM, Rodrigo Campos 
> wrote:
>
>> If you use redis without persistency, probably a deployment is fine.
>>
>> Stateful sets are newer, and might help you (didn't look at the yaml) to
>> manage persistency in redis (and redis upgraded, etc.) More easily
>>
>>
>> On Wednesday, July 19, 2017, Guangya Liu  wrote:
>>
>>> Hi,
>>>
>>> I found that there are two ways to deploy a Redis cluster, one is in
>>> openshift, it is using statefulset https://github.com
>>> /openshift/origin/blob/master/examples/statefulsets/redis/redis.yaml
>>>
>>> And another is in Kuberntes helm charts, it is using Deployment +
>>> Service to deploy the Redis cluster https://github.com/kub
>>> ernetes/charts/tree/master/stable/redis/templates
>>>
>>> Using statefulset can make sure the hostname of redis will never change
>>> even after redis restart, and the application can always use hostname to
>>> access redis.
>>>
>>> Using deployment and service can enable other applications using service
>>> to access the redis, which also works even after the redis restart.
>>>
>>> Does there are any recommendations for which one is better, or this
>>> depend on user scenarios?
>>>
>>> Thanks,
>>>
>>> Guangya
>>>
>>> --
>>> 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.
>>
>
>

-- 
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] Question about images docker to POD

2017-07-21 Thread phmaias
hello everyone, I create one image using docker that have CentOS 7 + Jboss + 
any configurations to deploy my apllication. So, I commit my image and create 
my POD in Kubernetes, but, the POD only sucess run when I start the pod with 
any command run in console, for example monitoring the log of the jboss using 
tail -f. I would like know if when I create one image in docker, I need do 
anything to kubernetes acess my container whitin a POD. When I begin the POD 
without the tail -f the POD don't start whit sucess.

-- 
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.