root@PowerEdge-R740:~# wget https://openebs.github.io/charts/zfs-operator.yaml
--2024-02-23 23:31:15-- https://openebs.github.io/charts/zfs-operator.yaml
Resolving openebs.github.io (openebs.github.io)... 185.199.108.153, 185.199.109.153, 185.199.110.153, ...
Connecting to openebs.github.io (openebs.github.io)|185.199.108.153|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 130277 (127K) [text/yaml]
Saving to: 'zfs-operator.yaml'
zfs-operator.yaml 100%[===============================================>] 127,22K --.-KB/s in 0,04s
2024-02-23 23:31:15 (3,30 MB/s) - 'zfs-operator.yaml' saved [130277/130277]
root@PowerEdge-R740:~# cat zfs-operator.yaml | sed 's#/var/lib/kubelet/#/var/snap/microk8s/common/var/lib/kubelet/#g' > zfs-operator-microk8s.yaml
root@PowerEdge-R740:~# kubectl apply -f zfs-operator-microk8s.yaml
Command 'kubectl' not found, but can be installed with:
snap install kubectl
root@PowerEdge-R740:~# mikrok8s.kubectl apply -f zfs-operator-microk8s.yaml
Command 'mikrok8s.kubectl' not found, did you mean:
command 'microk8s.kubectl' from snap microk8s (v1.29.0)
See 'snap info <snapname>' for additional versions.
root@PowerEdge-R740:~# microk8s.kubectl apply -f zfs-operator-microk8s.yaml
namespace/openebs unchanged
Warning: resource customresourcedefinitions/zfsvolumes.zfs.openebs.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
customresourcedefinition.apiextensions.k8s.io/zfsvolumes.zfs.openebs.io configured
Warning: resource customresourcedefinitions/zfssnapshots.zfs.openebs.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
customresourcedefinition.apiextensions.k8s.io/zfssnapshots.zfs.openebs.io configured
Warning: resource customresourcedefinitions/zfsbackups.zfs.openebs.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
customresourcedefinition.apiextensions.k8s.io/zfsbackups.zfs.openebs.io configured
Warning: resource customresourcedefinitions/zfsrestores.zfs.openebs.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
customresourcedefinition.apiextensions.k8s.io/zfsrestores.zfs.openebs.io configured
Warning: resource customresourcedefinitions/zfsnodes.zfs.openebs.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
customresourcedefinition.apiextensions.k8s.io/zfsnodes.zfs.openebs.io configured
Warning: resource csidrivers/zfs.csi.openebs.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
csidriver.storage.k8s.io/zfs.csi.openebs.io configured
Warning: resource customresourcedefinitions/volumesnapshotclasses.snapshot.storage.k8s.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
customresourcedefinition.apiextensions.k8s.io/volumesnapshotclasses.snapshot.storage.k8s.io configured
Warning: resource customresourcedefinitions/volumesnapshotcontents.snapshot.storage.k8s.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
customresourcedefinition.apiextensions.k8s.io/volumesnapshotcontents.snapshot.storage.k8s.io configured
Warning: resource customresourcedefinitions/volumesnapshots.snapshot.storage.k8s.io is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
customresourcedefinition.apiextensions.k8s.io/volumesnapshots.snapshot.storage.k8s.io configured
serviceaccount/openebs-zfs-controller-sa unchanged
Warning: resource clusterroles/openebs-zfs-provisioner-role is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
clusterrole.rbac.authorization.k8s.io/openebs-zfs-provisioner-role configured
Warning: resource clusterrolebindings/openebs-zfs-provisioner-binding is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
clusterrolebinding.rbac.authorization.k8s.io/openebs-zfs-provisioner-binding configured
priorityclass.scheduling.k8s.io/openebs-zfs-csi-controller-critical created
statefulset.apps/openebs-zfs-controller unchanged
Warning: resource clusterroles/openebs-zfs-snapshotter-role is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
clusterrole.rbac.authorization.k8s.io/openebs-zfs-snapshotter-role configured
Warning: resource clusterrolebindings/openebs-zfs-snapshotter-binding is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
clusterrolebinding.rbac.authorization.k8s.io/openebs-zfs-snapshotter-binding configured
serviceaccount/openebs-zfs-node-sa unchanged
Warning: resource clusterroles/openebs-zfs-driver-registrar-role is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
clusterrole.rbac.authorization.k8s.io/openebs-zfs-driver-registrar-role configured
Warning: resource clusterrolebindings/openebs-zfs-driver-registrar-binding is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
clusterrolebinding.rbac.authorization.k8s.io/openebs-zfs-driver-registrar-binding configured
configmap/openebs-zfspv-bin unchanged
priorityclass.scheduling.k8s.io/openebs-zfs-csi-node-critical created
daemonset.apps/openebs-zfs-node configured
root@PowerEdge-R740:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
bpool 1.28G 476M 96K /boot
bpool/BOOT 1.28G 476M 96K none
bpool/BOOT/ubuntu_t2d1xj 1.28G 476M 305M /boot
rpool 137G 7.01T 96K /
rpool/ROOT 111G 7.01T 96K none
rpool/ROOT/ubuntu_t2d1xj 111G 7.01T 33.7G /
rpool/ROOT/ubuntu_t2d1xj/srv 96K 7.01T 96K /srv
rpool/ROOT/ubuntu_t2d1xj/usr 77.6M 7.01T 96K /usr
rpool/ROOT/ubuntu_t2d1xj/usr/local 77.5M 7.01T 23.9M /usr/local
rpool/ROOT/ubuntu_t2d1xj/var 72.0G 7.01T 96K /var
rpool/ROOT/ubuntu_t2d1xj/var/games 96K 7.01T 96K /var/games
rpool/ROOT/ubuntu_t2d1xj/var/lib 6.27G 7.01T 3.53G /var/lib
rpool/ROOT/ubuntu_t2d1xj/var/lib/AccountsService 380K 7.01T 100K /var/lib/AccountsService
rpool/ROOT/ubuntu_t2d1xj/var/lib/NetworkManager 2.27M 7.01T 176K /var/lib/NetworkManager
rpool/ROOT/ubuntu_t2d1xj/var/lib/apt 458M 7.01T 131M /var/lib/apt
rpool/ROOT/ubuntu_t2d1xj/var/lib/dpkg 168M 7.01T 51.0M /var/lib/dpkg
rpool/ROOT/ubuntu_t2d1xj/var/log 833M 7.01T 614M /var/log
rpool/ROOT/ubuntu_t2d1xj/var/mail 96K 7.01T 96K /var/mail
rpool/ROOT/ubuntu_t2d1xj/var/snap 64.9G 7.01T 55.8G /var/snap
rpool/ROOT/ubuntu_t2d1xj/var/spool 1.12M 7.01T 112K /var/spool
rpool/ROOT/ubuntu_t2d1xj/var/www 736K 7.01T 120K /var/www
rpool/USERDATA 32.2M 7.01T 96K /
rpool/USERDATA/intelegen_fq667k 23.9M 7.01T 13.5M /home/intelegen
rpool/USERDATA/root_fq667k 8.25M 7.01T 5.05M /root
rpool/kubernetes-data 25.8G 7.01T 112K /kubernetes-data
rpool/kubernetes-data/pvc-00f2176d-2611-4e55-9c79-2099656977c1 4.13G 7.01T 56K -
rpool/kubernetes-data/pvc-3abe5d65-52ec-4bee-b774-daefd5903204 10.3G 7.02T 1.26M -
rpool/kubernetes-data/pvc-b026f4dc-a5d7-496e-a1b3-af4acc2e8b74 1.03G 7.01T 56K -
rpool/kubernetes-data/pvc-e6a07841-8c42-4733-90e9-067197b7466e 10.3G 7.02T 56K -
rpool/var 41.6M 7.01T 96K /var
rpool/var/lib 41.5M 7.01T 96K /var/lib
rpool/var/lib/docker 41.4M 7.01T 41.4M /var/lib/docker
root@PowerEdge-R740:~#