- 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: |
| # 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, |
| 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. |
| #Author: Tomasz Subik http://tsubik.com | |
| #Date: 2014-05-27 | |
| #License: MIT | |
| Param( | |
| [parameter(Mandatory=$false)] | |
| [alias("n")] | |
| $name = [System.Guid]::NewGuid().ToString(), | |
| [parameter(Mandatory=$false)] | |
| [alias("p")] |
| [Unit] | |
| Description=Turn on swap | |
| [Service] | |
| Type=oneshot | |
| Environment="SWAPFILE=/4GiB.swap" | |
| RemainAfterExit=true | |
| ExecStartPre=/usr/bin/touch ${SWAPFILE} | |
| ExecStartPre=/usr/bin/chattr -C ${SWAPFILE} | |
| ExecStartPre=/usr/bin/fallocate -l 4096m ${SWAPFILE} |
| sudo su - | |
| mkdir -p /opt/bin | |
| curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose | |
| chmod +x /opt/bin/docker-compose |
| public class BootstrapService : ServiceControl | |
| { | |
| private readonly HostSettings _settings; | |
| private Container _container; | |
| private CaseMonitor _monitor; | |
| public BootstrapService(HostSettings settings) | |
| { | |
| _settings = settings; | |
| } |