Your IBM Cloud paid account and your Kubernetes cluster have been pre-provisioned for you. Here are the steps to access your cluster:
-
Install the IBM Cloud command line interface.
-
Log in to the IBM Cloud CLI with your user name and api key:
bx login -u [email protected] --apikey xxx
-
Install the IBM Cloud Container Service plug-in.
bx plugin install container-service -r Bluemix
-
Verify that the plug-in is installed properly
bx plugin list
The container service plug-in is displayed in the results as
container-service
. -
Initialize the container service plug-in and point the API endpoint to the us-east region.
bx cs region-set us-east
-
Install the Kubernetes CLI. Go to the Kubernetes page to install the CLI and follow the steps.
-
Set the context for your cluster in your CLI. Every time you log in to the IBM Cloud Container Service CLI to work with your cluster, you must run these commands to set the path to the cluster's configuration file as a session variable. The Kubernetes CLI uses this variable to find a local configuration file and certificates that are necessary to connect with the cluster in IBM Cloud.
a. List available clusters. You should see the cluster
guestbook
.bx cs clusters
b. Download the configuration file and certificates for your
guestbook
cluster.bx cs cluster-config guestbook
c. Copy and paste the output command from the previous step to set the
KUBECONFIG
environment variable and configure your CLI to runkubectl
commands against your cluster. -
Create a proxy to your Kubernetes API server.
kubectl proxy
-
In a browser, go to http://localhost:8001/ui to access the API server dashboard.
-
View the details of your cluster.
bx cs cluster-get guestbook
-
Verify the worker nodes in the cluster.
bx cs workers guestbook bx cs worker-get [worker_id]
-
Clone the repo.
git clone https://github.com/szihai/istio-workshop.git
-
Navigate in to the working directory for the lab.
cd istio-workshop