Thanks Warren. Really helpful. I'll tale a look at helm.
On Tue, Oct 31, 2017 at 2:50 PM, Warren Strange <warren.stra...@gmail.com> wrote: > > What you are describing is a really good use case for namespaces. > > If you really want to deploy multiple instances to the same namespace, you > could have a look at how some of the Helm charts do this. > > Some charts use dynamic labels to (e.g. app={{ .Release.Name }} ) to > distinguish multiple instances of the same application. You > can "helm install" many copies, with each one getting unique labels that > can be used by your service label selectors. > > > > > > On Tuesday, October 31, 2017 at 8:08:54 AM UTC-6, rgonc...@gmail.com > wrote: >> >> On Tuesday, October 31, 2017 at 7:41:45 AM UTC, Rodrigo Campos wrote: >> > On Mon, Oct 30, 2017 at 03:34:00AM -0700, rgonc...@gmail.com wrote: >> > > I'm trying to figure out what's the best approach to deploy multiple >> versions of the same software in kubernetes without relying on namespaces. >> According to the docs: >> > > >> > > "It is not necessary to use multiple namespaces just to separate >> slightly different resources, such as different versions of the same >> software: use labels to distinguish resources within the same namespace." >> > > >> > > The only way (that I know of) to separate multiple versions of same >> software on the same namespace is naming services in accordance to software >> version, adjust the selector field and tag pods appropriately. This has >> maintenance overhead and I'm required to reference services with a >> different name according to the desired version. I don't think this is a >> solution. >> > >> > Why not? What is the problem you want to solve? >> > >> > > >> > > I don't see any other way besides using namespaces. What am I missing >> something? >> > >> > I think services is the way to do it, with labels on deplyoments, but I >> might be >> > missing the details of what you want to do. Can you pelase elaborate? >> >> Basically I want to be able to deploy two distinct versions of the same >> software on the same kubernetes cluster. This is a cluster used for >> development and it's usual to have multiple versions of the same software >> (ex. maintenance version and evolution version). >> >> I can create one namespace for each version, but I'd rather not because >> I'd like to limit resource usage per software, not per software version. >> But without using namespaces, the only way (like I said, that I'm aware >> of), is to codify the version of the service on the name (serviceA-v1.1; >> serviceA-trunk; etc...). Definitely I don't want to do that. Doing that >> implies changing kubernetes deployment descriptors, clients must change the >> service they reference, etc... not a good idea. >> >> I'm asking because the statement on the docs saying the using namespaces >> it's not necessary to separate multiple versions of the same software. >> However I think it is. >> >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Kubernetes user discussion and Q&A" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/kubernetes-users/_zeW8m9ZX9g/unsubscribe. > To unsubscribe from this group and all its topics, 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.