This charm is a demonstration for Operator Day 2023.
# Install/Setup MicroK8s
sudo snap install microk8s --channel=1.28-strict/stable
sudo adduser $(whoami) snap_microk8s
newgrp snap_microk8s
microk8s status --wait-ready
sudo microk8s enable hostpath-storage dns
sudo snap alias microk8s.kubectl kubectl
# Install Charmcraft
lxd init --auto
sudo snap install charmcraft --classic
# Install Juju
sudo snap install juju
mkdir -p ~/.local/share/juju
# Bootstrap MicroK8s
juju bootstrap microk8s micro
juju add-model development
juju model-config logging-config='<root>=INFO; unit=DEBUG'
# Install jhack
sudo apt update
sudo apt install python3-pip python3-venv unzip -y
python3 -m pip install --user pipx
python3 -m pipx ensurepath
# Close & re-open terminal
pipx install git+https://github.com/PietroPasotti/jhack.git
# Clone this repo
git clone https://github.com/operatorinc/zinc-k8s-operator.git
cd zinc-k8s-operator
git checkout 0-init
As you watch the demonstration, follow along in your own environment. Git tags are provided for each step in the demo: