安装minikube

在windows10使用hyper-v安装minikube

  1. 安装docker

  2. 安装minikube

https://minikube.sigs.k8s.io/docs/start/

远程访问

https://cloud-atlas.readthedocs.io/zh_CN/latest/kubernetes/startup_prepare/remote_minikube.html

ssh -L 18443:192.168.49.2:8443 -N -f 192.168.0.100
192.168.49.2是minikube容器的IP,
192.168.0.100虚拟机的ip

在windows10 powershell中执行
安装minikube

修改C:\Users\whm\.kube\config后,如下:
apiVersion: v1
clusters:
- cluster:
    certificate-authority: C:\work\kubectl\minikube\ca.crt
    extensions:
    - extension:
        last-update: Fri, 21 Jan 2022 11:26:21 CST
        provider: minikube.sigs.k8s.io
        version: v1.25.1
      name: cluster_info
    server: https://127.0.0.1:18443
  name: minikube
contexts:
- context:
    cluster: minikube
    extensions:
    - extension:
        last-update: Fri, 21 Jan 2022 11:26:21 CST
        provider: minikube.sigs.k8s.io
        version: v1.25.1
      name: context_info
    namespace: default
    user: minikube
  name: minikube
current-context: minikube
kind: Config
preferences: {}
users:
- name: minikube
  user:
    client-certificate: C:\work\kubectl\minikube\profiles\minikube\client.crt
    client-key: C:\work\kubectl\minikube\profiles\minikube\client.key

  

 

 

 

上一篇:通过paramiko交互式执行bash 命令


下一篇:RabbitMQ生产者消费者模型(二)