Xshell 5 (Build 1199)
Copyright (c) 2002-2017 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.
[c:\~]Connecting to 192.168.182.88:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last login: Tue May 12 13:30:31 2020 from 192.168.182.1
[root@minikube ~]# ls
anaconda-ks.cfg  kubectl  minikube-linux-amd64
[root@minikube ~]# chmod +x ./kubectl
[root@minikube ~]# mv ./kubectl /usr/local/bin/kubectl
[root@minikube ~]# mv minikube-linux-amd64  minikube
[root@minikube ~]# chmod +x minikube
[root@minikube ~]# mv minikube /usr/local/bin/minikube
[root@minikube docker]# yum install -y yum-utils device-mapper-persistent-data lvm2
[root@minikube docker]# yum-config-manager --add-repo    https://download.docker.com/linux/centos/docker-ce.repo
[root@minikube docker]# yum install docker-ce docker-ce-cli containerd.io
[root@minikube ~]# sysctl -w net.bridge.bridge-nf-call-iptables=1
net.bridge.bridge-nf-call-iptables = 1
[root@minikube ~]# echo "net.bridge.bridge-f-call-iptables=1">/etc/sysctl.d/k8s.conf
[root@minikube ~]# swapoff -a && sed -i '/ swap / s/^/#/'  /etc/fstab
[root@minikube ~]# minikube start --driver=none --registry-mirror=https://registry.cn-hangzhou.aliyuncs.com
[root@minikube ~]# sudo mv /root/.kube /root/.minikubeHOME
[root@minikube ~]# sudo chown -R USERHOME/.kube $HOME/.minikube
[root@minikube ~]#  kubectl get pod --all-namespaces
NAMESPACE     NAME                                                      READY   STATUS    RESTARTS   AGE
kube-system   coredns-546565776c-gb9xj                                  1/1     Running   0          8m27s
kube-system   coredns-546565776c-lpplg                                  1/1     Running   0          8m27s
kube-system   etcd-control-plane.minikube.internal                      1/1     Running   0          8m34s
kube-system   kube-apiserver-control-plane.minikube.internal            1/1     Running   0          8m34s
kube-system   kube-controller-manager-control-plane.minikube.internal   1/1     Running   0          8m34s
kube-system   kube-proxy-bc696                                          1/1     Running   0          8m27s
kube-system   kube-scheduler-control-plane.minikube.internal            1/1     Running   0          8m34s
kube-system   storage-provisioner                                       1/1     Running   0          8m33s
[root@minikube ~]# 

1 对 “使用VM装minikube安装操作记录”的想法;

发表评论

电子邮件地址不会被公开。