Skip to content

Commit

Permalink
docs(jcloud): doc for gateway customization (#5065)
Browse files Browse the repository at this point in the history
  • Loading branch information
zac-li committed Aug 16, 2022
1 parent f3bcdaa commit 317e9ce
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/fundamentals/jcloud/advanced.md
Expand Up @@ -91,13 +91,13 @@ Currently ALB is the default gateway for backward compatibility. We use AWS prov

### Kong

Kong is the recommended gateway in JCloud. We use [Let's Encrypt](https://letsencrypt.org/) for TLS with Kong. To enable Kong Gateway instead of ALB, specify the gateway kind as `kong` in your JCloud YAML:
Kong is the recommended gateway in JCloud. We use [Let's Encrypt](https://letsencrypt.org/) for TLS with Kong. To enable Kong Gateway instead of ALB, specify the gateway ingress kind as `kong` in your JCloud YAML:

```yaml
jtype: Flow
jcloud:
gateway:
kind: kong
ingress: kong
executors:
- name: executor1
uses: jinahub+docker://Executor1
Expand Down
17 changes: 17 additions & 0 deletions docs/fundamentals/jcloud/resources.md
Expand Up @@ -149,3 +149,20 @@ executors:
memory: 8G
gpu: 2
```

### Resources in Gateway

If in special conditions you'd like to customize the Gateway's CPU or memory, that's possible too. Similarly, `memory` / `cpu` arg needs to be specificed under `resources` from `gateway`.

```yaml
jtype: Flow
jcloud:
gateway:
resources:
requests:
memory: 800M
cpu: 0.4
executors:
- name: encoder
uses: jinahub+docker://Encoder
```

0 comments on commit 317e9ce

Please sign in to comment.