跳到正文

Rancher2 ​

The Rancher2 provider for Pulumi can be used to provision any of the cloud resources available via Rancher. The Rancher2 provider must be configured with credentials to deploy and update resources for Rancher.

See the full API documentation for complete details of the available Rancher2 provider APIs.

Setup ​

The Rancher2 provider supports several options for providing access to Rancher credentials. See the Rancher2 setup page for details.

Example ​

typescript
import * as rancher2 from "@pulumi/rancher2";

const myUser = new rancher2.User("my-user", {
  name: "Foo user",
  username: "foo",
  password: "initialPassw0rd",
  enabled: true,
});

Libraries ​

The following packages are available in packager managers:

The Rancher2 provider is open source and available in the pulumi/pulumi-rancher2 repo.

文档内容翻译自 Pulumi 官方文档。