- K3S is a certified kubernetes distro for edge and other scenarios
- Rio simplifies application development on kubernetes
- WSL2 run linux on windows, nicer and more integrated than a traditional vm on hyper-v
- Windows 10 with WSL2 set as default
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: homeassistant | |
| name: homeassistant | |
| namespace: homeassistant | |
| spec: | |
| replicas: 1 | |
| selector: |
| # Update the list of packages | |
| sudo apt-get update | |
| # Install pre-requisite packages. | |
| sudo apt-get install -y wget apt-transport-https software-properties-common | |
| # Download the Microsoft repository GPG keys | |
| wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb" | |
| # Register the Microsoft repository GPG keys | |
| sudo dpkg -i packages-microsoft-prod.deb | |
| # Update the list of packages after we added packages.microsoft.com | |
| sudo apt-get update |
| ################################### | |
| # Prerequisites | |
| # Update package lists | |
| sudo apt-get update | |
| # Install libunwind8 and libssl1.0 | |
| # Regex is used to ensure that we do not install libssl1.0-dev, as it is a variant that is not required | |
| sudo apt-get install '^libssl1.0.[0-9]$' libunwind8 -y |
| # Run this script: | |
| # $gistuser = "powareverb"; $gistId="9ef1eeb58b60e4338b13c9d9d19d460a"; . { iwr -useb https://gist.githubusercontent.com/$gistuser/$gistid/raw/bootstrap.ps1 } | iex; Invoke-BootstrapMachine -machinename $(hostname); | |
| function Invoke-GetChocolatey() { | |
| # Choco boot | |
| Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
| } | |
| function Invoke-GetBoxStarter() { | |
| # Boxstarter |
| # See comment lines prefixed with ADDED | |
| # It might be necessary to delete the existing DockerNAT switch in hyper-v manager | |
| <# | |
| .SYNOPSIS | |
| Manages a MobyLinux VM to run Linux Docker on Hyper-V | |
| .DESCRIPTION | |
| Creates/Destroys/Starts/Stops A MobyLinux VM to run Docker on Hyper-V | |
| .PARAMETER VmName |
| <# | |
| .SYNOPSIS | |
| You can use this script to easly transform any XML file using XDT. | |
| To use this script you can just save it locally and execute it. The script | |
| will download it's dependencies automatically. | |
| #> | |
| [cmdletbinding()] | |
| param( | |
| [Parameter( | |
| Mandatory=$true, |
| # Example: | |
| # $data= @" | |
| # DRIVER VOLUME NAME | |
| # local 004e9c5f2ecf96345297965d3f98e24f7a6a69f5c848096e81f3d5ba4cb60f1e | |
| # local 081211bd5d09c23f8ed60fe63386291a0cf452261b8be86fc154b431280c0c11 | |
| # local 112be82400a10456da2e721a07389f21b4e88744f64d9a1bd8ff2379f54a0d28 | |
| # "@ | |
| # $obj=Convert-TextColumnsToObject $data | |
| # $obj | ?{ $_."VOLUME NAME" -match "112be" } | |
| function Convert-TextColumnsToObject($dataVar) |
| export EDITOR="nano -w" | |
| export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
| export CLICOLOR=1 | |
| export LSCOLORS=ExFxBxDxCxegedabagacad | |
| alias ls='ls -lah --color' | |
| alias lx='ls -lXB' # Sort by extension. | |
| alias lk='ls -lSr' # Sort by size, biggest last. | |
| alias lt='ls -ltr' # Sort by date, most recent last. | |
| alias lc='ls -ltcr' # Sort by/show change time,most recent last. |