We will start by creating the values.yaml file, which will contain the configuration values for our deployment. This will make our deployment more flexible and allow us to reuse this file for other deployments.In this example, we will deploy a CloudPrem application consisting of several services:
Please note, the following values are examples and must be adapted to your environment. The PostgreSQL configuration does not provide any data persistence.
You can retrieve the values.yaml file with the following command:
Copy
Ask AI
# helm show values oci://ghcr.io/formancehq/helm/cloudprem --version v3.0.0 > values.yaml
You can adapt the configuration to your own needs, however, there are some minimum values that you need to replace. If you want more information about the values, please refer to the helm documentation.
By default, we deploy a Dex as an OIDC / oAuth2 provider. This allows us to create default users that you can use.It also enables us to connect protocols such as SAMLv2 to OIDC. To do this, you need to follow Dex’s documentation to create a valid configuration.
You can also choose not to deploy Dex and modify Membership’s OIDC configuration to talk directly to the OIDC provider of your choice.
We will now create a region and a stack in the Membership database.
To do this, replace BASE_URL with the domain of your choice.
By default, all communications between Console and your Stack remain internal to the Kubernetes cluster.
Copy
Ask AI
insert into membership."regions" (id, base_url, name, creator_id, created_at, production, active) values ( gen_random_uuid(), 'https://BASE_URL', 'default', (select id from membership."users" where id = ( select owner_id from membership."organizations" limit 1 )), now(), true, true);insert into membership."stacks" (name, organization_id, id, region_id, created_at, updated_at, stargate_enabled, client_secret, state, status, expected_status) values ( 'default', (select id from membership."organizations" limit 1), 'demo', -- update if needed, this is your stack id (select id from membership."regions" limit 1), now(), now(), false, gen_random_uuid(), 'ACTIVE', 'READY', 'READY');