Instance Cluster Args
data class InstanceClusterArgs(val domain: Output<String>? = null, val enabled: Output<Boolean>? = null, val environmentScope: Output<String>? = null, val kubernetesApiUrl: Output<String>? = null, val kubernetesAuthorizationType: Output<String>? = null, val kubernetesCaCert: Output<String>? = null, val kubernetesNamespace: Output<String>? = null, val kubernetesToken: Output<String>? = null, val managed: Output<Boolean>? = null, val managementProjectId: Output<String>? = null, val name: Output<String>? = null) : ConvertibleToJava<InstanceClusterArgs>
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
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());
}
}
Content copied to clipboard
Import
GitLab instance clusters can be imported using a clusterid
, e.g.
$ pulumi import gitlab:index/instanceCluster:InstanceCluster bar 123
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(domain: Output<String>? = null, enabled: Output<Boolean>? = null, environmentScope: Output<String>? = null, kubernetesApiUrl: Output<String>? = null, kubernetesAuthorizationType: Output<String>? = null, kubernetesCaCert: Output<String>? = null, kubernetesNamespace: Output<String>? = null, kubernetesToken: Output<String>? = null, managed: Output<Boolean>? = null, managementProjectId: Output<String>? = null, name: Output<String>? = null)
Properties
Link copied to clipboard
The associated environment to the cluster. Defaults to *
.
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
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
The token to authenticate against Kubernetes. This attribute cannot be read.
Link copied to clipboard
The ID of the management project for the cluster.