Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update getting-started-activiti-cloud.md #37

Merged
merged 2 commits into from
Feb 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 37 additions & 70 deletions getting-started/getting-started-activiti-cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,42 +274,11 @@ Example output:

![](../.gitbook/assets/screenshot-2018-12-13-at-10.55.52.png)

The next step is to configure your deployment to your cluster. The Activiti Cloud Full Example Chart can be customized to turn on and off different features, but there is one mandatory parameter that needs to be provided which is the external domain name that is going to be used by this installation.
The next step is to configure your deployment to your cluster. The Activiti Cloud Full Example Chart can be customized to turn on and off different features, but there is one mandatory parameter that needs to be provided which is the external domain name that is going to be used by this installation:

### A\) Configure your deployment for GCP

Open the “_values.yaml_” file located at: activiti-cloud-charts/activiti-cloud-full-example.

Set the Activiti Cloud modeling to true and replace the 3 occurrences of the string “**REPLACEME**” to "**<EXTERNAL-IP>.nip.io**". In our case: **104.155.53.158.nip.io** in every occurrence of “**REPLACEME**”.

Example "_values.yaml_" file:

```yaml
# Default values for activiti-cloud-full-example.
...

global:
keycloak:
url: "http://activiti-keycloak.104.155.60.221.nip.io/auth"
gateway:
host: &gatewayhost "activiti-cloud-gateway.104.155.60.221.nip.io"

activiti-cloud-modeling:
enabled: true
...
infrastructure:
activiti-keycloak:
keycloak:
enabled: true
keycloak:
ingress:
enabled: true
path: /
proxyBufferSize: "16k"
hosts:
- "activiti-keycloak.104.155.60.221.nip.io"
...
```
We will use "**<EXTERNAL-IP>.nip.io**" to deploy Activiti Helm chart. In our case: **104.155.53.158.nip.io**

You can now go directly to [Deploy the Helm chart section](getting-started-activiti-cloud.md#c-deploy-the-helm-chart)

Expand All @@ -323,50 +292,48 @@ $ kubectl get services

![New Record Set in Route 53.](../.gitbook/assets/route-53-record-set-elb-dns.png)

Open the “_values.yaml_” file located at: activiti-cloud-charts/activiti-cloud-full-example.

Set the Activiti Cloud modeling to true and replace the 3 occurrences of the string “**REPLACEME**” to "**<your-public-domain>**". In our case: _**raphaelallegre.com**_ in every occurrence of “**REPLACEME**”.

Example "_values.yaml_" file:

```yaml
# Default values for activiti-cloud-full-example.
...

global:
keycloak:
url: "http://activiti-keycloak.raphaelallegre.com/auth"
gateway:
host: &gatewayhost "activiti-cloud-gateway.raphaelallegre.com"

activiti-cloud-modeling:
enabled: true
...
infrastructure:
activiti-keycloak:
keycloak:
enabled: true
keycloak:
ingress:
enabled: true
path: /
proxyBufferSize: "16k"
hosts:
- "activiti-keycloak.raphaelallegre.com"
...
```
We will use "**your-public-domain**" to deploy Activiti Helm chart in the next section. In our case: **raphaelallegre.com**.

### C\) Deploy the Helm chart

Once you have performed the 4 changes, deploy the chart by running the following command:
Once you have resolved you domain name, install Helm chart by running the Helm install command using your public domain name to set the `global.gateway.domain` key. In our case replace the string “**REPLACEME**” with the domain from previous step.

```bash
$ helm install -f values.yaml activiti-cloud-charts/activiti-cloud-full-example
$ helm install example activiti-cloud-charts/activiti-cloud-full-example --set global.gateway.domain=REPLACEME
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@igdianov here "example" is wrong I think and in order to deploy it in my cluster I've used:

helm install activiti-cloud-charts/activiti-cloud-full-example --set global.gateway.domain=35.228.237.6.nip.io --namespace=salaboy

and that works like a charm!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we need something like -n for the name of the release, but we can leave it to the random option by default

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@salaboy I think it makes sense to use --name option instead of random name. I will update the guide.

```

Expected results:

![](../.gitbook/assets/deploy-activiti-cloud.png)
```
NOTES:
_ _ _ _ _ _____ _ _
/\ | | (_) (_) | (_) / ____| | | |
/ \ ___| |_ ___ ___| |_ _ | | | | ___ _ _ __| |
/ /\ \ / __| __| \ \ / / | __| | | | | |/ _ \| | | |/ _` |
/ ____ \ (__| |_| |\ V /| | |_| | | |____| | (_) | |_| | (_| |
/_/ \_\___|\__|_| \_/ |_|\__|_| \_____|_|\___/ \__,_|\__,_|
Version: 7.0.0.GA

Thank you for installing activiti-cloud-full-example-1.1.1

Your release is named example.

To learn more about the release, try:

$ helm status example
$ helm get example

Get the application URLs:

Activiti Keycloak : http://activiti-cloud-gateway.104.105.153.158.nip.io/auth
Activiti Gateway : http://activiti-cloud-gateway.104.105.153.158.nip.io/
Activiti Modeler : http://activiti-cloud-gateway.104.105.153.158.nip.io/activiti-cloud-modeling
Activiti GraphiQL : http://activiti-cloud-gateway.104.105.153.158.nip.io/graphiql

To see deployment status, try:

$ kubectl get pods
```

This will trigger the deployment process, and you need to wait until the services are up and running. You can check this by running:

Expand Down Expand Up @@ -402,12 +369,12 @@ You can access the Keycloak admin console and the Activiti Cloud Modeling applic

For GCP at:

* [http://activiti-keycloak](http://activiti-keycloak).<EXTERNAL-IP>.nip.io/auth \(admin/admin\)
* [http://activiti-cloud-gateway](http://activiti-cloud-gateway.<EXTERNAL-IP>.nip.io/auth \(admin/admin\)
* [http://activiti-cloud-gateway](http://activiti-cloud-gateway).<EXTERNAL-IP>.nip.io/activiti-cloud-modeling \(modeler/password\)

For AWS at:

* [http://activiti-keycloak](http://activiti-keycloak).<yourpublicdomain>/auth \(admin/admin\)
* [http://activiti-cloud-gateway](http://activiti-cloud-gateway).<yourpublicdomain>/auth \(admin/admin\)
* [http://activiti-cloud-gateway](http://activiti-cloud-gateway).<yourpublicdomain>/activiti-cloud-modeling \(modeler/password\)

In our case, here is the BPMN 2 process modelling application:
Expand Down