generated from vshn/go-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
73 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
= Deploy multiple instances | ||
|
||
This guide provides an example how to deploy multiple instances of this component. | ||
|
||
== Requirements | ||
|
||
|
||
. Prepare catalog by configuring 2 instances | ||
+ | ||
[source,yaml] | ||
---- | ||
applications: | ||
- exoscale-metrics-collector as collector-exoscale-ch-gva-2 <1> | ||
- exoscale-metrics-collector as collector-cloudscale-rma-0 <2> | ||
parameters: | ||
appuio_cloud_reporting: | ||
namespace: 'appuio-cloud-reporting' | ||
database: | ||
name: 'reporting' | ||
host: 'reporting-db.appuio-reporting.svc' | ||
parameters: 'sslmode=disable' | ||
password: 'passw0rd' | ||
port: 5432 | ||
---- | ||
<1> Instance one with alias name collector-exoscale-ch-gva-2 | ||
<2> Instance two with alias name collector-cloudscale-rma-0 | ||
+ | ||
|
||
. Add relevant entries to Vault | ||
+ | ||
[source,bash] | ||
---- | ||
parent="clusters/kv/${TENANT_ID}/${CLUSTER_ID}" | ||
instance_1="collector-exoscale-ch-gva-2" | ||
instance_2="collector-cloudscale-rma-0" | ||
vault kv put "${parent}/exoscale-metrics-collector/${instance_1}" exoscale-key=<key-1> exoscale-secret=<secret-1> cluster-server=<server-url-1> cluster-token=<token-1> | ||
vault kv put "${parent}/exoscale-metrics-collector/${instance_2}" exoscale-key=<key-2> exoscale-secret=<secret-2> cluster-server=<server-url-2> cluster-token=<token-2> | ||
---- | ||
+ | ||
|
||
. Compile and push the cluster catalog | ||
. Wait until changes are applied | ||
. Verify that the instances are up and configured correctly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters