Class Project
Provides a Rancher v2 Project resource. This can be used to create projects for Rancher v2 environments and retrieve their information.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
// Create a new rancher2 Project
var foo = new Rancher2.Project("foo", new Rancher2.ProjectArgs
{
ClusterId = "<CLUSTER_ID>",
ContainerResourceLimit = new Rancher2.Inputs.ProjectContainerResourceLimitArgs
{
LimitsCpu = "20m",
LimitsMemory = "20Mi",
RequestsCpu = "1m",
RequestsMemory = "1Mi",
},
ResourceQuota = new Rancher2.Inputs.ProjectResourceQuotaArgs
{
NamespaceDefaultLimit = new Rancher2.Inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs
{
LimitsCpu = "2000m",
LimitsMemory = "500Mi",
RequestsStorage = "1Gi",
},
ProjectLimit = new Rancher2.Inputs.ProjectResourceQuotaProjectLimitArgs
{
LimitsCpu = "2000m",
LimitsMemory = "2000Mi",
RequestsStorage = "2Gi",
},
},
});
}
}
Inherited Members
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class Project : CustomResource
Constructors
View SourceProject(String, ProjectArgs, CustomResourceOptions)
Create a Project resource with the given unique name, arguments, and options.
Declaration
public Project(string name, ProjectArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ProjectArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAnnotations
Annotations for Node Pool object (map)
Declaration
public Output<ImmutableDictionary<string, object>> Annotations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
ClusterId
The cluster id where create project (string)
Declaration
public Output<string> ClusterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ContainerResourceLimit
Default containers resource limits on project (List maxitem:1)
Declaration
public Output<ProjectContainerResourceLimit> ContainerResourceLimit { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectContainerResourceLimit> |
Description
A project description (string)
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EnableProjectMonitoring
Enable built-in project monitoring. Default false (bool)
Declaration
public Output<bool?> EnableProjectMonitoring { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Labels
Labels for Node Pool object (map)
Declaration
public Output<ImmutableDictionary<string, object>> Labels { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Name
The name of the project (string)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PodSecurityPolicyTemplateId
Default Pod Security Policy ID for the project (string)
Declaration
public Output<string> PodSecurityPolicyTemplateId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ProjectMonitoringInput
Project monitoring config. Any parameter defined in rancher-monitoring charts could be configured (list maxitems:1)
Declaration
public Output<ProjectProjectMonitoringInput> ProjectMonitoringInput { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectProjectMonitoringInput> |
ResourceQuota
Resource quota for project. Rancher v2.1.x or higher (list maxitems:1)
Declaration
public Output<ProjectResourceQuota> ResourceQuota { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectResourceQuota> |
WaitForCluster
Wait for cluster becomes active. Default false (bool)
Declaration
public Output<bool?> WaitForCluster { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Methods
View SourceGet(String, Input<String>, ProjectState, CustomResourceOptions)
Get an existing Project resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Project Get(string name, Input<string> id, ProjectState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ProjectState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Project |