Kubernetes: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 9: Line 9:
wsl -l -v
wsl -l -v
wsl --list --verbose
wsl --list --verbose
Restart-Service LxssManager
</source>
<source lang="powershell">
choco install multipass -y
multipass launch -n node1
multipass list
multipass set local.driver=hyperv
multipass set local.driver=virtualbox


Get-NetConnectionProfile
Get-NetConnectionProfile
Restart-Service LxssManager
Set-NetConnectionProfile -InterfaceIndex 13 -NetworkCategory Private
Set-NetConnectionProfile -InterfaceIndex 13 -NetworkCategory Private
multipass list
cat C:\Windows\System32\drivers\etc\hosts.ics
multipass delete --purge --all
multipass exec node1 -- bash -c "curl -sfL https://get.k3s.io | sh -"
multipass exec node1 -- sudo kubectl get nodes
</source>
</source>



Revision as of 00:07, 13 June 2021

Preferred Kubernetes environments are Minikube, Kind and K3s. It's depends on your use case.

  1. Minikube: Getting started with Fully Kubernetes environment
  2. Kind: Kubernetes environment for clusters and more than a single node
  3. K3s: Kubernetes environment for a low spec machine that uses fewer resources

Knowledge

choco -v
wsl -l -v
wsl --list --verbose
Restart-Service LxssManager
choco install multipass -y
multipass launch -n node1
multipass list

multipass set local.driver=hyperv
multipass set local.driver=virtualbox

Get-NetConnectionProfile
Set-NetConnectionProfile -InterfaceIndex 13 -NetworkCategory Private

multipass list
cat C:\Windows\System32\drivers\etc\hosts.ics

multipass delete --purge --all
multipass exec node1 -- bash -c "curl -sfL https://get.k3s.io | sh -"
multipass exec node1 -- sudo kubectl get nodes

References