Installing the IBM Multicloud Manager Klusterlet on a Google Kubernetes Engine
Follow the procedure to install IBM Multicloud Manager Klusterlet in a Google Kubernetes Engine (Kubernetes Engine) environment. For more information about Kubernetes Engine, see Google Kubernetes Engine .
Optional: View the license file for IBM Multicloud Manager with the following command:
docker run -e LICENSE=view ibmcom/mcm-inception-amd64:3.1.2-ce
-
Extract the cluster directory from the inception container with the following command:
docker run -v $(pwd):/data -e LICENSE=accept \ ibmcom/mcm-inception-amd64:3.1.2-ce \ cp -r /installer/cluster.gke /data/cluster -
Change to the cluster folder in your installation directory with the following command:
cd cluster -
Obtain your cluster access information.
To run the inception installer on a Kubernetes Engine cluster, you need a Google Cloud service account and key. For information about creating a Google Cloud Platform service accounts, see Authenticating to Cloud Platform with Service Accounts
. If you need to create a key manually, see Creating and Managing Service Account Keys.
To obtain your credentials, you need the key for the service account that is assigned the Kubernetes Engine Admin role. You can find that service account in the IAM & admin section of the console.
If you do not have your key, complete the following procedure to create a key:
- Log in to your Google Cloud Platform console.
- Navigate to the IAM & admin > Service accounts and find the account that is assigned the Kubernetes Engine Admin role.
- From the Actions menu, click Create key and select JSON to download the key to your directory.
- Copy the
.jsonfile and rename the key togke-sa-key.json. Copy the file to the cluster directory, which overrides the previous file. - Add the key to your cluster directory. Note: You must overwrite the current file with your
gke-sa-key.jsonfile.
-
Configure the Kubernetes service provider information in your
config.yamlfile. Configure the followinggcloudparameters:- cluster-name: Name of the target cluster from the Google Cloud Platform console
- zone: Location of the cluster. Click Kubernetes Engine > Cluster in the console
- project: The project ID for the project where the target cluster was created. You can find this in the Dashboard.
-
Configure the Klusterlet parameters in the
config.yamlfile in the cluster directory:- cluster-name: The name of the target cluster resource on the hub-cluster
- cluster-namespace: The namespace where the target cluster is contained on the hub-cluster
- cluster-tags: Tags that are used to describe the target cluster
- hub-k8s-endpoint: The Kubernetes API endpoint of the IBM Multicloud Manager hub-cluster
- hub-k8s-token: The authentication token for the Kubernetes API endpoint of the IBM Multicloud Manager hub-cluster
-
Run the inception container with the following command:
docker run --net=host -t -e LICENSE=accept \ -v "$(pwd)":/installer/cluster \ ibmcom/mcm-inception-amd64:3.1.2-ce \ install-mcm-klusterlet -vSee the IBM Multicloud Manager installation overview for more installation topics.