consul/website/content/docs/k8s/installation/install-cli.mdx

285 lines
9.5 KiB
Plaintext
Raw Normal View History

docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
---
layout: docs
page_title: Install Consul on K8s CLI
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
description: >-
2022-09-16 15:28:32 +00:00
You can use the Consul K8s CLI tool to schedule Kubernetes deployments instead of using Helm. Learn how to download and install the tool to interact with Consul on Kubernetes using the `consul-k8s` command.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
---
# Install Consul on Kubernetes from Consul K8s CLI
This topic describes how to install Consul on Kubernetes using the Consul K8s CLI tool. The Consul K8s CLI tool enables you to quickly install and interact with Consul on Kubernetes. Use the Consul K8s CLI tool to install Consul on Kubernetes if you are deploying a single cluster. We recommend using the [Helm chart installation method](/consul/docs/k8s/installation/install) if you are installing Consul on Kubernetes for multi-cluster deployments that involve cross-partition or cross datacenter communication.
## Introduction
If it is your first time installing Consul on Kubernetes, then you must first install the Consul K8s CLI tool. You can install Consul on Kubernetes using the Consul K8s tool after installing the CLI.
## Requirements
- The `kubectl` client must already be configured to authenticate to the Kubernetes cluster using a valid `kubeconfig` file.
- Install one of the following package managers so that you can install the Consul K8s CLI tool. The installation instructions also provide commands for installing and using the package managers:
- MacOS: [Homebrew](https://brew.sh)
- Ubuntu/Debian: apt
- CentOS/RHEL: yum
You must install the correct version of the CLI for your Consul on Kubernetes deployment. To deploy a previous version of Consul on Kubernetes, download the specific version of the CLI that matches the version of the control plane that you would like to deploy. Refer to the [compatibility matrix](/consul/docs/k8s/compatibility) for details.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
## Install the CLI
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
The following instructions describe how to install the latest version of the Consul K8s CLI tool, as well as earlier versions, so that you can install an appropriate version of tool for your control plane.
### Install the latest version
Complete the following instructions for a fresh installation of Consul on Kubernetes.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
<Tabs>
<Tab heading="MacOS">
The [Homebrew](https://brew.sh) package manager is required to complete the following installation instructions. The Homebrew formulae always installs the latest version of a binary.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
1. Install the HashiCorp `tap`, which is a repository of all Homebrew packages for HashiCorp:
```shell-session
$ brew tap hashicorp/tap
```
1. Install the Consul K8s CLI with `hashicorp/tap/consul` formula.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```shell-session
$ brew install hashicorp/tap/consul-k8s
```
1. (Optional) Issue the `consul-k8s version` command to verify the installation:
```shell-session
$ consul-k8s version
consul-k8s 1.0
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
</Tab>
<Tab heading="Linux - Ubuntu/Debian">
1. Add the HashiCorp GPG key.
```shell-session
$ curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
```
1. Add the HashiCorp apt repository.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```shell-session
$ sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
```
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
1. Run apt-get install to install the `consul-k8s` CLI.
```shell-session
$ sudo apt-get update && sudo apt-get install consul-k8s
```
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
1. (Optional) Issue the `consul-k8s version` command to verify the installation.
```shell-session
$ consul-k8s version
consul-k8s 1.0
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```
</Tab>
<Tab heading="Linux - CentOS/RHEL">
1. Install `yum-config-manager` to manage your repositories.
```shell-session
$ sudo yum install -y yum-utils
```
1. Use `yum-config-manager` to add the official HashiCorp Linux repository.
```shell-session
$ sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
```
1. Install the `consul-k8s` CLI.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```shell-session
$ sudo yum -y install consul-k8s
```
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
1. (Optional) Issue the `consul-k8s version` command to verify the installation.
```shell-session
$ consul-k8s version
consul-k8s 1.0
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
</Tab>
</Tabs>
### Install a previous version
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
Complete the following instructions to install a specific version of the CLI so that your tool is compatible with your Consul on Kubernetes control plane. Refer to the [compatibility matrix](/consul/docs/k8s/compatibility) for additional information.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
<Tabs>
<Tab heading="MacOS">
1. Download the appropriate version of Consul K8s CLI using the following `curl` command. Set the `$VERSION` environment variable to the appropriate version for your deployment.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```shell-session
$ export VERSION=1.1.1 && \
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
curl --location "https://releases.hashicorp.com/consul-k8s/${VERSION}/consul-k8s_${VERSION}_darwin_amd64.zip" --output consul-k8s-cli.zip
```
1. Unzip the zip file output to extract the `consul-k8s` CLI binary. This overwrites existing files and also creates a `.consul-k8s` subdirectory in your `$HOME` folder.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```shell-session
$ unzip -o consul-k8s-cli.zip -d ~/consul-k8s
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```
1. Add the path to your directory. In order to persist the `$PATH` across sessions, dd it to your shellrc (i.e. shell run commands) file for the shell used by your terminal.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```shell-session
$ export PATH=$PATH:$HOME/consul-k8s
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
1. (Optional) Issue the `consul-k8s version` command to verify the installation.
```shell-session
$ consul-k8s version
consul-k8s 1.0
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```
</Tab>
<Tab heading="Linux - Ubuntu/Debian">
1. Add the HashiCorp GPG key.
```shell-session
$ curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
```
1. Add the HashiCorp apt repository.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```shell-session
$ sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
```
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
1. Run apt-get install to install the `consul-k8s` CLI.
```shell-session
$ export VERSION=0.39.0 && \
sudo apt-get update && sudo apt-get install consul-k8s=${VERSION}
```
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
1. (Optional) Issue the `consul-k8s version` command to verify the installation.
```shell-session
$ consul-k8s version
consul-k8s 1.0
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```
</Tab>
<Tab heading="Linux - CentOS/RHEL">
1. Install `yum-config-manager` to manage your repositories.
```shell-session
$ sudo yum install -y yum-utils
```
1. Use `yum-config-manager` to add the official HashiCorp Linux repository.
```shell-session
$ sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
```
1. Install the `consul-k8s` CLI.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```shell-session
$ export VERSION=-1.0 && \
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
sudo yum -y install consul-k8s-${VERSION}-1
```
2. (Optional) Issue the `consul-k8s version` command to verify the installation.
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```shell-session
$ consul-k8s version
consul-k8s 1.0
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
```
docs: Add specific version install guide for `consul-k8s` CLI, refactor install (#12114) * docs: Add specific version install guide for `consul-k8s` CLI * parameterize version * remove extra path * Update k8s-cli.mdx * slight formatting * Update k8s-cli.mdx * specific version details in overall install guide * shell details * Update install.mdx * Update k8s-cli.mdx * Update install.mdx * broken link * typo * Update website/content/docs/k8s/installation/compatibility.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/k8s-cli.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * Update website/content/docs/k8s/installation/install.mdx Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> * moving install cli commands to separate page * add tabs, wip * add specific distro install guides * add upgrade tabs * build failure * not sure why heading is not working * remove whitespace * add more whitespace * fixes on formatting * remove package lock * add back package lock json * test * latest * remove modified file * adding fix to yum install * create folder for upgrade and move upgrade cli there * revert package-lock * adding upgrade file * Update website/content/docs/k8s/upgrade/upgrade-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update website/content/docs/k8s/installation/install-cli.mdx Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Update install-cli.mdx * multi-line copy Co-authored-by: mrspanishviking <kcardenas@hashicorp.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com>
2022-01-20 16:26:31 +00:00
</Tab>
</Tabs>
## Install Consul on Kubernetes
After installing the Consul K8s CLI tool (`consul-k8s`), issue the `install` subcommand and any additional options to install Consul on your existing Kubernetes cluster. Refer to the [Consul K8s CLI reference](/consul/docs/k8s/k8s-cli) for details about all commands and available options. If you do not include any additional options, the `consul-k8s` CLI installs Consul on Kubernetes using the default settings form the Consul Helm chart values. The following example installs Consul on Kubernetes with service mesh and CRDs enabled.
```shell-session
$ consul-k8s install
==> Pre-Install Checks
No existing installations found.
✓ No previous persistent volume claims found
✓ No previous secrets found
==> Consul Installation Summary
Installation name: consul
Namespace: consul
Overrides:
connectInject:
enabled: true
Proceed with installation? (y/N) y
==> Running Installation
✓ Downloaded charts
--> creating 1 resource(s)
--> creating 45 resource(s)
--> beginning wait for 45 resources with timeout of 10m0s
✓ Consul installed into namespace "consul"
```
You can include the `-auto-approve` option set to `true` to proceed with the installation if the pre-install checks pass.
The pre-install checks may fail if existing `PersistentVolumeClaims` (PVC) are detected. Refer to the [uninstall instructions](/consul/docs/k8s/operations/uninstall#uninstall-consul) for information about removing PVCs.
Docs/api-gw-jwts-openshift-1-17-x (#19035) * update main apigw overview * moved the tech specs to main gw folder * merged tech specs into single topic * restructure nav part 1 * fix typo in nav json file * moved k8s install up one level * restructure nav part 2 * moved and created all listeners and routes content * moved errors ref and upgrades * fix error in upgrade-k8s link * moved conf refs to appropriate spots * updated conf overview * fixed some links and bad formatting * fixed link * added JWT on VMs usage page * added JWT conf to APIGW conf entry * added JWTs to HTTP route conf entry * added new gatwaypolicy k8s conf reference * added metadesc for gatewaypolicy conf ref * added http route auth filter k8s conf ref * added http route auth filter k8s conf ref to nav * updates to k8s route conf ref to include extensionRef * added JWTs usage page for k8s * fixed link in gwpolicy conf ref * added openshift installation info to installation pages * fixed bad link on tech specs * Apply suggestions from code review Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com> Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com> * fixed VerityClaims param * best guess at verifyclaims params * tweaks to gateway policy dconf ref * Docs/ce 475 retries timeouts for apigw (#19086) * added timeout and retry conf ref for k8s * added retry and TO filters to HTTP routes conf ref for VMs * Apply suggestions from code review Co-authored-by: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com> * fix copy/paste error in http route conf entry --------- Co-authored-by: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com> * update links across site and add redirects * Apply suggestions from code review Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Applied feedback from review * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com> * Update CRD configuration for responseHeaderModifiers * Update Config Entry for http-route * Add ResponseFilter example to service * Update website/redirects.js errant curly brace breaking the preview * fix links and bad MD * fixed md formatting issues * fix formatting errors * fix formatting errors * Update website/content/docs/connect/gateways/api-gateway/secure-traffic/verify-jwts-k8s.mdx * Apply suggestions from code review * fixed typo * Fix headers in http-route * Apply suggestions from code review Co-authored-by: John Maguire <john.maguire@hashicorp.com> Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com> --------- Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com> Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com> Co-authored-by: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com> Co-authored-by: John Maguire <john.maguire@hashicorp.com>
2023-10-10 20:29:55 +00:00
## Custom installation
You can create a values file and specify parameters to overwrite the default Helm chart installation. Add the `-f` and specify your values file to implement your configuration, for example:
```shell-session
$ consul-k8s install -f values.yaml
```
### Install Consul on OpenShift clusters
[Red Hat OpenShift](https://www.redhat.com/en/technologies/cloud-computing/openshift) is a security-conscious, opinionated wrapper for Kubernetes. To install Consul on OpenShift-managed Kubernetes, set `global.openshift.enabled=true` in your [custom installation](#custom-installation) values file:
```yaml
global:
openshift:
enabled: true
```
Docs/api-gw-jwts-openshift-1-17-x (#19035) * update main apigw overview * moved the tech specs to main gw folder * merged tech specs into single topic * restructure nav part 1 * fix typo in nav json file * moved k8s install up one level * restructure nav part 2 * moved and created all listeners and routes content * moved errors ref and upgrades * fix error in upgrade-k8s link * moved conf refs to appropriate spots * updated conf overview * fixed some links and bad formatting * fixed link * added JWT on VMs usage page * added JWT conf to APIGW conf entry * added JWTs to HTTP route conf entry * added new gatwaypolicy k8s conf reference * added metadesc for gatewaypolicy conf ref * added http route auth filter k8s conf ref * added http route auth filter k8s conf ref to nav * updates to k8s route conf ref to include extensionRef * added JWTs usage page for k8s * fixed link in gwpolicy conf ref * added openshift installation info to installation pages * fixed bad link on tech specs * Apply suggestions from code review Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com> Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com> * fixed VerityClaims param * best guess at verifyclaims params * tweaks to gateway policy dconf ref * Docs/ce 475 retries timeouts for apigw (#19086) * added timeout and retry conf ref for k8s * added retry and TO filters to HTTP routes conf ref for VMs * Apply suggestions from code review Co-authored-by: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com> * fix copy/paste error in http route conf entry --------- Co-authored-by: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com> * update links across site and add redirects * Apply suggestions from code review Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com> * Applied feedback from review * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com> * Update CRD configuration for responseHeaderModifiers * Update Config Entry for http-route * Add ResponseFilter example to service * Update website/redirects.js errant curly brace breaking the preview * fix links and bad MD * fixed md formatting issues * fix formatting errors * fix formatting errors * Update website/content/docs/connect/gateways/api-gateway/secure-traffic/verify-jwts-k8s.mdx * Apply suggestions from code review * fixed typo * Fix headers in http-route * Apply suggestions from code review Co-authored-by: John Maguire <john.maguire@hashicorp.com> Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com> --------- Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com> Co-authored-by: Nathan Coleman <nathan.coleman@hashicorp.com> Co-authored-by: sarahalsmiller <100602640+sarahalsmiller@users.noreply.github.com> Co-authored-by: Thomas Eckert <teckert@hashicorp.com> Co-authored-by: John Maguire <john.maguire@hashicorp.com>
2023-10-10 20:29:55 +00:00
Refer to [`openshift` in the Helm chart reference](/consul/docs/k8s/helm#v-global-openshift) for additional information.
## Check the Consul cluster status
Issue the `consul-k8s status` command to view the status of the installed Consul cluster.
```shell-session
$ consul-k8s status
==> Consul-K8s Status Summary
NAME | NAMESPACE | STATUS | CHARTVERSION | APPVERSION | REVISION | LAST UPDATED
---------+-----------+----------+--------------+------------+----------+--------------------------
consul | consul | deployed | 0.40.0 | 1.14.0 | 1 | 2022/01/31 16:58:51 PST
✓ Consul servers healthy (3/3)
✓ Consul clients healthy (3/3)
```