markdown IBM BLuemix

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown IBM BLuemix相关的知识,希望对你有一定的参考价值。


## Prequisits

Install the the following [Bluemix CLI](https://console.bluemix.net/docs/cli/reference/bluemix_cli/get_started.html#getting-started) and follow the folling steps to setup and control IBM Bluemix Containers:

```sh
# Install Kubernets CLI and Shell Autocompletion
$ brew install kubectl bash-completion@2 cloudfoundry/tap/cf-cli

# Login to your bluemix account
$ bx login
```

## Get started

To get use to a Docker file, you first have to login to the [Bluemix Console](https://console.bluemix.net), and create a [Cluster](https://console.bluemix.net/containers-kubernetes/home/clusters?env_id=ibm%3Ayp%3Aeu-de) (A virtual Maschine).

Now, install a container service and get access to your cluster:

```sh
$ bx plugin install container-service -r Bluemix
$ bx cs init

# Match the shell to the cluser and copy and paste the export order to your console:
$ bx cs cluster-config CLUSTERID
$ export KUBECONFIG=/Users/YOURUSER/.bluemix/plugins/container-service/clusters/CLUSTERID/kube-config-par01-CLUSTERID.yml

# Verify connection and run the proxy
$ kubectl get nodes
$ kubectl proxy
```

Now you can access your [cluster dashboard locally](http://127.0.0.1:8001/).

### Install a Docker file

Follow the following steps:
https://console.bluemix.net/docs/containers/cs_apps.html#cs_apps_cli

```sh
$ bx cs clusters          # list clusters
$ bx cs workers CLUSTERID # check cluster status
$ bx cls cluster...       # repeat the MATCH step from above

# Specify the organisation and space. You can access them in the Bluemix console in the upper right corner
$ bx target -o "ORGNAME" -s "YOUR SPACE"

# Get all services
$ bx service offerings


```

以上是关于markdown IBM BLuemix的主要内容,如果未能解决你的问题,请参考以下文章

IBM Mobilefirst 和 IBM Bluemix

如何在 IBM Bluemix 中查看调试日志

ibm bluemix spark 提交

IBM Bluemix体验:Containers进阶

IBM Bluemix 支持 Primefaces? [关闭]

基于IBM Bluemix的数据缓存应用实例