gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core
gcorelabs.getK8s
Explore with Pulumi AI
Represent k8s cluster with one default pool.
Using getK8s
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getK8s(args: GetK8sArgs, opts?: InvokeOptions): Promise<GetK8sResult>
function getK8sOutput(args: GetK8sOutputArgs, opts?: InvokeOptions): Output<GetK8sResult>
def get_k8s(cluster_id: Optional[str] = None,
id: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetK8sResult
def get_k8s_output(cluster_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
project_name: Optional[pulumi.Input[str]] = None,
region_id: Optional[pulumi.Input[float]] = None,
region_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetK8sResult]
func LookupK8s(ctx *Context, args *LookupK8sArgs, opts ...InvokeOption) (*LookupK8sResult, error)
func LookupK8sOutput(ctx *Context, args *LookupK8sOutputArgs, opts ...InvokeOption) LookupK8sResultOutput
> Note: This function is named LookupK8s
in the Go SDK.
public static class GetK8s
{
public static Task<GetK8sResult> InvokeAsync(GetK8sArgs args, InvokeOptions? opts = null)
public static Output<GetK8sResult> Invoke(GetK8sInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetK8sResult> getK8s(GetK8sArgs args, InvokeOptions options)
public static Output<GetK8sResult> getK8s(GetK8sArgs args, InvokeOptions options)
fn::invoke:
function: gcorelabs:index/getK8s:getK8s
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id This property is required. string - Id string
- The ID of this resource.
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Cluster
Id This property is required. string - Id string
- The ID of this resource.
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- cluster
Id This property is required. String - id String
- The ID of this resource.
- project
Id Double - project
Name String - region
Id Double - region
Name String
- cluster
Id This property is required. string - id string
- The ID of this resource.
- project
Id number - project
Name string - region
Id number - region
Name string
- cluster_
id This property is required. str - id str
- The ID of this resource.
- project_
id float - project_
name str - region_
id float - region_
name str
- cluster
Id This property is required. String - id String
- The ID of this resource.
- project
Id Number - project
Name String - region
Id Number - region
Name String
getK8s Result
The following output properties are available:
- Api
Address string - Auto
Healing boolEnabled - Cluster
Id string - Cluster
Template stringId - Container
Version string - Created
At string - Discovery
Url string - External
Dns boolEnabled - Faults Dictionary<string, string>
- Fixed
Network string - Fixed
Subnet string - Health
Status string - Health
Status Dictionary<string, string>Reason - Id string
- The ID of this resource.
- Keypair string
- Master
Addresses List<string> - Master
Flavor stringId - Master
Lb boolFloating Ip Enabled - Name string
- Node
Addresses List<string> - Node
Count double - Pools
List<Get
K8s Pool> - Status string
- Status
Reason string - Updated
At string - User
Id string - Version string
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Api
Address string - Auto
Healing boolEnabled - Cluster
Id string - Cluster
Template stringId - Container
Version string - Created
At string - Discovery
Url string - External
Dns boolEnabled - Faults map[string]string
- Fixed
Network string - Fixed
Subnet string - Health
Status string - Health
Status map[string]stringReason - Id string
- The ID of this resource.
- Keypair string
- Master
Addresses []string - Master
Flavor stringId - Master
Lb boolFloating Ip Enabled - Name string
- Node
Addresses []string - Node
Count float64 - Pools
[]Get
K8s Pool Type - Status string
- Status
Reason string - Updated
At string - User
Id string - Version string
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- api
Address String - auto
Healing BooleanEnabled - cluster
Id String - cluster
Template StringId - container
Version String - created
At String - discovery
Url String - external
Dns BooleanEnabled - faults Map<String,String>
- fixed
Network String - fixed
Subnet String - health
Status String - health
Status Map<String,String>Reason - id String
- The ID of this resource.
- keypair String
- master
Addresses List<String> - master
Flavor StringId - master
Lb BooleanFloating Ip Enabled - name String
- node
Addresses List<String> - node
Count Double - pools
List<Get
K8s Pool> - status String
- status
Reason String - updated
At String - user
Id String - version String
- project
Id Double - project
Name String - region
Id Double - region
Name String
- api
Address string - auto
Healing booleanEnabled - cluster
Id string - cluster
Template stringId - container
Version string - created
At string - discovery
Url string - external
Dns booleanEnabled - faults {[key: string]: string}
- fixed
Network string - fixed
Subnet string - health
Status string - health
Status {[key: string]: string}Reason - id string
- The ID of this resource.
- keypair string
- master
Addresses string[] - master
Flavor stringId - master
Lb booleanFloating Ip Enabled - name string
- node
Addresses string[] - node
Count number - pools
Get
K8s Pool[] - status string
- status
Reason string - updated
At string - user
Id string - version string
- project
Id number - project
Name string - region
Id number - region
Name string
- api_
address str - auto_
healing_ boolenabled - cluster_
id str - cluster_
template_ strid - container_
version str - created_
at str - discovery_
url str - external_
dns_ boolenabled - faults Mapping[str, str]
- fixed_
network str - fixed_
subnet str - health_
status str - health_
status_ Mapping[str, str]reason - id str
- The ID of this resource.
- keypair str
- master_
addresses Sequence[str] - master_
flavor_ strid - master_
lb_ boolfloating_ ip_ enabled - name str
- node_
addresses Sequence[str] - node_
count float - pools
Sequence[Get
K8s Pool] - status str
- status_
reason str - updated_
at str - user_
id str - version str
- project_
id float - project_
name str - region_
id float - region_
name str
- api
Address String - auto
Healing BooleanEnabled - cluster
Id String - cluster
Template StringId - container
Version String - created
At String - discovery
Url String - external
Dns BooleanEnabled - faults Map<String>
- fixed
Network String - fixed
Subnet String - health
Status String - health
Status Map<String>Reason - id String
- The ID of this resource.
- keypair String
- master
Addresses List<String> - master
Flavor StringId - master
Lb BooleanFloating Ip Enabled - name String
- node
Addresses List<String> - node
Count Number - pools List<Property Map>
- status String
- status
Reason String - updated
At String - user
Id String - version String
- project
Id Number - project
Name String - region
Id Number - region
Name String
Supporting Types
GetK8sPool
- Created
At This property is required. string - Docker
Volume Size This property is required. double - Docker
Volume Type 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 - Name
This property is required. string - Node
Count This property is required. double - Stack
Id This property is required. string - Uuid
This property is required. string
- Created
At This property is required. string - Docker
Volume Size This property is required. float64 - Docker
Volume Type 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 - Name
This property is required. string - Node
Count This property is required. float64 - Stack
Id This property is required. string - Uuid
This property is required. string
- created
At This property is required. String - docker
Volume Size This property is required. Double - docker
Volume Type 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 - name
This property is required. String - node
Count This property is required. Double - stack
Id This property is required. String - uuid
This property is required. String
- created
At This property is required. string - docker
Volume Size This property is required. number - docker
Volume Type 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 - name
This property is required. string - node
Count This property is required. number - stack
Id This property is required. string - uuid
This property is required. string
- created_
at This property is required. str - docker_
volume_ size This property is required. float - docker_
volume_ type 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 - name
This property is required. str - node_
count This property is required. float - stack_
id This property is required. str - uuid
This property is required. str
- created
At This property is required. String - docker
Volume Size This property is required. Number - docker
Volume Type 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 - name
This property is required. String - node
Count This property is required. Number - stack
Id This property is required. String - uuid
This property is required. String
Package Details
- Repository
- gcorelabs g-core/terraform-provider-gcorelabs
- License
- Notes
- This Pulumi package is based on the
gcorelabs
Terraform Provider.