Skip to content

How to create a single stack that provides resources to N clusters #7382

Discussion options

You must be logged in to vote

Ok - here's a workaround that seems to actually.. you know.. seem to work!!

I warn you that this is a bit ugly though, but at least it works well on both helm charts as well as yaml.Config* stuff. Firstly you need to set some sort of string which is unique per cluster (and wouldn't normally come up in any of your kubernetes yamls whatsoever). For me, that's the name of the cluster. Also, it needs to be able to form a valid url (i.e comply with RFC 1034/1035) - hence my replacemed of _ with - below.

const keyCloakOperator = new k8s.yaml.ConfigFile(`${args.environment.region}-keycloak-operator`, {
    file: `${pathToKeyCloakOper}/operator.yaml`,
    resourcePrefix: `${args.environment.kubename

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@headconnect
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by headconnect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant