Provider
The provider type for the kubernetes package.
Create a Provider Resource
new Provider(name: string, args?: Provider, opts?: CustomResourceOptions);def Provider(resource_name, opts=None, cluster=None, context=None, enable_dry_run=None, kubeconfig=None, namespace=None, render_yaml_to_directory=None, suppress_deprecation_warnings=None);func NewProvider(ctx *Context, name string, args *ProviderArgs, opts ...ResourceOption) (*Provider, error)public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args Provider
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Provider Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Provider resource accepts the following input properties:
- Cluster string
- If present, the name of the kubeconfig cluster to use.
- Context string
- If present, the name of the kubeconfig context to use.
- Enable
Dry boolRun BETA FEATURE - If present and set to true, enable server-side diff calculations. This feature is in developer preview, and is disabled by default.
This config can be specified in the following ways, using this precedence: 1. This
enableDryRunparameter. 2. ThePULUMI_K8S_ENABLE_DRY_RUNenvironment variable.- Kube
Config string - The contents of a kubeconfig file. If this is set, this config will be used instead of $KUBECONFIG.
- Namespace string
If present, the default namespace to use. This flag is ignored for cluster-scoped resources.
A namespace can be specified in multiple places, and the precedence is as follows: 1.
.metadata.namespaceset on the resource. 2. Thisnamespaceparameter. 3.namespaceset for the active context in the kubeconfig.- Render
Yaml stringTo Directory BETA FEATURE - If present, render resource manifests to this directory. In this mode, resources will not be created on a Kubernetes cluster, but the rendered manifests will be kept in sync with changes to the Pulumi program. This feature is in developer preview, and is disabled by default.
Note that some computed Outputs such as status fields will not be populated since the resources are not created on a Kubernetes cluster. These Output values will remain undefined, and may result in an error if they are referenced by other resources. Also note that any secret values used in these resources will be rendered in plaintext to the resulting YAML.
- Suppress
Deprecation boolWarnings If present and set to true, suppress apiVersion deprecation warnings from the CLI.
This config can be specified in the following ways, using this precedence: 1. This
suppressDeprecationWarningsparameter. 2. ThePULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGSenvironment variable.
- Cluster string
- If present, the name of the kubeconfig cluster to use.
- Context string
- If present, the name of the kubeconfig context to use.
- Enable
Dry boolRun BETA FEATURE - If present and set to true, enable server-side diff calculations. This feature is in developer preview, and is disabled by default.
This config can be specified in the following ways, using this precedence: 1. This
enableDryRunparameter. 2. ThePULUMI_K8S_ENABLE_DRY_RUNenvironment variable.- Kubeconfig string
- The contents of a kubeconfig file. If this is set, this config will be used instead of $KUBECONFIG.
- Namespace string
If present, the default namespace to use. This flag is ignored for cluster-scoped resources.
A namespace can be specified in multiple places, and the precedence is as follows: 1.
.metadata.namespaceset on the resource. 2. Thisnamespaceparameter. 3.namespaceset for the active context in the kubeconfig.- Render
Yaml stringTo Directory BETA FEATURE - If present, render resource manifests to this directory. In this mode, resources will not be created on a Kubernetes cluster, but the rendered manifests will be kept in sync with changes to the Pulumi program. This feature is in developer preview, and is disabled by default.
Note that some computed Outputs such as status fields will not be populated since the resources are not created on a Kubernetes cluster. These Output values will remain undefined, and may result in an error if they are referenced by other resources. Also note that any secret values used in these resources will be rendered in plaintext to the resulting YAML.
- Suppress
Deprecation boolWarnings If present and set to true, suppress apiVersion deprecation warnings from the CLI.
This config can be specified in the following ways, using this precedence: 1. This
suppressDeprecationWarningsparameter. 2. ThePULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGSenvironment variable.
- cluster string
- If present, the name of the kubeconfig cluster to use.
- context string
- If present, the name of the kubeconfig context to use.
- enable
Dry booleanRun BETA FEATURE - If present and set to true, enable server-side diff calculations. This feature is in developer preview, and is disabled by default.
This config can be specified in the following ways, using this precedence: 1. This
enableDryRunparameter. 2. ThePULUMI_K8S_ENABLE_DRY_RUNenvironment variable.- kubeconfig string
- The contents of a kubeconfig file. If this is set, this config will be used instead of $KUBECONFIG.
- namespace string
If present, the default namespace to use. This flag is ignored for cluster-scoped resources.
A namespace can be specified in multiple places, and the precedence is as follows: 1.
.metadata.namespaceset on the resource. 2. Thisnamespaceparameter. 3.namespaceset for the active context in the kubeconfig.- render
Yaml stringTo Directory BETA FEATURE - If present, render resource manifests to this directory. In this mode, resources will not be created on a Kubernetes cluster, but the rendered manifests will be kept in sync with changes to the Pulumi program. This feature is in developer preview, and is disabled by default.
Note that some computed Outputs such as status fields will not be populated since the resources are not created on a Kubernetes cluster. These Output values will remain undefined, and may result in an error if they are referenced by other resources. Also note that any secret values used in these resources will be rendered in plaintext to the resulting YAML.
- suppress
Deprecation booleanWarnings If present and set to true, suppress apiVersion deprecation warnings from the CLI.
This config can be specified in the following ways, using this precedence: 1. This
suppressDeprecationWarningsparameter. 2. ThePULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGSenvironment variable.
- cluster str
- If present, the name of the kubeconfig cluster to use.
- context str
- If present, the name of the kubeconfig context to use.
- enable_
dry_ boolrun BETA FEATURE - If present and set to true, enable server-side diff calculations. This feature is in developer preview, and is disabled by default.
This config can be specified in the following ways, using this precedence: 1. This
enableDryRunparameter. 2. ThePULUMI_K8S_ENABLE_DRY_RUNenvironment variable.- kubeconfig str
- The contents of a kubeconfig file. If this is set, this config will be used instead of $KUBECONFIG.
- namespace str
If present, the default namespace to use. This flag is ignored for cluster-scoped resources.
A namespace can be specified in multiple places, and the precedence is as follows: 1.
.metadata.namespaceset on the resource. 2. Thisnamespaceparameter. 3.namespaceset for the active context in the kubeconfig.- render_
yaml_ strto_ directory BETA FEATURE - If present, render resource manifests to this directory. In this mode, resources will not be created on a Kubernetes cluster, but the rendered manifests will be kept in sync with changes to the Pulumi program. This feature is in developer preview, and is disabled by default.
Note that some computed Outputs such as status fields will not be populated since the resources are not created on a Kubernetes cluster. These Output values will remain undefined, and may result in an error if they are referenced by other resources. Also note that any secret values used in these resources will be rendered in plaintext to the resulting YAML.
- suppress_
deprecation_ boolwarnings If present and set to true, suppress apiVersion deprecation warnings from the CLI.
This config can be specified in the following ways, using this precedence: 1. This
suppressDeprecationWarningsparameter. 2. ThePULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGSenvironment variable.
Outputs
All input properties are implicitly available as output properties. Additionally, the Provider resource produces the following output properties:
Package Details
- Repository
- https://github.com/pulumi/pulumi-kubernetes
- License
- Apache-2.0