其他分享
首页 > 其他分享> > 安装minikube

安装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中执行


修改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

  

 

 

 

标签:name,192.168,client,io,minikube,安装,21
来源: https://www.cnblogs.com/whmbky/p/15830752.html