Re: [kubernetes-users] Change the default name of Load Balancer

2018-05-24 Thread Jonathan Mejias
Thanks Tim!

On Thu, May 24, 2018, 11:55 'Tim Hockin' via Kubernetes user discussion and
Q <kubernetes-users@googlegroups.com> wrote:

> Yes, but any given GCP project can have multiple clusters, but the LB
> names are flat across them.  We need to make sure LB names don't collide.
> That's why we use the UUID - the name is not exactly random - i is a UUID
> that maps back to the kubernetes Service.
>
> On Wed, May 23, 2018 at 5:38 PM Jonathan Mejias <drumber...@gmail.com>
> wrote:
>
>> I dont know if i explain myself well.. I want to use
>> "apliccation-loadbalancer" name, instead "jsvaq1568njsuwha38." when
>> expose a deployment.yaml like loadBalancer type.
>>
>> I miss something?
>>
>> Regards!
>>
>> On Wed, May 23, 2018, 20:33 'Tim Hockin' via Kubernetes user discussion
>> and Q <kubernetes-users@googlegroups.com> wrote:
>>
>>> The problem is that we only get 63 characters to make a unique name, and
>>> both kubernetes namespace and service names can be that long themselves,
>>> and even then they are not unique across clusters.  We could use the UUID
>>> and up to 27 characters of the combination of those names, but then we have
>>> a back-compat problem.
>>>
>>> Maybe not impossible, but not simple.
>>>
>>> On Wed, May 23, 2018 at 1:13 PM Jonathan Mejías <drumber...@gmail.com>
>>> wrote:
>>>
>>>> Hi.
>>>>
>>>> By default kubernetes when expose the Google Load Balancer gives a name
>>>> like "3efre2udfi9w2du9qwefds200992di" there is a way to change that name to
>>>> one more human readble?
>>>>
>>>> Regards
>>>>
>>>> --
>>>> 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.
>>
> --
> 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] Change the default name of Load Balancer

2018-05-23 Thread Jonathan Mejias
I dont know if i explain myself well.. I want to use
"apliccation-loadbalancer" name, instead "jsvaq1568njsuwha38." when
expose a deployment.yaml like loadBalancer type.

I miss something?

Regards!

On Wed, May 23, 2018, 20:33 'Tim Hockin' via Kubernetes user discussion and
Q  wrote:

> The problem is that we only get 63 characters to make a unique name, and
> both kubernetes namespace and service names can be that long themselves,
> and even then they are not unique across clusters.  We could use the UUID
> and up to 27 characters of the combination of those names, but then we have
> a back-compat problem.
>
> Maybe not impossible, but not simple.
>
> On Wed, May 23, 2018 at 1:13 PM Jonathan Mejías 
> wrote:
>
>> Hi.
>>
>> By default kubernetes when expose the Google Load Balancer gives a name
>> like "3efre2udfi9w2du9qwefds200992di" there is a way to change that name to
>> one more human readble?
>>
>> Regards
>>
>> --
>> 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.


Re: [kubernetes-users] Ingress paths not working with dynamic endpoint

2018-05-23 Thread Jonathan Mejias
Ahmet i did all that you mention it.

/angular, /angular/, /angular/*  and if a get the healtcheck to " / " i
will get the response of a default backend (404). Insted my app have an
"healthCheck" path response (resolve an HTTP 200).

My path didn`t work. All the problems get solution when you change to an
Nginx Controller using L4 GLB

Use Nginx Controller and rewrite-target


2018-05-21 20:00 GMT-04:00 'Ahmet Alp Balkan' via Kubernetes user
discussion and Q <kubernetes-users@googlegroups.com>:

> +1 to Tim. Your "rewrite-target" annotation won't work on GKE (it's only
> for nginx-ingress).
>
> Also note that "Services exposed through an Ingress must serve a response
> with HTTP 200 status to the GET requests on "/". This is used for health
> checking. If your application does not serve HTTP 200 on "/", the backend
> will be marked unhealthy and will not get traffic."
> (Quoted from: https://cloud.google.com/kubernetes-engine/docs/
> tutorials/http-balancer#remarks)
>
> So I would say make sure:
>
> 1. Your "GET /" of the load balancer returns a 200 OK. (Looks like you're
> not handling "/", only /angular and /angular2)
> 2. All backend services listed (in your case "angular-svc") returns HTTP
> 200 OK for "GET /" when called directly (not through the created load
> balancer), you can test this with "kubectl port-forward"
> 3. "path: /angular" will not work for "/angular/foo". As Tim said, use
> "/angular/*".
>
> On Mon, May 21, 2018 at 4:43 PM 'Tim Hockin' via Kubernetes user
> discussion and Q <kubernetes-users@googlegroups.com> wrote:
>
>> Did you try /* ?
>>
>> https://cloud.google.com/compute/docs/load-balancing/http/url-map
>>
>> On Mon, May 21, 2018 at 10:44 AM Jonathan Mejias <drumber...@gmail.com>
>> wrote:
>>
>>> The only way that i resolve the problem was changing to an nginx
>>> controller, instead a gke. Installing nginx-controller with kubernetes helm
>>> and using rewrite option. Gke is limited in configuration option i do not
>>> recommend.
>>>
>>> PD: Nginx-controller uses network load balancer (TCP) not HTTP.
>>>
>>>
>>>
>>> On Mon, May 21, 2018, 13:09 <davidshakespe...@gmail.com> wrote:
>>>
>>>> I have same problem. Did you mane to resolve?
>>>>
>>>> --
>>>> 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.
>>
> --
> 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.
>



-- 
Saludos Cordiales...

Atte. Jonathan Mejías

-- 
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] Ingress paths not working with dynamic endpoint

2018-05-21 Thread Jonathan Mejias
The only way that i resolve the problem was changing to an nginx
controller, instead a gke. Installing nginx-controller with kubernetes helm
and using rewrite option. Gke is limited in configuration option i do not
recommend.

PD: Nginx-controller uses network load balancer (TCP) not HTTP.



On Mon, May 21, 2018, 13:09  wrote:

> I have same problem. Did you mane to resolve?
>
> --
> 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] Kubernetes Ingress HTTP Load Balancer with port range

2018-05-17 Thread Jonathan Mejias
Yeah, i know that does so many things but

How can i create virtual host using kubernetes and using HTTP Load Balancer
types? I just need to use PATHS for my dynamic endpoints applications. And
i need to use the better practices in that.

regards


2018-05-17 11:00 GMT-04:00 'Tim Hockin' via Kubernetes user discussion and
Q <kubernetes-users@googlegroups.com>:

> Kubernetes' Ingress abstraction does what you want.
>
> On Wed, May 16, 2018 at 6:38 PM Jonathan Mejias <drumber...@gmail.com>
> wrote:
>
>> Im using kubernetes to deploy apps, how can i create that virtual host
>> into a container cluster?
>>
>> On Wed, May 16, 2018, 19:36 'Tim Hockin' via Kubernetes user discussion
>> and Q <kubernetes-users@googlegroups.com> wrote:
>>
>>> HTTP gives you a much better solution - virtual hosts.
>>>
>>> The 'host' header tells your HTTP ingress which logical service to
>>> access.
>>>
>>> e.g. `curl -h 'host: foo.com' http://210.210.210.22:80/`
>>> <http://210.210.210.22:80/>  is different than `curl -h 'host: bar.com'
>>> http://210.210.210.22:80/` <http://210.210.210.22:80/>
>>>
>>> On Wed, May 16, 2018 at 1:19 PM Jonathan Mejías <drumber...@gmail.com>
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> How do i to create a HTTP load balancer with kubernetes ingress?
>>>>
>>>> Example:
>>>>
>>>> SVC-1 .  --  210.210.210.22:*80 (internet)*
>>>> SVC-2 .  --  210.210.210.22:*81 (internet)*
>>>> SVC-3 .  --  210.210.210.22:*82 (internet)*
>>>>
>>>> services created in type NodePort, but what are the definitios for
>>>> ingress.yaml file?
>>>>
>>>> I don't want to use paths, because my services have dynamic endpoints,
>>>> and additional paths responses with 404. So i want to define by port range.
>>>>
>>>> how can i do that?
>>>>
>>>> Regards
>>>>
>>>> --
>>>> 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.
>>
> --
> 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.
>



-- 
Saludos Cordiales...

Atte. Jonathan Mejías

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