前提:已安装centos7.5安装VirtualBox

Minikube是什么?
Minikube是一种方便在本地运行Kubernetes的工具. 
Minikube 是可以在VM中运行单节点的Kubernetes集群. 
Minikube是为了开发或测试在本地启动一个节点的kubernetes集群.

特点
不能启动生产集群,没有高可用性的单节点机器. 
可以工作在Windows,Linux,MacOS下

1.安装minikube

[root@localhost ~]# curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
38.2M 38.2M 671k :: :: --:--:-- 1640k

2.安装kubectl

[root@localhost yum.repos.d]# curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.10.3/bin/linux/amd64/kubectl && chmod +x kubectl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
51.7M 51.7M 1421k :: :: --:--:-- 1762k
[root@localhost yum.repos.d]# mv kubectl /usr/local/bin/

此处获取稳定版本可直接在浏览器IE中输入https://storage.googleapis.com/kubernetes-release/release/stable.txt

3.配置变量

root@localhost network-scripts]# export MINIKUBE_WANTUPDATENOTIFICATION=false
[root@localhost network-scripts]# export MINIKUBE_WANTREPORTERRORPROMPT=false
[root@localhost network-scripts]# export MINIKUBE_HOME=$HOME
[root@localhost network-scripts]# export CHANGE_MINIKUBE_NONE_USER=true
[root@localhost network-scripts]# mkdir $HOME/.kube || true
mkdir: cannot create directory ‘/root/.kube’: File exists
[root@localhost network-scripts]# touch $HOME/.kube/config
[root@localhost network-scripts]# export KUBECONFIG=$HOME/.kube/config
[root@localhost network-scripts]# echo $MINIKUBE_WANTUPDATENOTIFICATION
false
[root@localhost network-scripts]# echo $MINIKUBE_WANTREPORTERRORPROMPT
false[root@localhost network-scripts]# echo $MINIKUBE_HOME
/root
[root@localhost network-scripts]# echo $CHANGE_MINIKUBE_NONE_USER
true
[root@localhost network-scripts]# ls $HOME/.kube/
config
[root@localhost network-scripts]# echo $KUBECONFIG
/root/.kube/config

4.启动minikube

[root@localhost bin]# curl -Lo kubeadm http://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/linux/amd64/kubeadm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
149M 149M 731k :: :: --:--:-- 1274k
[root@localhost bin]# curl -Lo kubelet http://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/linux/amd64/kubelet
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
145M 145M 1638k :: :: --:--:-- 1762k

[root@localhost bin]# chmod +x ./*
[root@localhost bin]# ll
total 394152
-rwxr-xr-x. 1 root root 424 Mar 27 15:58 config.sh
-rwxr-xr-x. 1 root root 156467952 Mar 28 09:52 kubeadm
-rwxr-xr-x. 1 root root 54277604 Mar 28 10:05 kubectl
-rwxr-xr-x. 1 root root 152761952 Mar 28 09:55 kubelet
-rwxr-xr-x. 1 root root 40087180 Mar 27 10:02 minikube
-rwxr-xr-x. 1 root root 672 Mar 27 17:57 pullK8s.sh
[root@localhost bin]# pwd
/usr/local/bin

[root@localhost network-scripts]# minikube start --vm-driver=virtualbox
o minikube v0.35.0 on linux (amd64)
> Creating virtualbox VM (CPUs=, Memory=2048MB, Disk=20000MB) ...
! Unable to start VM: create: precreate: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory * Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
- https://github.com/kubernetes/minikube/issues/new

保证VMware设置cpu虚拟化,intel VT-x  ThinkCentre进入BIOS,设置intel virtualization technology

重新安装

centos7.5安装minikube kubernetes的更多相关文章

  1. centos7.5安装VirtualBox

    centos7.5安装minikube时要求先安装VirtualBox 1.准备repo文件 [root@localhost yum.repos.d]# pwd /etc/yum.repos.d [r ...

  2. Centos7 二进制安装 Kubernetes 1.13

    目录 1.目录 1.1.什么是 Kubernetes? 1.2.Kubernetes 有哪些优势? 2.环境准备 2.1.网络配置 2.2.更改 HOSTNAME 2.3.配置ssh免密码登录登录 2 ...

  3. Centos7 安装部署Kubernetes(k8s)集群

    目录 一.系统环境 二.前言 三.Kubernetes 3.1 概述 3.2 Kubernetes 组件 3.2.1 控制平面组件 3.2.2 Node组件 四.安装部署Kubernetes集群 4. ...

  4. 国内centos/windows10安装minikube

    centos/windows10安装minikube 目录 centos/windows10安装minikube A win10安装minikube 1 下载安装kubectl.exe 1.1 准备目 ...

  5. Mac安装minikube

    安装过程 先安装minikube,使用下面命令(由于墙的问题,所以指定国内的地址) curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyun ...

  6. 离线环境下使用二进制方式安装配置Kubernetes集群

    本文环境 Redhat Linux 7.3,操作系统采用的最小安装方式. Kubernetes的版本为 V1.10. Docker版本为18.03.1-ce. etcd 版本为 V3.3.8. 1. ...

  7. 在虚拟机环境(CentOS7系统)下将kubernetes中部署服务成功,但在虚拟机外部无法访问到服务

    在CentOS7环境下,kubernetes单机版环境,成功部署一个服务,在虚拟机中访问服务没问题,下面这样: curl http://172.27.73.26:8888/eureka-server/ ...

  8. centos7.8 安装部署 k8s 集群

    centos7.8 安装部署 k8s 集群 目录 centos7.8 安装部署 k8s 集群 环境说明 Docker 安装 k8s 安装准备工作 Master 节点安装 k8s 版本查看 安装 kub ...

  9. 在centos7上安装Jenkins

    在centos7上安装Jenkins 安装 添加yum repos,然后安装 sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins ...

随机推荐

  1. PHP 下载中文乱码解决

    利用 iconv() 函数解决乱码 $file_name = iconv("utf-8","gb2312",$file_name); 原文链接 http://m ...

  2. 关于Zookeeper选举机制

    zookeeper集群 配置多个实例共同构成一个集群对外提供服务以达到水平扩展的目的,每个服务器上的数据是相同的,每一个服务器均可以对外提供读和写的服务,这点和redis是相同的,即对客户端来讲每个服 ...

  3. LeetCode——11. Container With Most Water

    一.题目链接:https://leetcode.com/problems/container-with-most-water/ 二.题目大意: 给定n个非负整数a1,a2....an:其中每一个整数对 ...

  4. STL基础--流

    流 介绍 // cout: 全局ostream对象,(typedef basic_ostream<char> ostream) // <<: ostream& ostr ...

  5. PyQt5学习笔记14----初识pyqt多线程操作

    转载:翻滚吧挨踢男 首先来看一个例子: # coding=utf-8 __author__ = 'a359680405' from PyQt5.QtCore import * from PyQt5.Q ...

  6. xp sql2000 安装SP4失败解决方案

    环境:xp sp3 SQL: sql2000sql2000 SP4下载链接: http://www.microsoft.com/downloads/details.aspx?familyid=8E2D ...

  7. JSON Web Tokens测试工具

    JSON Web Tokens官方提供测试工具https://jwt.io某些静态资料需要链接google.twitter服务器,被墙无法访问.现在提供可以方法测试工具http://hingtai.c ...

  8. MySQL面试题和答案

    Mysql 的存储引擎,myisam和innodb的区别. 答: 1.MyISAM 是非事务的存储引擎,适合用于频繁查询的应用.表锁,不会出现死锁,适合小数据,小并发. 2.innodb是支持事务的存 ...

  9. GDB 调试 ---转 比较全的东东

    转自 程序人生:http://www.programlife.net/gdb-manual.html Linux 包含了一个叫gdb 的GNU 调试程序.gdb 是一个用来调试C和C++程序的强力调试 ...

  10. win10配置labelImg

    [引言]在目标检测中,需要用图像标注工具标注图像,如Labelme . labelImg等,本文使用的是LabelImg ,LabelImg在Ubuntu下很好部署, 在win10中有些地方要注意下, ...