diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-05-07 22:45:49 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-05-07 23:53:19 +0200 |
commit | c09b07327b688a6a47f523a15c1a5c29d4f476d0 (patch) | |
tree | 6c243d60a3fb142c582761f1baab1c00f7081342 /inventory/host_vars/ch-k8s-ctrl.yml | |
parent | cosmetic changes (diff) |
k8s: rename masters to control-plane nodes
Diffstat (limited to 'inventory/host_vars/ch-k8s-ctrl.yml')
-rw-r--r-- | inventory/host_vars/ch-k8s-ctrl.yml | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-k8s-ctrl.yml b/inventory/host_vars/ch-k8s-ctrl.yml new file mode 100644 index 00000000..63723000 --- /dev/null +++ b/inventory/host_vars/ch-k8s-ctrl.yml @@ -0,0 +1,72 @@ +--- +install_jumphost: ch-jump + +install: + vm: + memory: 4G + numcpus: 4 + autostart: True + disks: + primary: /dev/sda + scsi: + sda: + type: zfs + name: root + size: 20g + properties: + 'syncoid:sync': 'false' + system_lvm: + volumes: + - name: root + size: 3G + filesystem: ext4 + mountpoint: / + - name: var + size: 1280M + filesystem: ext4 + mountpoint: /var + - name: var+log + size: 768M + filesystem: ext4 + mountpoint: /var/log + mount_options: + - noatime + - nodev + - noexec + interfaces: + - bridge: br-svc + name: svc0 + +network: + nameservers: "{{ network_zones.svc.dns }}" + domain: "{{ host_domain }}" + systemd_link: + interfaces: "{{ install.interfaces }}" + primary: &_network_primary_ + name: svc0 + address: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" + gateway: "{{ network_zones.svc.gateway }}" + static_routes: + - destination: "{{ network_zones.lan.prefix }}" + gateway: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ipaddr('address') }}" + interfaces: + - *_network_primary_ + + +spreadspace_apt_repo_components: + - container + + +containerd_storage: + type: lvm + vg: "{{ host_name }}" + lv: containerd + size: 7G + fs: ext4 + +kubelet_storage: + type: lvm + vg: "{{ host_name }}" + lv: kubelet + size: 5G + fs: ext4 |