Java教程

ubuntu安装minikube

本文主要是介绍ubuntu安装minikube,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
  1. 创建root账号
sudo passwd
  1. root用户下修改源
cp /etc/apt/sources.list /etc/apt/sources_bak.list  # 备份
nano /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

apt-get update
  1. 安装docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
  1. 安装minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
  1. 如果报错The “docker“ driver should not be used with root privileges,则需要在非root的用户下执行,$USER即非root用户
sudo usermod -aG docker $USER && newgrp docker
  1. 启动
minikube start

在这里插入图片描述
7. 安装kubectl

minikube kubectl -- get pods -A
alias kubectl="minikube kubectl --"
这篇关于ubuntu安装minikube的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!