Files
nomad/website/content/partials/install/install-consul-cni-plugin.mdx
Aimee Ukasick 021692eccf docs: refactor CNI plugin content (#23707)
- Pulled common content from multiple pages into new partials
- Refactored install/index to be OS-based so I could add linux-distro-based instructions to install-consul-cni-plugins.mdx partial. The tab groups on the install/index page do match and change focus as expected.
- Moved CNI overview-type content to networking/index
- Refactored networking/cni to include install CNI plugins and configuration content (from install/index).
- Moved CNI plugins explanation in bridge mode configuration section into bullet points. They had been #### headings, which aren't rendered in the R page TOC. I tried to simplify and format the bullet point content to be easier to scan.

Ref: https://hashicorp.atlassian.net/browse/CE-661
Fixes: https://github.com/hashicorp/nomad/issues/23229
Fixes: https://github.com/hashicorp/nomad/issues/23583
2024-08-06 14:47:46 -04:00

54 lines
1.5 KiB
Plaintext

When you use the [`transparent_proxy`
block](/nomad/docs/job-specification/transparent_proxy) for Consul service mesh,
you must also install the [`consul-cni`
plugin](https://releases.hashicorp.com/consul-cni) on each client node for
Consul to properly redirect inbound and outbound traffic for services to the
Envoy proxy. For more information, refer to [Enable the Consul CNI
plugin](/consul/docs/k8s/connect/transparent-proxy/enable-transparent-proxy#enable-the-consul-cni-plugin)
in the Consul documentation.
You must install the CNI plugins before you install the Consul CNI plugin. The
following commands assume that you already installed the CNI plugins.
Install the `consul-cni` plugin on each client node.
<Tabs>
<Tab heading="Ubuntu/Debian" group="ubuntu">
```shell-session
$ sudo apt-get install -y consul-cni
```
</Tab>
<Tab heading="RHEL/CentOS" group="rhel">
```shell-session
$ sudo yum -y install consul-cni
```
</Tab>
<Tab heading="Fedora" group="fedora">
```shell-session
$ sudo dnf -y install consul-cni
```
</Tab>
<Tab heading="Amazon Linux" group="amazonlinux">
```shell-session
$ sudo yum -y install consul-cni
```
</Tab>
<Tab heading="Manual" group="linux-manual">
```shell-session
$ export ARCH_CNI=$( [ $(uname -m) = aarch64 ] && echo arm64 || echo amd64)
$ curl -L -o consul-cni.zip "https://releases.hashicorp.com/consul-cni/1.5.1/consul-cni_1.5.1_linux_${ARCH_CNI}".zip && \
sudo unzip consul-cni.zip -d /opt/cni/bin -x LICENSE.txt
```
</Tab>
</Tabs>