windows use virtualbox, build minikube environment

win7

virtualbox version: 6.0.12 r133076 (Qt5.6.2)

centos7: 3.10.0-957.27.2.el7.x86_64

 

1. virtualbox centos create a virtual machine: 2-core, 4G, 20G disk

Edit / etc / sysconfig / network-scripts / ifcfg-enp0s3, yes to the ONBOOT

Modify / etc / ssh / sshd_config file, allowing the root user login. That PermitRootLogin yes

Virtual machine network, select the "NAT network", configure port forwarding rules to allow ssh client on a physical machine connected on centos.

 

2. Install docker

yum install docker

Edit / etc / sysconfig / docker document, modify OPTIONS = '- selinux-enabled = false --log-driver = journald --signature-verification = false'

/Usr/lib/systemd/system/docker.service file edit, modify ExecStart = / usr / bin / dockerd --exec-opt native.cgroupdriver = cgroupfs

systemctl restart docker

 

3. Install kubectl

curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

 

4. Install Ali cloud version of minikube

curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v1.3.1/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

 

5. Start minikube

My machine must be specified k8s version, otherwise it will error

minikube start --registry-mirror=https://registry.docker-cn.com --vm-driver=none --kubernetes-version=v1.13.1

 

6. Then the reference  https://nacos.io/zh-cn/docs/use-nacos-with-kubernetes.html  deployment nacos

Because of limited resources, the cpu and memory resource mobilization nacos-quick-start.yaml is small.

 

 

 

Guess you like

Origin www.cnblogs.com/allenwas3/p/11528669.html