en-docs: Improve Install Instruction Formating (#17996)

This commit is contained in:
Samuel Kihahu
2019-12-24 18:33:29 +03:00
committed by Kubernetes Prow Robot
parent 891814d1d6
commit c2617fb80f
+11 -8
View File
@@ -80,21 +80,24 @@ yum install -y kubectl
### Install using other package management ### Install using other package management
{{< tabs name="other_kubectl_install" >}}
{{% tab name="Snap" %}}
If you are on Ubuntu or another Linux distribution that support [snap](https://snapcraft.io/docs/core/install) package manager, kubectl is available as a [snap](https://snapcraft.io/) application. If you are on Ubuntu or another Linux distribution that support [snap](https://snapcraft.io/docs/core/install) package manager, kubectl is available as a [snap](https://snapcraft.io/) application.
If you are on Linux and using [Homebrew](https://docs.brew.sh/Homebrew-on-Linux) package manager, kubectl is available for [installation](https://docs.brew.sh/Homebrew-on-Linux#install). ```shell
snap install kubectl --classic
{{< tabs name="other_kubectl_install" >}}
{{< tab name="Snap" codelang="bash" >}}
sudo snap install kubectl --classic
kubectl version kubectl version
{{< /tab >}} ```
{{< tab name="Homebrew" codelang="bash" >}} {{% /tab %}}
{{% tab name="Homebrew" %}}
If you are on Linux and using [Homebrew](https://docs.brew.sh/Homebrew-on-Linux) package manager, kubectl is available for [installation](https://docs.brew.sh/Homebrew-on-Linux#install).
```shell
brew install kubectl brew install kubectl
kubectl version kubectl version
{{< /tab >}} ```
{{% /tab %}}
{{< /tabs >}} {{< /tabs >}}
## Install kubectl on macOS ## Install kubectl on macOS