Giter VIP home page Giter VIP logo

k8s's Introduction

windows 10 pro

Hyper-V

Installation of Chocolatey is easy, just use the following command from PowerShell in administrative mode

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1'))

###################################################################################################

you are using Chocolatey (recommended), then you can install docker-for-windows with the following command

choco install docker-for-windows -pre

enable Hyper-V using the following command in PowerShell with administrative support. Note that enabling/disabling hyper-v hypervisor requires a restart of your local machine.

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

kubectl get nodes kubectl config view

kubectl config get-contexts kubectl config use-context minikube

################################################################################################### choco install minikube -y

Identify physical network adapters ( Ethernet and/or Wifi) using the command

Get-NetAdapter

create a new hyper-v switch

New-VMSwitch -Name “miniCluster” -AllowManagement $True -NetAdapterName “Ethernet”

create cluster

you can view the VM in Hyper-V manager

minikube start — vm-driver=hyperv — hyperv-virtual-switch="miniCluster"

minikube dashboard

kubectl run nginx --image=nginx

minikube docker-env minikube ip

connect to minikube from docker client

& minikube docker-env | Invoke-Expression

kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.10 --port=8080 kubectl expose deployment hello-minikube --type=NodePort kubectl get pod minikube service hello-minikube --url kubectl delete services hello-minikube kubectl delete deployment hello-minikube

k8s's People

Contributors

tiechuan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.