vsphere.Supervisor
Explore with Pulumi AI
Provides a resource for configuring Workload Management.
Example Usage
S
Enable Workload Management on a compute cluster
import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const vmClass = new vsphere.VirtualMachineClass("vm_class", {
name: "custom-class",
cpus: 4,
memory: 4096,
});
const supervisor = new vsphere.Supervisor("supervisor", {
cluster: "<compute_cluster_id>",
storagePolicy: "<storage_policy_name>",
contentLibrary: "<content_library_id>",
mainDns: "10.0.0.250",
workerDns: "10.0.0.250",
edgeCluster: "<edge_cluster_id>",
dvsUuid: "<distributed_switch_uuid>",
sizingHint: "MEDIUM",
managementNetwork: {
network: "<portgroup_id>",
subnetMask: "255.255.255.0",
startingAddress: "10.0.0.150",
gateway: "10.0.0.250",
addressCount: 5,
},
ingressCidrs: [{
address: "10.10.10.0",
prefix: 24,
}],
egressCidrs: [{
address: "10.10.11.0",
prefix: 24,
}],
podCidrs: [{
address: "10.244.10.0",
prefix: 23,
}],
serviceCidr: {
address: "10.10.12.0",
prefix: 24,
},
searchDomains: "vsphere.local",
namespaces: [{
name: "custom-namespace",
contentLibraries: [],
vmClasses: [vmClass.id],
}],
});
import pulumi
import pulumi_vsphere as vsphere
vm_class = vsphere.VirtualMachineClass("vm_class",
name="custom-class",
cpus=4,
memory=4096)
supervisor = vsphere.Supervisor("supervisor",
cluster="<compute_cluster_id>",
storage_policy="<storage_policy_name>",
content_library="<content_library_id>",
main_dns="10.0.0.250",
worker_dns="10.0.0.250",
edge_cluster="<edge_cluster_id>",
dvs_uuid="<distributed_switch_uuid>",
sizing_hint="MEDIUM",
management_network={
"network": "<portgroup_id>",
"subnet_mask": "255.255.255.0",
"starting_address": "10.0.0.150",
"gateway": "10.0.0.250",
"address_count": 5,
},
ingress_cidrs=[{
"address": "10.10.10.0",
"prefix": 24,
}],
egress_cidrs=[{
"address": "10.10.11.0",
"prefix": 24,
}],
pod_cidrs=[{
"address": "10.244.10.0",
"prefix": 23,
}],
service_cidr={
"address": "10.10.12.0",
"prefix": 24,
},
search_domains="vsphere.local",
namespaces=[{
"name": "custom-namespace",
"content_libraries": [],
"vm_classes": [vm_class.id],
}])
package main
import (
"github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
vmClass, err := vsphere.NewVirtualMachineClass(ctx, "vm_class", &vsphere.VirtualMachineClassArgs{
Name: pulumi.String("custom-class"),
Cpus: pulumi.Int(4),
Memory: pulumi.Int(4096),
})
if err != nil {
return err
}
_, err = vsphere.NewSupervisor(ctx, "supervisor", &vsphere.SupervisorArgs{
Cluster: pulumi.String("<compute_cluster_id>"),
StoragePolicy: pulumi.String("<storage_policy_name>"),
ContentLibrary: pulumi.String("<content_library_id>"),
MainDns: pulumi.StringArray("10.0.0.250"),
WorkerDns: pulumi.StringArray("10.0.0.250"),
EdgeCluster: pulumi.String("<edge_cluster_id>"),
DvsUuid: pulumi.String("<distributed_switch_uuid>"),
SizingHint: pulumi.String("MEDIUM"),
ManagementNetwork: &vsphere.SupervisorManagementNetworkArgs{
Network: pulumi.String("<portgroup_id>"),
SubnetMask: pulumi.String("255.255.255.0"),
StartingAddress: pulumi.String("10.0.0.150"),
Gateway: pulumi.String("10.0.0.250"),
AddressCount: pulumi.Int(5),
},
IngressCidrs: vsphere.SupervisorIngressCidrArray{
&vsphere.SupervisorIngressCidrArgs{
Address: pulumi.String("10.10.10.0"),
Prefix: pulumi.Int(24),
},
},
EgressCidrs: vsphere.SupervisorEgressCidrArray{
&vsphere.SupervisorEgressCidrArgs{
Address: pulumi.String("10.10.11.0"),
Prefix: pulumi.Int(24),
},
},
PodCidrs: vsphere.SupervisorPodCidrArray{
&vsphere.SupervisorPodCidrArgs{
Address: pulumi.String("10.244.10.0"),
Prefix: pulumi.Int(23),
},
},
ServiceCidr: &vsphere.SupervisorServiceCidrArgs{
Address: pulumi.String("10.10.12.0"),
Prefix: pulumi.Int(24),
},
SearchDomains: pulumi.String("vsphere.local"),
Namespaces: vsphere.SupervisorNamespaceArray{
&vsphere.SupervisorNamespaceArgs{
Name: pulumi.String("custom-namespace"),
ContentLibraries: pulumi.StringArray{},
VmClasses: pulumi.StringArray{
vmClass.ID(),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using VSphere = Pulumi.VSphere;
return await Deployment.RunAsync(() =>
{
var vmClass = new VSphere.VirtualMachineClass("vm_class", new()
{
Name = "custom-class",
Cpus = 4,
Memory = 4096,
});
var supervisor = new VSphere.Supervisor("supervisor", new()
{
Cluster = "<compute_cluster_id>",
StoragePolicy = "<storage_policy_name>",
ContentLibrary = "<content_library_id>",
MainDns = "10.0.0.250",
WorkerDns = "10.0.0.250",
EdgeCluster = "<edge_cluster_id>",
DvsUuid = "<distributed_switch_uuid>",
SizingHint = "MEDIUM",
ManagementNetwork = new VSphere.Inputs.SupervisorManagementNetworkArgs
{
Network = "<portgroup_id>",
SubnetMask = "255.255.255.0",
StartingAddress = "10.0.0.150",
Gateway = "10.0.0.250",
AddressCount = 5,
},
IngressCidrs = new[]
{
new VSphere.Inputs.SupervisorIngressCidrArgs
{
Address = "10.10.10.0",
Prefix = 24,
},
},
EgressCidrs = new[]
{
new VSphere.Inputs.SupervisorEgressCidrArgs
{
Address = "10.10.11.0",
Prefix = 24,
},
},
PodCidrs = new[]
{
new VSphere.Inputs.SupervisorPodCidrArgs
{
Address = "10.244.10.0",
Prefix = 23,
},
},
ServiceCidr = new VSphere.Inputs.SupervisorServiceCidrArgs
{
Address = "10.10.12.0",
Prefix = 24,
},
SearchDomains = "vsphere.local",
Namespaces = new[]
{
new VSphere.Inputs.SupervisorNamespaceArgs
{
Name = "custom-namespace",
ContentLibraries = new() { },
VmClasses = new[]
{
vmClass.Id,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vsphere.VirtualMachineClass;
import com.pulumi.vsphere.VirtualMachineClassArgs;
import com.pulumi.vsphere.Supervisor;
import com.pulumi.vsphere.SupervisorArgs;
import com.pulumi.vsphere.inputs.SupervisorManagementNetworkArgs;
import com.pulumi.vsphere.inputs.SupervisorIngressCidrArgs;
import com.pulumi.vsphere.inputs.SupervisorEgressCidrArgs;
import com.pulumi.vsphere.inputs.SupervisorPodCidrArgs;
import com.pulumi.vsphere.inputs.SupervisorServiceCidrArgs;
import com.pulumi.vsphere.inputs.SupervisorNamespaceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var vmClass = new VirtualMachineClass("vmClass", VirtualMachineClassArgs.builder()
.name("custom-class")
.cpus(4)
.memory(4096)
.build());
var supervisor = new Supervisor("supervisor", SupervisorArgs.builder()
.cluster("<compute_cluster_id>")
.storagePolicy("<storage_policy_name>")
.contentLibrary("<content_library_id>")
.mainDns("10.0.0.250")
.workerDns("10.0.0.250")
.edgeCluster("<edge_cluster_id>")
.dvsUuid("<distributed_switch_uuid>")
.sizingHint("MEDIUM")
.managementNetwork(SupervisorManagementNetworkArgs.builder()
.network("<portgroup_id>")
.subnetMask("255.255.255.0")
.startingAddress("10.0.0.150")
.gateway("10.0.0.250")
.addressCount(5)
.build())
.ingressCidrs(SupervisorIngressCidrArgs.builder()
.address("10.10.10.0")
.prefix(24)
.build())
.egressCidrs(SupervisorEgressCidrArgs.builder()
.address("10.10.11.0")
.prefix(24)
.build())
.podCidrs(SupervisorPodCidrArgs.builder()
.address("10.244.10.0")
.prefix(23)
.build())
.serviceCidr(SupervisorServiceCidrArgs.builder()
.address("10.10.12.0")
.prefix(24)
.build())
.searchDomains("vsphere.local")
.namespaces(SupervisorNamespaceArgs.builder()
.name("custom-namespace")
.contentLibraries()
.vmClasses(vmClass.id())
.build())
.build());
}
}
resources:
vmClass:
type: vsphere:VirtualMachineClass
name: vm_class
properties:
name: custom-class
cpus: 4
memory: 4096
supervisor:
type: vsphere:Supervisor
properties:
cluster: <compute_cluster_id>
storagePolicy: <storage_policy_name>
contentLibrary: <content_library_id>
mainDns: 10.0.0.250
workerDns: 10.0.0.250
edgeCluster: <edge_cluster_id>
dvsUuid: <distributed_switch_uuid>
sizingHint: MEDIUM
managementNetwork:
network: <portgroup_id>
subnetMask: 255.255.255.0
startingAddress: 10.0.0.150
gateway: 10.0.0.250
addressCount: 5
ingressCidrs:
- address: 10.10.10.0
prefix: 24
egressCidrs:
- address: 10.10.11.0
prefix: 24
podCidrs:
- address: 10.244.10.0
prefix: 23
serviceCidr:
address: 10.10.12.0
prefix: 24
searchDomains: vsphere.local
namespaces:
- name: custom-namespace
contentLibraries: []
vmClasses:
- ${vmClass.id}
Create Supervisor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Supervisor(name: string, args: SupervisorArgs, opts?: CustomResourceOptions);
@overload
def Supervisor(resource_name: str,
args: SupervisorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Supervisor(resource_name: str,
opts: Optional[ResourceOptions] = None,
main_dns: Optional[Sequence[str]] = None,
search_domains: Optional[str] = None,
dvs_uuid: Optional[str] = None,
edge_cluster: Optional[str] = None,
egress_cidrs: Optional[Sequence[SupervisorEgressCidrArgs]] = None,
ingress_cidrs: Optional[Sequence[SupervisorIngressCidrArgs]] = None,
content_library: Optional[str] = None,
worker_dns: Optional[Sequence[str]] = None,
cluster: Optional[str] = None,
pod_cidrs: Optional[Sequence[SupervisorPodCidrArgs]] = None,
management_network: Optional[SupervisorManagementNetworkArgs] = None,
service_cidr: Optional[SupervisorServiceCidrArgs] = None,
sizing_hint: Optional[str] = None,
storage_policy: Optional[str] = None,
namespaces: Optional[Sequence[SupervisorNamespaceArgs]] = None)
func NewSupervisor(ctx *Context, name string, args SupervisorArgs, opts ...ResourceOption) (*Supervisor, error)
public Supervisor(string name, SupervisorArgs args, CustomResourceOptions? opts = null)
public Supervisor(String name, SupervisorArgs args)
public Supervisor(String name, SupervisorArgs args, CustomResourceOptions options)
type: vsphere:Supervisor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SupervisorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SupervisorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SupervisorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SupervisorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SupervisorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var supervisorResource = new VSphere.Supervisor("supervisorResource", new()
{
MainDns = new[]
{
"string",
},
SearchDomains = "string",
DvsUuid = "string",
EdgeCluster = "string",
EgressCidrs = new[]
{
new VSphere.Inputs.SupervisorEgressCidrArgs
{
Address = "string",
Prefix = 0,
},
},
IngressCidrs = new[]
{
new VSphere.Inputs.SupervisorIngressCidrArgs
{
Address = "string",
Prefix = 0,
},
},
ContentLibrary = "string",
WorkerDns = new[]
{
"string",
},
Cluster = "string",
PodCidrs = new[]
{
new VSphere.Inputs.SupervisorPodCidrArgs
{
Address = "string",
Prefix = 0,
},
},
ManagementNetwork = new VSphere.Inputs.SupervisorManagementNetworkArgs
{
AddressCount = 0,
Gateway = "string",
Network = "string",
StartingAddress = "string",
SubnetMask = "string",
},
ServiceCidr = new VSphere.Inputs.SupervisorServiceCidrArgs
{
Address = "string",
Prefix = 0,
},
SizingHint = "string",
StoragePolicy = "string",
Namespaces = new[]
{
new VSphere.Inputs.SupervisorNamespaceArgs
{
Name = "string",
ContentLibraries = new[]
{
"string",
},
VmClasses = new[]
{
"string",
},
},
},
});
example, err := vsphere.NewSupervisor(ctx, "supervisorResource", &vsphere.SupervisorArgs{
MainDns: pulumi.StringArray{
pulumi.String("string"),
},
SearchDomains: pulumi.String("string"),
DvsUuid: pulumi.String("string"),
EdgeCluster: pulumi.String("string"),
EgressCidrs: vsphere.SupervisorEgressCidrArray{
&vsphere.SupervisorEgressCidrArgs{
Address: pulumi.String("string"),
Prefix: pulumi.Int(0),
},
},
IngressCidrs: vsphere.SupervisorIngressCidrArray{
&vsphere.SupervisorIngressCidrArgs{
Address: pulumi.String("string"),
Prefix: pulumi.Int(0),
},
},
ContentLibrary: pulumi.String("string"),
WorkerDns: pulumi.StringArray{
pulumi.String("string"),
},
Cluster: pulumi.String("string"),
PodCidrs: vsphere.SupervisorPodCidrArray{
&vsphere.SupervisorPodCidrArgs{
Address: pulumi.String("string"),
Prefix: pulumi.Int(0),
},
},
ManagementNetwork: &vsphere.SupervisorManagementNetworkArgs{
AddressCount: pulumi.Int(0),
Gateway: pulumi.String("string"),
Network: pulumi.String("string"),
StartingAddress: pulumi.String("string"),
SubnetMask: pulumi.String("string"),
},
ServiceCidr: &vsphere.SupervisorServiceCidrArgs{
Address: pulumi.String("string"),
Prefix: pulumi.Int(0),
},
SizingHint: pulumi.String("string"),
StoragePolicy: pulumi.String("string"),
Namespaces: vsphere.SupervisorNamespaceArray{
&vsphere.SupervisorNamespaceArgs{
Name: pulumi.String("string"),
ContentLibraries: pulumi.StringArray{
pulumi.String("string"),
},
VmClasses: pulumi.StringArray{
pulumi.String("string"),
},
},
},
})
var supervisorResource = new Supervisor("supervisorResource", SupervisorArgs.builder()
.mainDns("string")
.searchDomains("string")
.dvsUuid("string")
.edgeCluster("string")
.egressCidrs(SupervisorEgressCidrArgs.builder()
.address("string")
.prefix(0)
.build())
.ingressCidrs(SupervisorIngressCidrArgs.builder()
.address("string")
.prefix(0)
.build())
.contentLibrary("string")
.workerDns("string")
.cluster("string")
.podCidrs(SupervisorPodCidrArgs.builder()
.address("string")
.prefix(0)
.build())
.managementNetwork(SupervisorManagementNetworkArgs.builder()
.addressCount(0)
.gateway("string")
.network("string")
.startingAddress("string")
.subnetMask("string")
.build())
.serviceCidr(SupervisorServiceCidrArgs.builder()
.address("string")
.prefix(0)
.build())
.sizingHint("string")
.storagePolicy("string")
.namespaces(SupervisorNamespaceArgs.builder()
.name("string")
.contentLibraries("string")
.vmClasses("string")
.build())
.build());
supervisor_resource = vsphere.Supervisor("supervisorResource",
main_dns=["string"],
search_domains="string",
dvs_uuid="string",
edge_cluster="string",
egress_cidrs=[vsphere.SupervisorEgressCidrArgs(
address="string",
prefix=0,
)],
ingress_cidrs=[vsphere.SupervisorIngressCidrArgs(
address="string",
prefix=0,
)],
content_library="string",
worker_dns=["string"],
cluster="string",
pod_cidrs=[vsphere.SupervisorPodCidrArgs(
address="string",
prefix=0,
)],
management_network=vsphere.SupervisorManagementNetworkArgs(
address_count=0,
gateway="string",
network="string",
starting_address="string",
subnet_mask="string",
),
service_cidr=vsphere.SupervisorServiceCidrArgs(
address="string",
prefix=0,
),
sizing_hint="string",
storage_policy="string",
namespaces=[vsphere.SupervisorNamespaceArgs(
name="string",
content_libraries=["string"],
vm_classes=["string"],
)])
const supervisorResource = new vsphere.Supervisor("supervisorResource", {
mainDns: ["string"],
searchDomains: "string",
dvsUuid: "string",
edgeCluster: "string",
egressCidrs: [{
address: "string",
prefix: 0,
}],
ingressCidrs: [{
address: "string",
prefix: 0,
}],
contentLibrary: "string",
workerDns: ["string"],
cluster: "string",
podCidrs: [{
address: "string",
prefix: 0,
}],
managementNetwork: {
addressCount: 0,
gateway: "string",
network: "string",
startingAddress: "string",
subnetMask: "string",
},
serviceCidr: {
address: "string",
prefix: 0,
},
sizingHint: "string",
storagePolicy: "string",
namespaces: [{
name: "string",
contentLibraries: ["string"],
vmClasses: ["string"],
}],
});
type: vsphere:Supervisor
properties:
cluster: string
contentLibrary: string
dvsUuid: string
edgeCluster: string
egressCidrs:
- address: string
prefix: 0
ingressCidrs:
- address: string
prefix: 0
mainDns:
- string
managementNetwork:
addressCount: 0
gateway: string
network: string
startingAddress: string
subnetMask: string
namespaces:
- contentLibraries:
- string
name: string
vmClasses:
- string
podCidrs:
- address: string
prefix: 0
searchDomains: string
serviceCidr:
address: string
prefix: 0
sizingHint: string
storagePolicy: string
workerDns:
- string
Supervisor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Supervisor resource accepts the following input properties:
- Cluster string
- The identifier of the compute cluster.
- Content
Library string - The identifier of the subscribed content library.
- Dvs
Uuid string - The UUID of the distributed switch.
- Edge
Cluster string - The identifier of the NSX Edge Cluster.
- Egress
Cidrs List<Pulumi.VSphere. Inputs. Supervisor Egress Cidr> - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- Ingress
Cidrs List<Pulumi.VSphere. Inputs. Supervisor Ingress Cidr> - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- Main
Dns List<string> - The list of addresses of the primary DNS servers.
- Management
Network Pulumi.VSphere. Inputs. Supervisor Management Network - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- Pod
Cidrs List<Pulumi.VSphere. Inputs. Supervisor Pod Cidr> - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- Search
Domains string - List of DNS search domains.
- Service
Cidr Pulumi.VSphere. Inputs. Supervisor Service Cidr - CIDR block from which Kubernetes allocates service cluster IP addresses.
- Sizing
Hint string - The size of the Kubernetes API server.
- Storage
Policy string - The name of the storage policy.
- Worker
Dns List<string> - The list of addresses of the DNS servers to use for the worker nodes.
- Namespaces
List<Pulumi.
VSphere. Inputs. Supervisor Namespace> - The list of namespaces to create in the Supervisor cluster
- Cluster string
- The identifier of the compute cluster.
- Content
Library string - The identifier of the subscribed content library.
- Dvs
Uuid string - The UUID of the distributed switch.
- Edge
Cluster string - The identifier of the NSX Edge Cluster.
- Egress
Cidrs []SupervisorEgress Cidr Args - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- Ingress
Cidrs []SupervisorIngress Cidr Args - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- Main
Dns []string - The list of addresses of the primary DNS servers.
- Management
Network SupervisorManagement Network Args - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- Pod
Cidrs []SupervisorPod Cidr Args - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- Search
Domains string - List of DNS search domains.
- Service
Cidr SupervisorService Cidr Args - CIDR block from which Kubernetes allocates service cluster IP addresses.
- Sizing
Hint string - The size of the Kubernetes API server.
- Storage
Policy string - The name of the storage policy.
- Worker
Dns []string - The list of addresses of the DNS servers to use for the worker nodes.
- Namespaces
[]Supervisor
Namespace Args - The list of namespaces to create in the Supervisor cluster
- cluster String
- The identifier of the compute cluster.
- content
Library String - The identifier of the subscribed content library.
- dvs
Uuid String - The UUID of the distributed switch.
- edge
Cluster String - The identifier of the NSX Edge Cluster.
- egress
Cidrs List<SupervisorEgress Cidr> - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- ingress
Cidrs List<SupervisorIngress Cidr> - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- main
Dns List<String> - The list of addresses of the primary DNS servers.
- management
Network SupervisorManagement Network - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- pod
Cidrs List<SupervisorPod Cidr> - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- search
Domains String - List of DNS search domains.
- service
Cidr SupervisorService Cidr - CIDR block from which Kubernetes allocates service cluster IP addresses.
- sizing
Hint String - The size of the Kubernetes API server.
- storage
Policy String - The name of the storage policy.
- worker
Dns List<String> - The list of addresses of the DNS servers to use for the worker nodes.
- namespaces
List<Supervisor
Namespace> - The list of namespaces to create in the Supervisor cluster
- cluster string
- The identifier of the compute cluster.
- content
Library string - The identifier of the subscribed content library.
- dvs
Uuid string - The UUID of the distributed switch.
- edge
Cluster string - The identifier of the NSX Edge Cluster.
- egress
Cidrs SupervisorEgress Cidr[] - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- ingress
Cidrs SupervisorIngress Cidr[] - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- main
Dns string[] - The list of addresses of the primary DNS servers.
- management
Network SupervisorManagement Network - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- pod
Cidrs SupervisorPod Cidr[] - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- search
Domains string - List of DNS search domains.
- service
Cidr SupervisorService Cidr - CIDR block from which Kubernetes allocates service cluster IP addresses.
- sizing
Hint string - The size of the Kubernetes API server.
- storage
Policy string - The name of the storage policy.
- worker
Dns string[] - The list of addresses of the DNS servers to use for the worker nodes.
- namespaces
Supervisor
Namespace[] - The list of namespaces to create in the Supervisor cluster
- cluster str
- The identifier of the compute cluster.
- content_
library str - The identifier of the subscribed content library.
- dvs_
uuid str - The UUID of the distributed switch.
- edge_
cluster str - The identifier of the NSX Edge Cluster.
- egress_
cidrs Sequence[SupervisorEgress Cidr Args] - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- ingress_
cidrs Sequence[SupervisorIngress Cidr Args] - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- main_
dns Sequence[str] - The list of addresses of the primary DNS servers.
- management_
network SupervisorManagement Network Args - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- pod_
cidrs Sequence[SupervisorPod Cidr Args] - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- search_
domains str - List of DNS search domains.
- service_
cidr SupervisorService Cidr Args - CIDR block from which Kubernetes allocates service cluster IP addresses.
- sizing_
hint str - The size of the Kubernetes API server.
- storage_
policy str - The name of the storage policy.
- worker_
dns Sequence[str] - The list of addresses of the DNS servers to use for the worker nodes.
- namespaces
Sequence[Supervisor
Namespace Args] - The list of namespaces to create in the Supervisor cluster
- cluster String
- The identifier of the compute cluster.
- content
Library String - The identifier of the subscribed content library.
- dvs
Uuid String - The UUID of the distributed switch.
- edge
Cluster String - The identifier of the NSX Edge Cluster.
- egress
Cidrs List<Property Map> - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- ingress
Cidrs List<Property Map> - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- main
Dns List<String> - The list of addresses of the primary DNS servers.
- management
Network Property Map - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- pod
Cidrs List<Property Map> - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- search
Domains String - List of DNS search domains.
- service
Cidr Property Map - CIDR block from which Kubernetes allocates service cluster IP addresses.
- sizing
Hint String - The size of the Kubernetes API server.
- storage
Policy String - The name of the storage policy.
- worker
Dns List<String> - The list of addresses of the DNS servers to use for the worker nodes.
- namespaces List<Property Map>
- The list of namespaces to create in the Supervisor cluster
Outputs
All input properties are implicitly available as output properties. Additionally, the Supervisor resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Supervisor Resource
Get an existing Supervisor resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SupervisorState, opts?: CustomResourceOptions): Supervisor
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster: Optional[str] = None,
content_library: Optional[str] = None,
dvs_uuid: Optional[str] = None,
edge_cluster: Optional[str] = None,
egress_cidrs: Optional[Sequence[SupervisorEgressCidrArgs]] = None,
ingress_cidrs: Optional[Sequence[SupervisorIngressCidrArgs]] = None,
main_dns: Optional[Sequence[str]] = None,
management_network: Optional[SupervisorManagementNetworkArgs] = None,
namespaces: Optional[Sequence[SupervisorNamespaceArgs]] = None,
pod_cidrs: Optional[Sequence[SupervisorPodCidrArgs]] = None,
search_domains: Optional[str] = None,
service_cidr: Optional[SupervisorServiceCidrArgs] = None,
sizing_hint: Optional[str] = None,
storage_policy: Optional[str] = None,
worker_dns: Optional[Sequence[str]] = None) -> Supervisor
func GetSupervisor(ctx *Context, name string, id IDInput, state *SupervisorState, opts ...ResourceOption) (*Supervisor, error)
public static Supervisor Get(string name, Input<string> id, SupervisorState? state, CustomResourceOptions? opts = null)
public static Supervisor get(String name, Output<String> id, SupervisorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster string
- The identifier of the compute cluster.
- Content
Library string - The identifier of the subscribed content library.
- Dvs
Uuid string - The UUID of the distributed switch.
- Edge
Cluster string - The identifier of the NSX Edge Cluster.
- Egress
Cidrs List<Pulumi.VSphere. Inputs. Supervisor Egress Cidr> - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- Ingress
Cidrs List<Pulumi.VSphere. Inputs. Supervisor Ingress Cidr> - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- Main
Dns List<string> - The list of addresses of the primary DNS servers.
- Management
Network Pulumi.VSphere. Inputs. Supervisor Management Network - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- Namespaces
List<Pulumi.
VSphere. Inputs. Supervisor Namespace> - The list of namespaces to create in the Supervisor cluster
- Pod
Cidrs List<Pulumi.VSphere. Inputs. Supervisor Pod Cidr> - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- Search
Domains string - List of DNS search domains.
- Service
Cidr Pulumi.VSphere. Inputs. Supervisor Service Cidr - CIDR block from which Kubernetes allocates service cluster IP addresses.
- Sizing
Hint string - The size of the Kubernetes API server.
- Storage
Policy string - The name of the storage policy.
- Worker
Dns List<string> - The list of addresses of the DNS servers to use for the worker nodes.
- Cluster string
- The identifier of the compute cluster.
- Content
Library string - The identifier of the subscribed content library.
- Dvs
Uuid string - The UUID of the distributed switch.
- Edge
Cluster string - The identifier of the NSX Edge Cluster.
- Egress
Cidrs []SupervisorEgress Cidr Args - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- Ingress
Cidrs []SupervisorIngress Cidr Args - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- Main
Dns []string - The list of addresses of the primary DNS servers.
- Management
Network SupervisorManagement Network Args - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- Namespaces
[]Supervisor
Namespace Args - The list of namespaces to create in the Supervisor cluster
- Pod
Cidrs []SupervisorPod Cidr Args - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- Search
Domains string - List of DNS search domains.
- Service
Cidr SupervisorService Cidr Args - CIDR block from which Kubernetes allocates service cluster IP addresses.
- Sizing
Hint string - The size of the Kubernetes API server.
- Storage
Policy string - The name of the storage policy.
- Worker
Dns []string - The list of addresses of the DNS servers to use for the worker nodes.
- cluster String
- The identifier of the compute cluster.
- content
Library String - The identifier of the subscribed content library.
- dvs
Uuid String - The UUID of the distributed switch.
- edge
Cluster String - The identifier of the NSX Edge Cluster.
- egress
Cidrs List<SupervisorEgress Cidr> - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- ingress
Cidrs List<SupervisorIngress Cidr> - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- main
Dns List<String> - The list of addresses of the primary DNS servers.
- management
Network SupervisorManagement Network - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- namespaces
List<Supervisor
Namespace> - The list of namespaces to create in the Supervisor cluster
- pod
Cidrs List<SupervisorPod Cidr> - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- search
Domains String - List of DNS search domains.
- service
Cidr SupervisorService Cidr - CIDR block from which Kubernetes allocates service cluster IP addresses.
- sizing
Hint String - The size of the Kubernetes API server.
- storage
Policy String - The name of the storage policy.
- worker
Dns List<String> - The list of addresses of the DNS servers to use for the worker nodes.
- cluster string
- The identifier of the compute cluster.
- content
Library string - The identifier of the subscribed content library.
- dvs
Uuid string - The UUID of the distributed switch.
- edge
Cluster string - The identifier of the NSX Edge Cluster.
- egress
Cidrs SupervisorEgress Cidr[] - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- ingress
Cidrs SupervisorIngress Cidr[] - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- main
Dns string[] - The list of addresses of the primary DNS servers.
- management
Network SupervisorManagement Network - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- namespaces
Supervisor
Namespace[] - The list of namespaces to create in the Supervisor cluster
- pod
Cidrs SupervisorPod Cidr[] - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- search
Domains string - List of DNS search domains.
- service
Cidr SupervisorService Cidr - CIDR block from which Kubernetes allocates service cluster IP addresses.
- sizing
Hint string - The size of the Kubernetes API server.
- storage
Policy string - The name of the storage policy.
- worker
Dns string[] - The list of addresses of the DNS servers to use for the worker nodes.
- cluster str
- The identifier of the compute cluster.
- content_
library str - The identifier of the subscribed content library.
- dvs_
uuid str - The UUID of the distributed switch.
- edge_
cluster str - The identifier of the NSX Edge Cluster.
- egress_
cidrs Sequence[SupervisorEgress Cidr Args] - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- ingress_
cidrs Sequence[SupervisorIngress Cidr Args] - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- main_
dns Sequence[str] - The list of addresses of the primary DNS servers.
- management_
network SupervisorManagement Network Args - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- namespaces
Sequence[Supervisor
Namespace Args] - The list of namespaces to create in the Supervisor cluster
- pod_
cidrs Sequence[SupervisorPod Cidr Args] - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- search_
domains str - List of DNS search domains.
- service_
cidr SupervisorService Cidr Args - CIDR block from which Kubernetes allocates service cluster IP addresses.
- sizing_
hint str - The size of the Kubernetes API server.
- storage_
policy str - The name of the storage policy.
- worker_
dns Sequence[str] - The list of addresses of the DNS servers to use for the worker nodes.
- cluster String
- The identifier of the compute cluster.
- content
Library String - The identifier of the subscribed content library.
- dvs
Uuid String - The UUID of the distributed switch.
- edge
Cluster String - The identifier of the NSX Edge Cluster.
- egress
Cidrs List<Property Map> - CIDR blocks from which NSX assigns IP addresses used for performing SNAT from container IPs to external IPs.
- ingress
Cidrs List<Property Map> - CIDR blocks from which NSX assigns IP addresses for Kubernetes Ingresses and Kubernetes Services of type LoadBalancer.
- main
Dns List<String> - The list of addresses of the primary DNS servers.
- management
Network Property Map - The configuration for the management network which the control plane VMs will be connected to.
network
- ID of the network. (e.g. a distributed port group).
starting_address
- Starting address of the management network range.
subnet_mask
- Subnet mask.
gateway
- Gateway IP address.
address_count
- Number of addresses to allocate. Starts fromstarting_address
- namespaces List<Property Map>
- The list of namespaces to create in the Supervisor cluster
- pod
Cidrs List<Property Map> - CIDR blocks from which Kubernetes allocates pod IP addresses. Minimum subnet size is 23.
- search
Domains String - List of DNS search domains.
- service
Cidr Property Map - CIDR block from which Kubernetes allocates service cluster IP addresses.
- sizing
Hint String - The size of the Kubernetes API server.
- storage
Policy String - The name of the storage policy.
- worker
Dns List<String> - The list of addresses of the DNS servers to use for the worker nodes.
Supporting Types
SupervisorEgressCidr, SupervisorEgressCidrArgs
SupervisorIngressCidr, SupervisorIngressCidrArgs
SupervisorManagementNetwork, SupervisorManagementNetworkArgs
- Address
Count int - Number of addresses to allocate. Starts from 'starting_address'
- Gateway string
- Gateway IP address.
- Network string
- ID of the network. (e.g. a distributed port group).
- Starting
Address string - Starting address of the management network range.
- Subnet
Mask string - Subnet mask.
- Address
Count int - Number of addresses to allocate. Starts from 'starting_address'
- Gateway string
- Gateway IP address.
- Network string
- ID of the network. (e.g. a distributed port group).
- Starting
Address string - Starting address of the management network range.
- Subnet
Mask string - Subnet mask.
- address
Count Integer - Number of addresses to allocate. Starts from 'starting_address'
- gateway String
- Gateway IP address.
- network String
- ID of the network. (e.g. a distributed port group).
- starting
Address String - Starting address of the management network range.
- subnet
Mask String - Subnet mask.
- address
Count number - Number of addresses to allocate. Starts from 'starting_address'
- gateway string
- Gateway IP address.
- network string
- ID of the network. (e.g. a distributed port group).
- starting
Address string - Starting address of the management network range.
- subnet
Mask string - Subnet mask.
- address_
count int - Number of addresses to allocate. Starts from 'starting_address'
- gateway str
- Gateway IP address.
- network str
- ID of the network. (e.g. a distributed port group).
- starting_
address str - Starting address of the management network range.
- subnet_
mask str - Subnet mask.
- address
Count Number - Number of addresses to allocate. Starts from 'starting_address'
- gateway String
- Gateway IP address.
- network String
- ID of the network. (e.g. a distributed port group).
- starting
Address String - Starting address of the management network range.
- subnet
Mask String - Subnet mask.
SupervisorNamespace, SupervisorNamespaceArgs
- Name string
- The name of the namespace.
- Content
Libraries List<string> - A list of content libraries.
- Vm
Classes List<string> - A list of virtual machine classes.
- Name string
- The name of the namespace.
- Content
Libraries []string - A list of content libraries.
- Vm
Classes []string - A list of virtual machine classes.
- name String
- The name of the namespace.
- content
Libraries List<String> - A list of content libraries.
- vm
Classes List<String> - A list of virtual machine classes.
- name string
- The name of the namespace.
- content
Libraries string[] - A list of content libraries.
- vm
Classes string[] - A list of virtual machine classes.
- name str
- The name of the namespace.
- content_
libraries Sequence[str] - A list of content libraries.
- vm_
classes Sequence[str] - A list of virtual machine classes.
- name String
- The name of the namespace.
- content
Libraries List<String> - A list of content libraries.
- vm
Classes List<String> - A list of virtual machine classes.
SupervisorPodCidr, SupervisorPodCidrArgs
SupervisorServiceCidr, SupervisorServiceCidrArgs
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.