diff --git a/roles/capi-cluster/workload/defaults/main.yml b/roles/capi-cluster/workload/defaults/main.yml index a314fd2..f0d26cc 100644 --- a/roles/capi-cluster/workload/defaults/main.yml +++ b/roles/capi-cluster/workload/defaults/main.yml @@ -19,10 +19,12 @@ openstack_ssh_key: kahus-key cluster_control_plane_count: 1 control_plane_flavor: balanced1.2cpu4ram +control_plane_disksize: 30 cluster_worker_count: 2 cluster_max_worker_count: 3 worker_flavour: balanced1.2cpu4ram +worker_disksize: 50 cluster_gpu_worker_count: 1 gpu_worker_flavour: gpu1.44cpu240ram.a40.1g.48gb diff --git a/roles/capi-cluster/workload/templates/cluster-template-oidc.yml.j2 b/roles/capi-cluster/workload/templates/cluster-template-oidc.yml.j2 index 4b97683..3f56633 100644 --- a/roles/capi-cluster/workload/templates/cluster-template-oidc.yml.j2 +++ b/roles/capi-cluster/workload/templates/cluster-template-oidc.yml.j2 @@ -149,6 +149,8 @@ spec: ports: - network: name: {{ cluster_network_name }} + rootVolume: + diskSize: {{ control_plane_disksize }} --- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7 kind: OpenStackMachineTemplate @@ -169,3 +171,5 @@ spec: ports: - network: name: {{ cluster_network_name }} + rootVolume: + diskSize: {{ worker_disksize }} diff --git a/roles/capi-cluster/workload/templates/cluster-template.yml.j2 b/roles/capi-cluster/workload/templates/cluster-template.yml.j2 index 3c9f0c6..889155f 100644 --- a/roles/capi-cluster/workload/templates/cluster-template.yml.j2 +++ b/roles/capi-cluster/workload/templates/cluster-template.yml.j2 @@ -143,6 +143,8 @@ spec: ports: - network: name: {{ cluster_network_name }} + rootVolume: + diskSize: {{ control_plane_disksize }} --- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha7 kind: OpenStackMachineTemplate @@ -163,3 +165,5 @@ spec: ports: - network: name: {{ cluster_network_name }} + rootVolume: + diskSize: {{ worker_disksize }} diff --git a/vars/ondemand-config.yml.example b/vars/ondemand-config.yml.example index c42fd24..b18923e 100644 --- a/vars/ondemand-config.yml.example +++ b/vars/ondemand-config.yml.example @@ -21,6 +21,9 @@ control_plane_flavor: balanced1.2cpu4ram # - 3x balanced1.32cpu64ram for up to 45 2cpu4ram sessions cluster_worker_count: 1 worker_flavour: balanced1.8cpu16ram +# worker disksize is the size of the drive on the worker node, whichh is used +# for pulling the docker images +worker_disksize: 60 # apps config # - `k8s_container` should be the container that will be used by the app, usually