- Home
- Operations Guide
- Access an MKE cluster
- Configure kubectl with MKE
Configure kubectl with MKE#
MKE installations include Kubernetes. Users can
deploy, manage, and monitor Kubernetes using either the MKE web UI or kubectl.
To install and use kubectl:
-
Identify which version of Kubernetes you are running by using the MKE web UI, the MKE API
versionendpoint, or the Docker CLIdocker versioncommand with the client bundle.Caution
Kubernetes requires that
kubectland Kubernetes be within one minor version of each other. -
Refer to Kubernetes: Install Tools to download and install the appropriate
kubectlbinary. -
Refer to Configure the client bundle to configure
kubectlwith MKE using the certificates and keys contained in the client bundle. -
Optional. Install Helm, the Kubernetes package manager, and Tiller, the Helm server.
Caution
Helm requires MKE 3.1.x or higher.
To use Helm and Tiller with MKE, grant the default service account within the
kube-systemnamespace the necessary roles:kubectl create rolebinding default-view --clusterrole=view \ --serviceaccount=kube-system:default --namespace=kube-system kubectl create clusterrolebinding add-on-cluster-admin \ --clusterrole=cluster-admin --serviceaccount=kube-system:defaultNote
Helm recommends that you specify a Role and RoleBinding to limit the scope of Tiller to a particular namespace. Refer to the official Helm documentation for more information.