kubernetes / kops

Kubernetes Operations (kOps) - Production Grade k8s Installation, Upgrades and Management
https://kops.sigs.k8s.io/
Apache License 2.0
15.66k stars 4.61k forks source link

[OpenStack] Allow configuration of bastion's machineType without template #16634

Open benedikt-haug opened 1 week ago

benedikt-haug commented 1 week ago

/kind feature

1. Describe IN DETAIL the feature/behavior/change you would like to see. Add a --bastion-size argument, similar to control-plane-size to select the OpenStack flavor of the bastion node ("the VM's sizing").

Reason: On my current OpenStack it will per default select the default flavor which is a 1CPU 1GB RAM VM without disk. That will in turn prevent bastion node creation with the following error:

error message: {"forbidden": {"code": 403, "message": "Only volume-backed servers are allowed for flavors with zero disk."}}

Obviously I can circumvent this by using the templating function, but it feels wrong that this doesn't work out-of-the-box like in the example: https://kops.sigs.k8s.io/getting_started/openstack/#creating-a-cluster.

2. Feel free to provide a design supporting your feature request.