Browse Source

website: clarify usage section for API Gateway

pull/12423/head
Mike Morris 3 years ago
parent
commit
9e3e3c28ec
  1. 17
      website/content/docs/api-gateway/api-gateway.mdx

17
website/content/docs/api-gateway/api-gateway.mdx

@ -71,14 +71,25 @@ Your datacenter must meet the following requirements prior to configuring the Co
## Usage ## Usage
1. Verify that the [requirements](#requirements) have been met. 1. Verify that the [requirements](#requirements) have been met.
1. Verify that the Consul API Gateway software has been installed and applied (see [Installation](#installation)). 1. Verify that the Consul API Gateway CRDs and controller have been installed and applied (see [Installation](#installation)).
1. Configure the artifacts described in [Configuration](#configuration). 1. Configure the artifacts described below in [Configuration](#configuration). If the following config is added to the `values.yaml` Helm config, the GatewayClassConfig and GatewayClass will be created automatically, and only the Gateway, Listeners and Routes will need to be configured manually. The `serviceType` for a managed GatewayClass will default to `LoadBalancer`, which is appropriate for most deployments to managed Kubernetes cloud offerings (EKS, GKE, AKS) - other deployments, such as to a [kind](https://kind.sigs.k8s.io/) cluster, may require specifying `NodePort` or `ClusterIP` instead.
<CodeBlockConfig hideClipboard filename="values.yaml">
```yaml
apiGateway:
managedGatewayClass:
enabled: true
```
</CodeBlockConfig>
1. Issue the `kubectl apply` command to implement the configurations, e.g.: 1. Issue the `kubectl apply` command to implement the configurations, e.g.:
<CodeBlockConfig> <CodeBlockConfig>
```shell-session ```shell-session
$ kubectl apply --values gateway-configuration.yaml $ kubectl apply -f gateway.yaml routes.yaml
``` ```
</CodeBlockConfig> </CodeBlockConfig>

Loading…
Cancel
Save