Configuring Lagoon to deploy different environments to different target clusters #2803
Replies: 1 comment 3 replies
-
We currently have two customers that already deploy into multiple kubernetes clusters from a single git repo. We solved this with creating two projects in lagoon. During this we realized that a simple development k8s cluster:
production k8s cluster:
So it would be great if we could figure out a way to handle such a system. A couple of ideas I had:
Myself I would probably go with Nr 1 for now. |
Beta Was this translation helpful? Give feedback.
-
With an increase in projects, it's become necessary to target different environments within a project to different Kubernetes clusters. In conversation with @shreddedbacon and @smlx here are our initial thoughts
Currently, the
project
defines a single existing kubernetes (openshift) cluster as a target for the environments to deploy onto.This is then, in turn, accessed from environments by referencing the project that the environment is part of (GraphQL FTW)
What we are proposing is that instead of a project having a single target cluster, a project can instead have multiple destinations, defined by environmentType. i.e. if configured,
development
type environments could deploy into a different cluster thanproduction
type ones.To achieve this, we would need to make the following changes:
Caveats:
Upsides:
production|development
- the presence of the kubernetes ID on the environment object may open the path to richer configurability down the track, as essentially the process to define the ID only ever runs on initial deploymentAnything else we need to consider?
Beta Was this translation helpful? Give feedback.
All reactions