4

Kubernetes, . Kubernetes .

Minikube Windows Hyper-V Server 2019, .


Minikube?

Minikube Kubernetes. MacOs, Lunix Windows . , Kubernetes.

Minikube:

  • , .. : Linux, macOS Windows;
  • , , ;
  • Docker;
  • VmWare, VirtualBox, Docker, KVM, Hyper-V .;
  • Kubernetes;
  • Docker API ;
  • (addons);
  • Minikube Dashboard Kubernetes

Minikube

Minikube Hyper-v :

  1. Hyper-v server
  2. Minikube
  3. Minikube
  4. Kubernetes
  5. ,

1. :

Minikube :

  • 2 GB
  • 2 CPU
  • 20 GB
  • Docker container , , VirtualBox Hyper-V

2. Hyper-v server

- Hyper-v , Hyper-v: 64- (SLAT), . BIOS/UEFI ( Intel - Intel VT, AMD - AMD-V). , .

Ext Network Hyper-v

:

Get-NetAdapter

.

PowerShell

New-VMSwitch -name ExternalSwitch -NetAdapterName "Ethernet 2" -AllowManagementOS $true
New-VMSwitch

Minikube :

! StartHost failed, but will try again: creating host: create: precreate: no External vswitch nor Default Switch found. A valid vswitch must be available for this command to run.

minikube delete : https://docs.docker.com/machine/drivers/hyper-v/


3.

Windows Server 2019, Chocolatey, - Windows Package Manager Windows 10.

PowerShell :

iwr https://chocolatey.org/install.ps1 -outfile C:\install.ps1
c:\install.ps1 
install.ps1 chocoinstall chocoinstall 2

4. Minikube

Chocolatey :

choco install minikube
choco install minikube

5.

minikube start ,

minikube start

, :

runas /noprofile /user: powershell 

Hyper-V :

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

:

Get-WindowsFeature Name hyper-v
Get-WindowsFeature Name hyper-v

, Minikube c Hyper-v,

choco install minikube --version 1.6.2 --allow-downgrade

minikube delete

minikube start
minikube start

6.

, VM , PowerShell

Get-vm
Get-vm

, kubectl get po A

, :

Add-WindowsCapability -Online -Name ServerCore.AppCompatibility~~~~0.0.1.0

, minikube dashboard

minikube dashboard

Firefox, .

minikube dashboard

50% Merion Academy