InstanceCluster

class InstanceCluster : KotlinCustomResource

The gitlab.InstanceCluster resource allows to manage the lifecycle of an instance cluster.

This is deprecated GitLab feature since 14.5 Upstream API: GitLab REST API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const bar = new gitlab.InstanceCluster("bar", {
domain: "example.com",
enabled: true,
environmentScope: "*",
kubernetesApiUrl: "https://124.124.124",
kubernetesAuthorizationType: "rbac",
kubernetesCaCert: "some-cert",
kubernetesNamespace: "namespace",
kubernetesToken: "some-token",
managementProjectId: "123456",
});
import pulumi
import pulumi_gitlab as gitlab
bar = gitlab.InstanceCluster("bar",
domain="example.com",
enabled=True,
environment_scope="*",
kubernetes_api_url="https://124.124.124",
kubernetes_authorization_type="rbac",
kubernetes_ca_cert="some-cert",
kubernetes_namespace="namespace",
kubernetes_token="some-token",
management_project_id="123456")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var bar = new GitLab.InstanceCluster("bar", new()
{
Domain = "example.com",
Enabled = true,
EnvironmentScope = "*",
KubernetesApiUrl = "https://124.124.124",
KubernetesAuthorizationType = "rbac",
KubernetesCaCert = "some-cert",
KubernetesNamespace = "namespace",
KubernetesToken = "some-token",
ManagementProjectId = "123456",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gitlab.NewInstanceCluster(ctx, "bar", &gitlab.InstanceClusterArgs{
Domain: pulumi.String("example.com"),
Enabled: pulumi.Bool(true),
EnvironmentScope: pulumi.String("*"),
KubernetesApiUrl: pulumi.String("https://124.124.124"),
KubernetesAuthorizationType: pulumi.String("rbac"),
KubernetesCaCert: pulumi.String("some-cert"),
KubernetesNamespace: pulumi.String("namespace"),
KubernetesToken: pulumi.String("some-token"),
ManagementProjectId: pulumi.String("123456"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.InstanceCluster;
import com.pulumi.gitlab.InstanceClusterArgs;
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 bar = new InstanceCluster("bar", InstanceClusterArgs.builder()
.domain("example.com")
.enabled(true)
.environmentScope("*")
.kubernetesApiUrl("https://124.124.124")
.kubernetesAuthorizationType("rbac")
.kubernetesCaCert("some-cert")
.kubernetesNamespace("namespace")
.kubernetesToken("some-token")
.managementProjectId("123456")
.build());
}
}
resources:
bar:
type: gitlab:InstanceCluster
properties:
domain: example.com
enabled: true
environmentScope: '*'
kubernetesApiUrl: https://124.124.124
kubernetesAuthorizationType: rbac
kubernetesCaCert: some-cert
kubernetesNamespace: namespace
kubernetesToken: some-token
managementProjectId: '123456'

Import

GitLab instance clusters can be imported using a clusterid, e.g.

$ pulumi import gitlab:index/instanceCluster:InstanceCluster bar 123

Properties

Link copied to clipboard
val clusterType: Output<String>

Cluster type.

Link copied to clipboard
val createdAt: Output<String>

Create time.

Link copied to clipboard
val domain: Output<String>?

The base domain of the cluster.

Link copied to clipboard
val enabled: Output<Boolean>?

Determines if cluster is active or not. Defaults to true. This attribute cannot be read.

Link copied to clipboard
val environmentScope: Output<String>?

The associated environment to the cluster. Defaults to *.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The URL to access the Kubernetes API.

Link copied to clipboard

The cluster authorization type. Valid values are rbac, abac, unknown_authorization. Defaults to rbac.

Link copied to clipboard
val kubernetesCaCert: Output<String>?

TLS certificate (needed if API is using a self-signed TLS certificate).

Link copied to clipboard

The unique namespace related to the instance.

Link copied to clipboard
val kubernetesToken: Output<String>

The token to authenticate against Kubernetes. This attribute cannot be read.

Link copied to clipboard
val managed: Output<Boolean>?

Determines if cluster is managed by gitlab or not. Defaults to true. This attribute cannot be read.

Link copied to clipboard

The ID of the management project for the cluster.

Link copied to clipboard
val name: Output<String>

The name of cluster.

Link copied to clipboard
val platformType: Output<String>

Platform type.

Link copied to clipboard
val providerType: Output<String>

Provider type.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>