Project Cluster
The gitlab.ProjectCluster
resource allows to manage the lifecycle of a project 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.Project;
import com.pulumi.gitlab.ProjectCluster;
import com.pulumi.gitlab.ProjectClusterArgs;
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 foo = new Project("foo");
var bar = new ProjectCluster("bar", ProjectClusterArgs.builder()
.project(foo.id())
.domain("example.com")
.enabled(true)
.kubernetesApiUrl("https://124.124.124")
.kubernetesToken("some-token")
.kubernetesCaCert("some-cert")
.kubernetesNamespace("namespace")
.kubernetesAuthorizationType("rbac")
.environmentScope("*")
.managementProjectId("123456")
.build());
}
}
Content copied to clipboard
Import
GitLab project clusters can be imported using an id made up of projectid:clusterid
, e.g.
$ pulumi import gitlab:index/projectCluster:ProjectCluster bar 123:321
Content copied to clipboard
Properties
Link copied to clipboard
Cluster type.
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 project.
Link copied to clipboard
The token to authenticate against Kubernetes.
Link copied to clipboard
The ID of the management project for the cluster.
Link copied to clipboard
Platform type.
Link copied to clipboard
Provider type.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard