• 安装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
    

      

     
  • 相关阅读:
    bootstrap 导航学习
    算法学习1-插入排序
    管道输入输出流
    1+2*2+3*3+4*4+...+n*n计算
    maven安装for eclipse kepler
    javascript学习7-细节总结
    Git Fetch failed解决办法
    前端学习笔记
    TIOBE 编程语言排行榜
    用VS2012创建和使用WebService
  • 原文地址:https://www.cnblogs.com/whmbky/p/15830752.html
Copyright © 2020-2023  润新知