pull/14153/head
Sarah Alsmiller 2022-08-02 11:07:29 -05:00
parent 70a892aa44
commit 0bcbb57973
1 changed files with 39 additions and 39 deletions

View File

@ -29,57 +29,57 @@ $ kubectl apply --kustomize="github.com/hashicorp/consul-api-gateway/config/crd?
1. Create a `values.yaml` file for your Consul API Gateway deployment by copying the following content and running it in the environment where you set the `VERSION` environment variable. The Consul Helm chart uses this `values.yaml` file to deploy the API Gateway. Available versions of the [Consul](https://hub.docker.com/r/hashicorp/consul/tags) and [Consul API Gateway](https://hub.docker.com/r/hashicorp/consul-api-gateway/tags) Docker images can be found on DockerHub, with additional context on version compatibility published in [GitHub releases](https://github.com/hashicorp/consul-api-gateway/releases). For more options to configure your Consul API Gateway deployment through the Helm chart, refer to [Helm Chart Configuration - apiGateway](https://www.consul.io/docs/k8s/helm#apigateway). 1. Create a `values.yaml` file for your Consul API Gateway deployment by copying the following content and running it in the environment where you set the `VERSION` environment variable. The Consul Helm chart uses this `values.yaml` file to deploy the API Gateway. Available versions of the [Consul](https://hub.docker.com/r/hashicorp/consul/tags) and [Consul API Gateway](https://hub.docker.com/r/hashicorp/consul-api-gateway/tags) Docker images can be found on DockerHub, with additional context on version compatibility published in [GitHub releases](https://github.com/hashicorp/consul-api-gateway/releases). For more options to configure your Consul API Gateway deployment through the Helm chart, refer to [Helm Chart Configuration - apiGateway](https://www.consul.io/docs/k8s/helm#apigateway).
<CodeBlockConfig filename="values.yaml"> <CodeBlockConfig filename="values.yaml">
```shell ```shell
cat <<EOF > values.yaml cat <<EOF > values.yaml
global: global:
name: consul name: consul
connectInject: connectInject:
enabled: true enabled: true
controller: controller:
enabled: true enabled: true
apiGateway: apiGateway:
enabled: true enabled: true
image: hashicorp/consul-api-gateway:$VERSION image: hashicorp/consul-api-gateway:$VERSION
EOF EOF
``` ```
</CodeBlockConfig> </CodeBlockConfig>
1. Install Consul API Gateway using the standard Consul Helm chart or Consul K8s CLI specify the custom values file. Available versions of the [Consul Helm chart](https://github.com/hashicorp/consul-k8s/releases) can be found in GitHub releases. 1. Install Consul API Gateway using the standard Consul Helm chart or Consul K8s CLI specify the custom values file. Available versions of the [Consul Helm chart](https://github.com/hashicorp/consul-k8s/releases) can be found in GitHub releases.
<Tabs> <Tabs>
<Tab heading="Helm"> <Tab heading="Consul K8s CLI (Mac Only)">
Add the HashiCorp Helm repository. Note: You can review the official [Consul K8S CLI documentation](https://www.consul.io/docs/k8s/k8s-cli) to learn more about additional settings.
```shell-session ```shell-session
$ helm repo add hashicorp https://helm.releases.hashicorp.com $ brew tap hashicorp/tap
``` ```
Install Consul with API Gateway on your Kubernetes cluster by specifying the `values.yaml` file. ```shell-session
$ brew install hashicorp/tap/consul-k8s
```
```shell-session ```shell-session
$ helm install consul hashicorp/consul --version 0.45.0 --values values.yaml --create-namespace --namespace consul $ consul-k8s install -config-file=values.yaml -set global.image=hashicorp/consul:1.12.2
``` ```
</Tab>
<Tab heading="Consul K8s CLI (Mac Only)">
Note: You can review the official [Consul K8S CLI documentation](https://www.consul.io/docs/k8s/k8s-cli) to learn more about additional settings.
```shell-session </Tab>
$ brew tap hashicorp/tap <Tab heading="Helm">
``` Add the HashiCorp Helm repository.
```shell-session ```shell-session
$ brew install hashicorp/tap/consul-k8s $ helm repo add hashicorp https://helm.releases.hashicorp.com
``` ```
```shell-session Install Consul with API Gateway on your Kubernetes cluster by specifying the `values.yaml` file.
$ consul-k8s install -config-file=values.yaml -set global.image=hashicorp/consul:1.12.2
```
</Tab> ```shell-session
</Tabs> $ helm install consul hashicorp/consul --version 0.45.0 --values values.yaml --create-namespace --namespace consul
```
</Tab>
</Tabs>
<!-- <!--
****** KEEP ALL PAGE CONTENT ABOVE THIS LINE ******* ****** KEEP ALL PAGE CONTENT ABOVE THIS LINE *******