Difference between revisions of "Microk8s on LXD"

From UVOO Tech Wiki
Jump to navigation Jump to search
Line 8: Line 8:
  
 
```
 
```
# h2
+
 
 +
h2
 
```
 
```
 
lxc exec h1 /bin/bash
 
lxc exec h1 /bin/bash
Line 16: Line 17:
 
```
 
```
  
# h1
+
h1
 
```
 
```
 
snap install microk8s --classic --channel=1.19/stable
 
snap install microk8s --classic --channel=1.19/stable

Revision as of 16:09, 4 November 2020

lxc profile create microk8s
wget https://raw.githubusercontent.com/ubuntu/microk8s/master/tests/lxc/microk8s-zfs.profile -O microk8s.profile
cat microk8s.profile | lxc profile edit microk8s
lxc launch -p default -p microk8s ubuntu:20.04 h1
lxc launch -p default -p microk8s ubuntu:20.04 h2

h2

lxc exec h1 /bin/bash
snap install microk8s --classic --channel=1.19/stable
microk8s status
microk8s add-node

h1

snap install microk8s --classic --channel=1.19/stable
microk8s join 10.28.99.198:25000/<output from existing node microk8s add-node>

LXD issues with app armour

https://blog.sleeplessbeastie.eu/2020/07/20/how-to-deal-with-missing-apparmor-profiles-for-microk8s-on-lxd/

Run on all k8s nodes

aa-status
apparmor_parser --add /var/lib/snapd/apparmor/profiles/snap.microk8s.*
micro-k8s status
micro-k8s add-node

Refs