gcorelabs.K8sPool
Explore with Pulumi AI
Represent k8s cluster’s pool.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const gcore_k8s_pool = new gcore.index.Gcore_k8s_pool("gcore_k8s_pool", {
projectId: 1,
regionId: 1,
clusterId: "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
name: "tf-pool",
flavorId: "g1-standard-1-2",
minNodeCount: 1,
maxNodeCount: 2,
nodeCount: 1,
dockerVolumeSize: 2,
});
import pulumi
import pulumi_gcore as gcore
gcore_k8s_pool = gcore.index.Gcore_k8s_pool("gcore_k8s_pool",
project_id=1,
region_id=1,
cluster_id=6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25,
name=tf-pool,
flavor_id=g1-standard-1-2,
min_node_count=1,
max_node_count=2,
node_count=1,
docker_volume_size=2)
package main
import (
"github.com/pulumi/pulumi-gcore/sdk/go/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.NewGcore_k8s_pool(ctx, "gcore_k8s_pool", &gcore.Gcore_k8s_poolArgs{
ProjectId: 1,
RegionId: 1,
ClusterId: "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
Name: "tf-pool",
FlavorId: "g1-standard-1-2",
MinNodeCount: 1,
MaxNodeCount: 2,
NodeCount: 1,
DockerVolumeSize: 2,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var gcore_k8s_pool = new Gcore.Index.Gcore_k8s_pool("gcore_k8s_pool", new()
{
ProjectId = 1,
RegionId = 1,
ClusterId = "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25",
Name = "tf-pool",
FlavorId = "g1-standard-1-2",
MinNodeCount = 1,
MaxNodeCount = 2,
NodeCount = 1,
DockerVolumeSize = 2,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.gcore_k8s_pool;
import com.pulumi.gcore.Gcore_k8s_poolArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var gcore_k8s_pool = new Gcore_k8s_pool("gcore_k8s_pool", Gcore_k8s_poolArgs.builder()
.projectId(1)
.regionId(1)
.clusterId("6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25")
.name("tf-pool")
.flavorId("g1-standard-1-2")
.minNodeCount(1)
.maxNodeCount(2)
.nodeCount(1)
.dockerVolumeSize(2)
.build());
}
}
resources:
gcore_k8s_pool:
type: gcore:gcore_k8s_pool
properties:
projectId: 1
regionId: 1
clusterId: 6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25
name: tf-pool
flavorId: g1-standard-1-2
minNodeCount: 1
maxNodeCount: 2
nodeCount: 1
dockerVolumeSize: 2
Create K8sPool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new K8sPool(name: string, args: K8sPoolArgs, opts?: CustomResourceOptions);
@overload
def K8sPool(resource_name: str,
args: K8sPoolInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def K8sPool(resource_name: str,
opts: Optional[ResourceOptions] = None,
max_node_count: Optional[float] = None,
cluster_id: Optional[str] = None,
min_node_count: Optional[float] = None,
flavor_id: Optional[str] = None,
node_count: Optional[float] = None,
k8s_pool_id: Optional[str] = None,
docker_volume_size: Optional[float] = None,
project_id: Optional[float] = None,
last_updated: Optional[str] = None,
name: Optional[str] = None,
docker_volume_type: Optional[str] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
timeouts: Optional[K8sPoolTimeoutsArgs] = None)
func NewK8sPool(ctx *Context, name string, args K8sPoolArgs, opts ...ResourceOption) (*K8sPool, error)
public K8sPool(string name, K8sPoolArgs args, CustomResourceOptions? opts = null)
public K8sPool(String name, K8sPoolArgs args)
public K8sPool(String name, K8sPoolArgs args, CustomResourceOptions options)
type: gcorelabs:K8sPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. K8sPoolArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. K8sPoolInitArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. K8sPoolArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. K8sPoolArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. K8sPoolArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var k8sPoolResource = new Gcorelabs.K8sPool("k8sPoolResource", new()
{
MaxNodeCount = 0,
ClusterId = "string",
MinNodeCount = 0,
FlavorId = "string",
NodeCount = 0,
K8sPoolId = "string",
DockerVolumeSize = 0,
ProjectId = 0,
LastUpdated = "string",
Name = "string",
DockerVolumeType = "string",
ProjectName = "string",
RegionId = 0,
RegionName = "string",
Timeouts = new Gcorelabs.Inputs.K8sPoolTimeoutsArgs
{
Create = "string",
Update = "string",
},
});
example, err := gcorelabs.NewK8sPool(ctx, "k8sPoolResource", &gcorelabs.K8sPoolArgs{
MaxNodeCount: pulumi.Float64(0),
ClusterId: pulumi.String("string"),
MinNodeCount: pulumi.Float64(0),
FlavorId: pulumi.String("string"),
NodeCount: pulumi.Float64(0),
K8sPoolId: pulumi.String("string"),
DockerVolumeSize: pulumi.Float64(0),
ProjectId: pulumi.Float64(0),
LastUpdated: pulumi.String("string"),
Name: pulumi.String("string"),
DockerVolumeType: pulumi.String("string"),
ProjectName: pulumi.String("string"),
RegionId: pulumi.Float64(0),
RegionName: pulumi.String("string"),
Timeouts: &.K8sPoolTimeoutsArgs{
Create: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var k8sPoolResource = new K8sPool("k8sPoolResource", K8sPoolArgs.builder()
.maxNodeCount(0)
.clusterId("string")
.minNodeCount(0)
.flavorId("string")
.nodeCount(0)
.k8sPoolId("string")
.dockerVolumeSize(0)
.projectId(0)
.lastUpdated("string")
.name("string")
.dockerVolumeType("string")
.projectName("string")
.regionId(0)
.regionName("string")
.timeouts(K8sPoolTimeoutsArgs.builder()
.create("string")
.update("string")
.build())
.build());
k8s_pool_resource = gcorelabs.K8sPool("k8sPoolResource",
max_node_count=0,
cluster_id="string",
min_node_count=0,
flavor_id="string",
node_count=0,
k8s_pool_id="string",
docker_volume_size=0,
project_id=0,
last_updated="string",
name="string",
docker_volume_type="string",
project_name="string",
region_id=0,
region_name="string",
timeouts={
"create": "string",
"update": "string",
})
const k8sPoolResource = new gcorelabs.K8sPool("k8sPoolResource", {
maxNodeCount: 0,
clusterId: "string",
minNodeCount: 0,
flavorId: "string",
nodeCount: 0,
k8sPoolId: "string",
dockerVolumeSize: 0,
projectId: 0,
lastUpdated: "string",
name: "string",
dockerVolumeType: "string",
projectName: "string",
regionId: 0,
regionName: "string",
timeouts: {
create: "string",
update: "string",
},
});
type: gcorelabs:K8sPool
properties:
clusterId: string
dockerVolumeSize: 0
dockerVolumeType: string
flavorId: string
k8sPoolId: string
lastUpdated: string
maxNodeCount: 0
minNodeCount: 0
name: string
nodeCount: 0
projectId: 0
projectName: string
regionId: 0
regionName: string
timeouts:
create: string
update: string
K8sPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The K8sPool resource accepts the following input properties:
- Cluster
Id This property is required. string - Flavor
Id This property is required. string - Max
Node Count This property is required. double - Min
Node Count This property is required. double - Node
Count This property is required. double - Docker
Volume doubleSize - Docker
Volume stringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- K8s
Pool stringId - The ID of this resource.
- Last
Updated string - Name string
- Project
Id double - Project
Name string - Region
Id double - Region
Name string - Timeouts
K8s
Pool Timeouts
- Cluster
Id This property is required. string - Flavor
Id This property is required. string - Max
Node Count This property is required. float64 - Min
Node Count This property is required. float64 - Node
Count This property is required. float64 - Docker
Volume float64Size - Docker
Volume stringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- K8s
Pool stringId - The ID of this resource.
- Last
Updated string - Name string
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string - Timeouts
K8s
Pool Timeouts Args
- cluster
Id This property is required. String - flavor
Id This property is required. String - max
Node Count This property is required. Double - min
Node Count This property is required. Double - node
Count This property is required. Double - docker
Volume DoubleSize - docker
Volume StringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- k8s
Pool StringId - The ID of this resource.
- last
Updated String - name String
- project
Id Double - project
Name String - region
Id Double - region
Name String - timeouts
K8s
Pool Timeouts
- cluster
Id This property is required. string - flavor
Id This property is required. string - max
Node Count This property is required. number - min
Node Count This property is required. number - node
Count This property is required. number - docker
Volume numberSize - docker
Volume stringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- k8s
Pool stringId - The ID of this resource.
- last
Updated string - name string
- project
Id number - project
Name string - region
Id number - region
Name string - timeouts
K8s
Pool Timeouts
- cluster_
id This property is required. str - flavor_
id This property is required. str - max_
node_ count This property is required. float - min_
node_ count This property is required. float - node_
count This property is required. float - docker_
volume_ floatsize - docker_
volume_ strtype - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- k8s_
pool_ strid - The ID of this resource.
- last_
updated str - name str
- project_
id float - project_
name str - region_
id float - region_
name str - timeouts
K8s
Pool Timeouts Args
- cluster
Id This property is required. String - flavor
Id This property is required. String - max
Node Count This property is required. Number - min
Node Count This property is required. Number - node
Count This property is required. Number - docker
Volume NumberSize - docker
Volume StringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- k8s
Pool StringId - The ID of this resource.
- last
Updated String - name String
- project
Id Number - project
Name String - region
Id Number - region
Name String - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the K8sPool resource produces the following output properties:
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- stack_
id str
Look up Existing K8sPool Resource
Get an existing K8sPool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: K8sPoolState, opts?: CustomResourceOptions): K8sPool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
created_at: Optional[str] = None,
docker_volume_size: Optional[float] = None,
docker_volume_type: Optional[str] = None,
flavor_id: Optional[str] = None,
k8s_pool_id: Optional[str] = None,
last_updated: Optional[str] = None,
max_node_count: Optional[float] = None,
min_node_count: Optional[float] = None,
name: Optional[str] = None,
node_count: Optional[float] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
stack_id: Optional[str] = None,
timeouts: Optional[K8sPoolTimeoutsArgs] = None) -> K8sPool
func GetK8sPool(ctx *Context, name string, id IDInput, state *K8sPoolState, opts ...ResourceOption) (*K8sPool, error)
public static K8sPool Get(string name, Input<string> id, K8sPoolState? state, CustomResourceOptions? opts = null)
public static K8sPool get(String name, Output<String> id, K8sPoolState state, CustomResourceOptions options)
resources: _: type: gcorelabs:K8sPool get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Id string - Created
At string - Docker
Volume doubleSize - Docker
Volume stringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- Flavor
Id string - K8s
Pool stringId - The ID of this resource.
- Last
Updated string - Max
Node doubleCount - Min
Node doubleCount - Name string
- Node
Count double - Project
Id double - Project
Name string - Region
Id double - Region
Name string - Stack
Id string - Timeouts
K8s
Pool Timeouts
- Cluster
Id string - Created
At string - Docker
Volume float64Size - Docker
Volume stringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- Flavor
Id string - K8s
Pool stringId - The ID of this resource.
- Last
Updated string - Max
Node float64Count - Min
Node float64Count - Name string
- Node
Count float64 - Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string - Stack
Id string - Timeouts
K8s
Pool Timeouts Args
- cluster
Id String - created
At String - docker
Volume DoubleSize - docker
Volume StringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- flavor
Id String - k8s
Pool StringId - The ID of this resource.
- last
Updated String - max
Node DoubleCount - min
Node DoubleCount - name String
- node
Count Double - project
Id Double - project
Name String - region
Id Double - region
Name String - stack
Id String - timeouts
K8s
Pool Timeouts
- cluster
Id string - created
At string - docker
Volume numberSize - docker
Volume stringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- flavor
Id string - k8s
Pool stringId - The ID of this resource.
- last
Updated string - max
Node numberCount - min
Node numberCount - name string
- node
Count number - project
Id number - project
Name string - region
Id number - region
Name string - stack
Id string - timeouts
K8s
Pool Timeouts
- cluster_
id str - created_
at str - docker_
volume_ floatsize - docker_
volume_ strtype - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- flavor_
id str - k8s_
pool_ strid - The ID of this resource.
- last_
updated str - max_
node_ floatcount - min_
node_ floatcount - name str
- node_
count float - project_
id float - project_
name str - region_
id float - region_
name str - stack_
id str - timeouts
K8s
Pool Timeouts Args
- cluster
Id String - created
At String - docker
Volume NumberSize - docker
Volume StringType - Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
- flavor
Id String - k8s
Pool StringId - The ID of this resource.
- last
Updated String - max
Node NumberCount - min
Node NumberCount - name String
- node
Count Number - project
Id Number - project
Name String - region
Id Number - region
Name String - stack
Id String - timeouts Property Map
Supporting Types
K8sPoolTimeouts, K8sPoolTimeoutsArgs
Import
import using <project_id>:<region_id>:<pool_id>:<cluster_id> format
$ pulumi import gcorelabs:index/k8sPool:K8sPool k8s_pool1 1:6:a775dd94-4e9c-4da7-9f0e-ffc9ae34446b:447d2959-8ae0-4ca0-8d47-9f050a3637d7
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcorelabs g-core/terraform-provider-gcorelabs
- License
- Notes
- This Pulumi package is based on the
gcorelabs
Terraform Provider.