Skip to content

Feature Request: Allow for local-ssd in GCP Actuator #737

@bdurrow

Description

@bdurrow

No response on previously created issues[1][2] so I'm giving it another try here.
[1] openshift/cluster-api-provider-gcp#124
[2] kubernetes-sigs/cluster-api-provider-gcp#316

Given that GCP local-ssds are very performant and with a 3 year commitment less expensive than pd-standard (I do not believe you can get commitment discounts on other storage) I would like to use them for my /var (and use a small pd-standard boot disk). The fact that they are ephemeral and I can not shutdown machines where they are present is not a concern for openshift nodes.

Unfortunately, the cluster-api-provider-gcp does not support them. When I create a machine config with a disk of type local-ssd I get the following error message:

error launching instance: googleapi: Error 400: Invalid value for field 'resource.disks[1].type': 'PERSISTENT'. Cannot create local SSD as persistent disk., invalid

Here is the spec/providerSpec/disk[1] definition I used:

            - autoDelete: true
              image: blank
              sizeGb: 375
              type: local-ssd

When I look at the allowed configuration values and the reconciler I don't see any way to specify the type as required by the google api.

Additionally, I could not find a way to keep the sourceImage and 'sizeGB' from being specified or set the interface.

I am happy to work on a PR but have to major obstacles:

Any help or advice is greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions