Minikube Systemd

From Chorke Wiki
Revision as of 00:00, 27 June 2024 by Shahed (talk | contribs) (Created page with "<syntaxhighlight lang="bash"> if [ -x "$(command -v curl)" ];then \ sudo apt -qq update;\ export MINIKUBE_CPU_USE=8;\ export MINIKUBE_RAM_USE=16384;\ bash <(curl -s 'https://cdn.chorke.org/exec/cli/bash/install/minikube/1.0.0-ubuntu-22.04.sh.txt');\ else printf 'curl \033[0;31mnot found! \033[0m:(\n';fi </syntaxhighlight> ==Prepare Debug== <syntaxhighlight lang="bash"> lxc launch ubuntu:22.04 minikube --vm cat << EXE | lxc exec minikube -- bash LXC_USER_NAME="${USER}" i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
if [ -x "$(command -v curl)" ];then \
sudo apt -qq update;\
export MINIKUBE_CPU_USE=8;\
export MINIKUBE_RAM_USE=16384;\
bash <(curl -s 'https://cdn.chorke.org/exec/cli/bash/install/minikube/1.0.0-ubuntu-22.04.sh.txt');\
else printf 'curl \033[0;31mnot found! \033[0m:(\n';fi

Prepare Debug

lxc launch ubuntu:22.04 minikube --vm
cat << EXE | lxc exec minikube -- bash
LXC_USER_NAME="${USER}"
if ! sudo id -u \${LXC_USER_NAME} &>/dev/null;then
    useradd --create-home --shell /bin/bash \${LXC_USER_NAME}
    usermod -aG sudo "\${LXC_USER_NAME}"
    passwd --delete "\${LXC_USER_NAME}"
fi
EXE

lxc exec minikube -- sudo -i -u ${USER} bash

Playground

lxc launch ubuntu:22.04 minikube --vm
lxc exec minikube -- bash
lxc snapshot minikube ubuntu:docker:22.04
lxc restore  minikube ubuntu:docker:22.04
lxc delete   minikube/ubuntu:docker:22.04
lxc info     minikube

References