mac016--installation k8s

Source: Internet
Author: User
Tags curl k8s

Reference URL: http://batizhao.github.io/2018/01/18/Running-Kubernetes-Locally-via-Minikube/

K8s Study Website: https://www.kubernetes.org.cn/installkubectl

Description

Install the Xhyve driver in preparation for the job. Installation is not possible here, as the Visualbox is installed in advance

STEP1: Installing Kubectl
$ Curl-lo https://storage.googleapis.com/kubernetes-release/release/' Curl-sHttps://storage.googleapis.com/kubernetes-release/release/stable.txt'/bin/darwin/amd64/kubectl$ chmod+x./kubectl$ sudo mv./kubectl/usr/local/bin/kubectl$ kubectl versionclient version:version. Info{major:"1", Minor:"9", Gitversion:"v1.9.1", Gitcommit:"3a1c9449a956b6026f075fa3134ff92f7d55f812", Gittreestate:" Clean", Builddate:"2018-01-04t11:52:23z", Goversion:"go1.9.2", Compiler:"GC", Platform:"Darwin/amd64"}server version:version. Info{major:"1", Minor:"8", Gitversion:"v1.8.0", Gitcommit:"0b9efaeb34a2fc51ff8e4d34ad9bc6375459c4a4", Gittreestate:" Clean", Builddate:"2017-11-29t22:43:34z", Goversion:"go1.9.1", Compiler:"GC", Platform:"Linux/amd64"}
STEP2: Installing Minikube
$ Curl-lo minikube https://STORAGE.GOOGLEAPIS.COM/MINIKUBE/RELEASES/V0.24.1/MINIKUBE-DARWIN-AMD64 && chmod +x minikube && sudo mv minikube/usr/local/bin/$ minikube versionminikube version:v0.
    24.1

Start the cluster

$ minikube Start

View nodes

Get Node

A problem occurred:

Workaround:

$ CD. kube/-ef | grep minizbmac-:. Kube shiyufeng$ Brew Install Wgetzbmac-:.kube shiyufeng$ chmod +x kubectl zbmac
    get  nodeszbmac-:. Kube shiyufeng$ which Kubectlzbmac-:.kube shiyufeng$ mv kubectl/usr/ local/bin/Zbmac-:. Kube shiyufeng$ kubectl versionzbmacget  nodeszbmacget Pods--all-namespces
Zbmac-:.kube shiyufeng$ minikube Start

mac016--installation k8s

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.