Update the Consul K8s CLI

Consul K8s CLI is a tool for quickly installing and interacting with Consul on Kubernetes. Ensure that you are running the correct version of the CLI prior to upgrading your Consul on Kubernetes deployment, as the CLI and the control plane are version dependent.

Upgrade the CLI

These instructions describe how to upgrade the current installed version of the CLI to the latest version. If you are looking to upgrade to a specific version, please follow Install a specific version of the CLI.

The Homebrew package manager is required to complete the following installation instructions. The brew upgrade command assumes that Hashicorp tap repository has already been installed from a prior install.

  1. Upgrade the Consul K8s CLI with the latest consul-k8s package.

    1. $ brew upgrade consul-k8s
  2. (Optional) Issue the consul-k8s version command to verify the installation:

    1. $ consul-k8s version
    2. consul-k8s 0.39.0
  3. Upgrade all the available packages on your system.

    1. $ sudo apt-get update
  4. Upgrade the Consul K8s CLI with the latest consul-k8s package.

    1. $ sudo apt-get --only-upgrade install consul-k8s
  5. (Optional) Issue the consul-k8s version command to verify the installation:

    1. $ consul-k8s version
    2. consul-k8s 0.39.0
  6. Upgrade all the available packages on your system.

    1. $ sudo yum update
  7. Upgrade the Consul K8s CLI with the latest consul-k8s package.

    1. $ sudo yum update consul-k8s
  8. (Optional) Issue the consul-k8s version command to verify the installation:

    1. $ consul-k8s version
    2. consul-k8s 0.39.0