|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "stackit_ske_machine_image_versions Data Source - stackit" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + Returns a list of supported Kubernetes machine image versions for the cluster nodes. |
| 7 | +--- |
| 8 | + |
| 9 | +# stackit_ske_machine_image_versions (Data Source) |
| 10 | + |
| 11 | +Returns a list of supported Kubernetes machine image versions for the cluster nodes. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +data "stackit_ske_machine_image_versions" "example" {} |
| 17 | +
|
| 18 | +resource "stackit_ske_cluster" "example" { |
| 19 | + project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" |
| 20 | + name = "example" |
| 21 | + kubernetes_version = "x.x" |
| 22 | + node_pools = [ |
| 23 | + { |
| 24 | + name = "np-example" |
| 25 | + machine_type = "x.x" |
| 26 | + # TODO |
| 27 | + os_version = "x.x.x" |
| 28 | + os_name = "xxx" |
| 29 | + minimum = "2" |
| 30 | + maximum = "3" |
| 31 | + availability_zones = ["eu01-1"] |
| 32 | + volume_type = "storage_premium_perf6" |
| 33 | + volume_size = "48" |
| 34 | + } |
| 35 | + ] |
| 36 | +} |
| 37 | +``` |
| 38 | + |
| 39 | +<!-- schema generated by tfplugindocs --> |
| 40 | +## Schema |
| 41 | + |
| 42 | +### Optional |
| 43 | + |
| 44 | +- `region` (String) Region override. If omitted, the provider’s region will be used. |
| 45 | + |
| 46 | +### Read-Only |
| 47 | + |
| 48 | +- `machine_images` (Attributes List) Supported machine image types and software versions. (see [below for nested schema](#nestedatt--machine_images)) |
| 49 | + |
| 50 | +<a id="nestedatt--machine_images"></a> |
| 51 | +### Nested Schema for `machine_images` |
| 52 | + |
| 53 | +Read-Only: |
| 54 | + |
| 55 | +- `name` (String) Name of the OS image (e.g., `ubuntu`). |
| 56 | +- `versions` (Attributes List) Supported versions of the image. (see [below for nested schema](#nestedatt--machine_images--versions)) |
| 57 | + |
| 58 | +<a id="nestedatt--machine_images--versions"></a> |
| 59 | +### Nested Schema for `machine_images.versions` |
| 60 | + |
| 61 | +Read-Only: |
| 62 | + |
| 63 | +- `cri` (List of String) Container runtimes supported (e.g., `containerd`). |
| 64 | +- `expiration_date` (String) Expiration date of the version in RFC3339 format. |
| 65 | +- `state` (String) State of the image version (e.g., `supported`, `preview`, `deprecated`). |
| 66 | +- `version` (String) Machine image version string. |
0 commit comments