Bluemix Deployment (ii) building a kubernetes work environment

Source: Internet
Author: User
Tags kubernetes dashboard

This article is connected to the previous article. Build the Kubernetes container in Bluemix.

1. Create a cluster

The top left corner of the three horizontal, select the container, and then create the cluster.

Note area, free version, give a name, create a cluster bar.

Continue to be deployed, this may take 15-30 minutes, I am not sure, in order to give you a tutorial, I deleted my original.

The following prerequisites install the tool according to the prompts.

2. Install the cluster tool
2.1 IBM Cloud CLI

https://console.bluemix.net/docs/cli/reference/bluemix_cli/get_started.html#getting-started

This to be installed
2.2 Kubernetes CLI https://kubernetes.io/docs/user-guide/prereqs/

This is directly extracted to a directory, you can add into the path is OK. Two Choice One
2.3 Installing Plugins
BX Plugin Install container-service-r Bluemix

Execute this command on the go.
3. Login to the cluster, get access rights

Wait wait until cluster deployment is complete, ready state
In your cluster's page, there is a access right, which has related commands. (Please copy your page, the room is not the same, the space name is not the same, the command is not the same.) Basically is the page in order to copy, execute)
6.1 Login Commands
BX login-a https://api.eu-de.bluemix.net
6.2 Enter your username and password
6.3 Select organization
6.4 Select Room
BX CS Region-set eu-central
6.5 Downloading the configuration file
BX CS Cluster-config Germany
6.6 Registering the download file
At the end of the previous command, there will be a line of output that is yellow, presumably SET kubeconfig=c:\users\jacka\.bluemix\plugins\container-service\clusters\england\ Kube-config-mil01-england.yml
Copy and paste, run a bit.
6.7 Viewing cluster worker nodes
Kubectl Get Nodes
D:\bluemix>kubectl Get Nodes
NAME STATUS ROLES Age VERSION
10.144.181.51 Ready <none> 2d v1.8.6-4+9c2a4c1ed1ee7e
You will see a node of ready, and name is an intranet address that matches the IP address of the worker nodes you see on your cluster page.
Prove that you have linked to your cluster.


8. Start Proxy
8.1. Get token
Kubectl config View-o jsonpath= ' {. Users[0].user.auth-provider.config.id-token} '
Copy the token result, ' inside the quote '.
8.2 Start Proxy
Kubectl Proxy
You will see starting to server on 127.0.0.1:8001
8.3 Visit kubernetes
Browser open, plus UI
Http://127.0.0.1:8001/ui
Or on the cluster access page, there's a Kubernetes dashboard link at the bottom.
can also enter
8.4 Use token authentication.
Verify the way to change tokens, the tokens just copied in, you can log in.

Bluemix Deployment (ii) building a kubernetes work environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.