centos7.5安装minikube kubernetes
前提:已安装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的更多相关文章
- centos7.5安装VirtualBox
centos7.5安装minikube时要求先安装VirtualBox 1.准备repo文件 [root@localhost yum.repos.d]# pwd /etc/yum.repos.d [r ...
- Centos7 二进制安装 Kubernetes 1.13
目录 1.目录 1.1.什么是 Kubernetes? 1.2.Kubernetes 有哪些优势? 2.环境准备 2.1.网络配置 2.2.更改 HOSTNAME 2.3.配置ssh免密码登录登录 2 ...
- Centos7 安装部署Kubernetes(k8s)集群
目录 一.系统环境 二.前言 三.Kubernetes 3.1 概述 3.2 Kubernetes 组件 3.2.1 控制平面组件 3.2.2 Node组件 四.安装部署Kubernetes集群 4. ...
- 国内centos/windows10安装minikube
centos/windows10安装minikube 目录 centos/windows10安装minikube A win10安装minikube 1 下载安装kubectl.exe 1.1 准备目 ...
- Mac安装minikube
安装过程 先安装minikube,使用下面命令(由于墙的问题,所以指定国内的地址) curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyun ...
- 离线环境下使用二进制方式安装配置Kubernetes集群
本文环境 Redhat Linux 7.3,操作系统采用的最小安装方式. Kubernetes的版本为 V1.10. Docker版本为18.03.1-ce. etcd 版本为 V3.3.8. 1. ...
- 在虚拟机环境(CentOS7系统)下将kubernetes中部署服务成功,但在虚拟机外部无法访问到服务
在CentOS7环境下,kubernetes单机版环境,成功部署一个服务,在虚拟机中访问服务没问题,下面这样: curl http://172.27.73.26:8888/eureka-server/ ...
- centos7.8 安装部署 k8s 集群
centos7.8 安装部署 k8s 集群 目录 centos7.8 安装部署 k8s 集群 环境说明 Docker 安装 k8s 安装准备工作 Master 节点安装 k8s 版本查看 安装 kub ...
- 在centos7上安装Jenkins
在centos7上安装Jenkins 安装 添加yum repos,然后安装 sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins ...
随机推荐
- jsp页面间对象传递方法
严格的来说不能叫做JSP页面间的对象传递,实际应该是页面间对象共享的方法: 1. 通过servletcontext,也就是application对象了,但这种情况要求在同一个web应用下, ...
- autoconf配置的项目,编译debug版本
./configure CFLAGS=" -g " 当然,c++代码就把 CFALGS 改成 CPPFLAGS
- centos7 安装 codeblock(rpm)
--------------------- 1.yum -y install epel-release 2.yum clean all && yum makecache 3.yum - ...
- stopPropagation()阻止事件的冒泡传递
<!doctype html><html><head><meta charset="utf-8"><title>无标题文 ...
- 廖雪峰Java4反射与泛型-2注解-2定义注解
1.定义注解 使用@interface定义注解Annotation 注解的参数类似无参数方法 可以设定一个默认值(推荐) 把最常用的参数命名为value(推荐) 2.元注解 2.1Target使用方式 ...
- centos6.5kvm虚拟化技术
KVM的安装 一.KVM环境配置 1.修改内核模式为兼容内核启动 查看系统内核信息 # uname -a # vi /boot/grub/grub.conf 2.关闭selinux,重启后生效 # v ...
- static--Android静态变量使用陷阱
相关资料:http://blog.csdn.net/ctcwri/article/details/8858414 http://blog.csdn.net/w ...
- SCCM 2012 R2实战系列之十三:辅助站点部署
由于最近几个月一直处于AD升级项目中,很久没有更新SCCM的技术文档了.SCCM 2012中的辅助站点部署方法还是比较特别的,需要注意的地方也非常多,今天跟大家分享辅助站点的具体部署和配置方法. 1. ...
- MySQL的用户密码过期功能
Payment Card Industry,即支付卡行业,PCI行业表示借记卡.信用卡.预付卡.电子钱包.ATM和POS卡及相关的业务. PCI DSS,即PCI数据安全标准(Payment Card ...
- remmina从linux远程桌面连接windows失败解决方法
删除如下文件,重新连接 rm ~/.freerdp/known_hosts