Package @pulumi/kubernetes

var kubernetes = require("@pulumi/kubernetes");
import * as kubernetes from "@pulumi/kubernetes";

class Provider

extends ProviderResource

The provider type for the kubernetes package.


new Provider(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions)

Create a Provider resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

function getVersion

getVersion(): string

Returns the version of the package containing this file, obtained from the package.json of this package.

interface ProviderArgs

The set of arguments for constructing a Provider.

property cluster

cluster?: pulumi.Input<string>;

If present, the name of the kubeconfig cluster to use.

property context

context?: pulumi.Input<string>;

If present, the name of the kubeconfig context to use.

property kubeconfig

kubeconfig?: pulumi.Input<string>;

The contents of a kubeconfig file. If this is set, this config will be used instead of $KUBECONFIG.

property namespace

namespace?: pulumi.Input<string>;

If present, the default namespace to use. This flag is ignored for cluster-scoped resources. Note: if .metadata.namespace is set on a resource, that value takes precedence over the provider default.