-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GCLOUD2-17301 - resource_gcore_inference_deployment added (#180)
- Loading branch information
Showing
23 changed files
with
1,715 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "gcore_inference_flavor Data Source - terraform-provider-gcore" | ||
subcategory: "" | ||
description: |- | ||
Represent Inference flavor. | ||
--- | ||
|
||
# gcore_inference_flavor (Data Source) | ||
|
||
Represent Inference flavor. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) | ||
|
||
### Optional | ||
|
||
- `project_id` (Number) | ||
- `project_name` (String) | ||
|
||
### Read-Only | ||
|
||
- `cpu` (Number) | ||
- `gpu` (Number) | ||
- `gpu_compute_capability` (String) | ||
- `gpu_memory` (Number) | ||
- `gpu_model` (String) | ||
- `id` (String) The ID of this resource. | ||
- `is_gpu_shared` (Boolean) | ||
- `memory` (Number) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,224 @@ | ||
--- | ||
page_title: "gcore_inference_deployment Resource - terraform-provider-gcore" | ||
subcategory: "" | ||
description: |- | ||
Represent inference deployment | ||
--- | ||
|
||
# gcore_inference_deployment (Resource) | ||
|
||
Represent inference deployment | ||
|
||
## Example Usage | ||
|
||
##### Prerequisite | ||
|
||
```terraform | ||
provider gcore { | ||
permanent_api_token = "251$d3361.............1b35f26d8" | ||
} | ||
data "gcore_project" "project" { | ||
name = "Default" | ||
} | ||
data "gcore_region" "region" { | ||
name = "Luxembourg-2" | ||
} | ||
``` | ||
|
||
### Basic example | ||
|
||
#### Creating inference deployment | ||
|
||
```terraform | ||
resource "gcore_inference_deployment" "inf" { | ||
project_id = data.gcore_project.project.id | ||
name = "my-inference-deployment" | ||
image = "nginx:latest" | ||
listening_port = 80 | ||
flavor_name = "inference-1vcpu-1gib" | ||
timeout = 60 | ||
containers { | ||
region_id = data.gcore_region.region.id | ||
cooldown_period = 60 | ||
scale_min = 2 | ||
scale_max = 2 | ||
triggers_cpu_threshold = 80 | ||
} | ||
liveness_probe { | ||
enabled = true | ||
failure_threshold = 3 | ||
initial_delay_seconds = 10 | ||
period_seconds = 10 | ||
timeout_seconds = 1 | ||
success_threshold = 1 | ||
http_get_port = 80 | ||
http_get_headers = { | ||
User-Agent = "my user agent" | ||
} | ||
http_get_host = "localhost" | ||
http_get_path = "/" | ||
http_get_schema = "HTTPS" | ||
} | ||
readiness_probe { | ||
enabled = false | ||
} | ||
startup_probe { | ||
enabled = false | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `containers` (Block List, Min: 1) (see [below for nested schema](#nestedblock--containers)) | ||
- `flavor_name` (String) | ||
- `image` (String) | ||
- `listening_port` (Number) | ||
- `name` (String) | ||
- `timeout` (Number) | ||
|
||
### Optional | ||
|
||
- `auth_enabled` (Boolean) | ||
- `command` (String) | ||
- `credentials_name` (String) | ||
- `description` (String) | ||
- `envs` (Map of String) | ||
- `liveness_probe` (Block List, Max: 1) (see [below for nested schema](#nestedblock--liveness_probe)) | ||
- `logging` (Block List, Max: 1) (see [below for nested schema](#nestedblock--logging)) | ||
- `project_id` (Number) | ||
- `project_name` (String) | ||
- `readiness_probe` (Block List, Max: 1) (see [below for nested schema](#nestedblock--readiness_probe)) | ||
- `startup_probe` (Block List, Max: 1) (see [below for nested schema](#nestedblock--startup_probe)) | ||
|
||
### Read-Only | ||
|
||
- `address` (String) | ||
- `created_at` (String) Datetime when the inference deployment was created. The format is 2025-12-28T19:14:44.180394 | ||
- `id` (String) The ID of this resource. | ||
- `status` (String) | ||
|
||
<a id="nestedblock--containers"></a> | ||
### Nested Schema for `containers` | ||
|
||
Required: | ||
|
||
- `cooldown_period` (Number) | ||
- `region_id` (Number) | ||
- `scale_max` (Number) | ||
- `scale_min` (Number) | ||
|
||
Optional: | ||
|
||
- `triggers_cpu_threshold` (Number) | ||
- `triggers_gpu_memory_threshold` (Number) | ||
- `triggers_gpu_utilization_threshold` (Number) | ||
- `triggers_http_rate` (Number) | ||
- `triggers_http_window` (Number) | ||
- `triggers_memory_threshold` (Number) | ||
|
||
Read-Only: | ||
|
||
- `ready_containers` (Number) | ||
- `total_containers` (Number) | ||
|
||
|
||
<a id="nestedblock--liveness_probe"></a> | ||
### Nested Schema for `liveness_probe` | ||
|
||
Required: | ||
|
||
- `enabled` (Boolean) | ||
|
||
Optional: | ||
|
||
- `exec_command` (String) | ||
- `failure_threshold` (Number) | ||
- `http_get_headers` (Map of String) | ||
- `http_get_host` (String) | ||
- `http_get_path` (String) | ||
- `http_get_port` (Number) | ||
- `http_get_schema` (String) | ||
- `initial_delay_seconds` (Number) | ||
- `period_seconds` (Number) | ||
- `success_threshold` (Number) | ||
- `tcp_socket_port` (Number) | ||
- `timeout_seconds` (Number) | ||
|
||
|
||
<a id="nestedblock--logging"></a> | ||
### Nested Schema for `logging` | ||
|
||
Optional: | ||
|
||
- `destination_region_id` (Number) | ||
- `enabled` (Boolean) | ||
- `retention_policy_period` (Number) | ||
- `topic_name` (String) | ||
|
||
|
||
<a id="nestedblock--readiness_probe"></a> | ||
### Nested Schema for `readiness_probe` | ||
|
||
Required: | ||
|
||
- `enabled` (Boolean) | ||
|
||
Optional: | ||
|
||
- `exec_command` (String) | ||
- `failure_threshold` (Number) | ||
- `http_get_headers` (Map of String) | ||
- `http_get_host` (String) | ||
- `http_get_path` (String) | ||
- `http_get_port` (Number) | ||
- `http_get_schema` (String) | ||
- `initial_delay_seconds` (Number) | ||
- `period_seconds` (Number) | ||
- `success_threshold` (Number) | ||
- `tcp_socket_port` (Number) | ||
- `timeout_seconds` (Number) | ||
|
||
|
||
<a id="nestedblock--startup_probe"></a> | ||
### Nested Schema for `startup_probe` | ||
|
||
Required: | ||
|
||
- `enabled` (Boolean) | ||
|
||
Optional: | ||
|
||
- `exec_command` (String) | ||
- `failure_threshold` (Number) | ||
- `http_get_headers` (Map of String) | ||
- `http_get_host` (String) | ||
- `http_get_path` (String) | ||
- `http_get_port` (Number) | ||
- `http_get_schema` (String) | ||
- `initial_delay_seconds` (Number) | ||
- `period_seconds` (Number) | ||
- `success_threshold` (Number) | ||
- `tcp_socket_port` (Number) | ||
- `timeout_seconds` (Number) | ||
|
||
|
||
|
||
|
||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# import using <project_id>:<inference_deployment_name> format | ||
terraform import gcore_inference_deployment.inf1 1:my-first-inference | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "gcore_registry_credential Resource - terraform-provider-gcore" | ||
subcategory: "" | ||
description: |- | ||
Represent inference registry credential | ||
--- | ||
|
||
# gcore_registry_credential (Resource) | ||
|
||
Represent inference registry credential | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "gcore_registry_credential" "creds" { | ||
project_id = 184550 | ||
name = "docker-io" | ||
username = "username" | ||
password = "passwd" | ||
registry_url = "docker.io" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) | ||
- `password` (String) | ||
- `registry_url` (String) | ||
- `username` (String) | ||
|
||
### Optional | ||
|
||
- `project_id` (Number) | ||
- `project_name` (String) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# import using <project_id>:<credentials_name> format | ||
terraform import gcore_registry_credential.dockerio 1:docekrio | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.