khuedoan-homelab/infra/README.md
Khue Doan 26d7fa3e2f Use container for master nodes
For better resource usage, still use VM on worker nodes due to ISCSI
bug in the Linux kernel
2021-05-03 00:28:16 +07:00

28 lines
1.8 KiB
Markdown

# Private cloud infrastructure
Current state:
`lxc list`
```
+----------+---------+-----------------------+------+-----------------+-----------+----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | LOCATION |
+----------+---------+-----------------------+------+-----------------+-----------+----------+
| tfstate | RUNNING | 192.168.1.25 (eth0) | | CONTAINER | 0 | metal0 |
+----------+---------+-----------------------+------+-----------------+-----------+----------+
| master-0 | RUNNING | 192.168.1.49 (eth0) | | CONTAINER | 0 | metal3 |
+----------+---------+-----------------------+------+-----------------+-----------+----------+
| master-1 | RUNNING | 192.168.1.48 (eth0) | | CONTAINER | 0 | metal1 |
+----------+---------+-----------------------+------+-----------------+-----------+----------+
| master-2 | RUNNING | 192.168.1.50 (eth0) | | CONTAINER | 0 | metal2 |
+----------+---------+-----------------------+------+-----------------+-----------+----------+
| worker-0 | RUNNING | 192.168.1.52 (enp5s0) | | VIRTUAL-MACHINE | 0 | metal1 |
+----------+---------+-----------------------+------+-----------------+-----------+----------+
| worker-1 | RUNNING | 192.168.1.51 (enp5s0) | | VIRTUAL-MACHINE | 0 | metal0 |
+----------+---------+-----------------------+------+-----------------+-----------+----------+
| worker-2 | RUNNING | 192.168.1.53 (enp5s0) | | VIRTUAL-MACHINE | 0 | metal3 |
+----------+---------+-----------------------+------+-----------------+-----------+----------+
```
Currently, worker nodes are virtual machines instead of containers because of an ISCSI bug in the Linux kernel.