Skip to content

Commit

Permalink
configuring disksize of k8s nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdjscott committed May 1, 2024
1 parent 23a1b78 commit 66ab0cd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/capi-cluster/workload/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -169,3 +171,5 @@ spec:
ports:
- network:
name: {{ cluster_network_name }}
rootVolume:
diskSize: {{ worker_disksize }}
4 changes: 4 additions & 0 deletions roles/capi-cluster/workload/templates/cluster-template.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -163,3 +165,5 @@ spec:
ports:
- network:
name: {{ cluster_network_name }}
rootVolume:
diskSize: {{ worker_disksize }}
3 changes: 3 additions & 0 deletions vars/ondemand-config.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66ab0cd

Please sign in to comment.