Show / Hide Table of Contents

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",
            },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Project
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class Project : CustomResource

Constructors

View Source

Project(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 Source

Annotations

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>>
View Source

ClusterId

The cluster id where create project (string)

Declaration
public Output<string> ClusterId { get; }
Property Value
Type Description
Output<System.String>
View Source

ContainerResourceLimit

Default containers resource limits on project (List maxitem:1)

Declaration
public Output<ProjectContainerResourceLimit> ContainerResourceLimit { get; }
Property Value
Type Description
Output<ProjectContainerResourceLimit>
View Source

Description

A project description (string)

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

EnableProjectMonitoring

Enable built-in project monitoring. Default false (bool)

Declaration
public Output<bool?> EnableProjectMonitoring { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

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>>
View Source

Name

The name of the project (string)

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

PodSecurityPolicyTemplateId

Default Pod Security Policy ID for the project (string)

Declaration
public Output<string> PodSecurityPolicyTemplateId { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.