Class ClusterTemplate


  • public class ClusterTemplate
    extends com.pulumi.resources.CustomResource
    Manages a V1 Magnum cluster template resource within OpenStack. ## Example Usage ### Create a Cluster template ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.containerinfra.ClusterTemplate; import com.pulumi.openstack.containerinfra.ClusterTemplateArgs; 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 clustertemplate1 = new ClusterTemplate("clustertemplate1", ClusterTemplateArgs.builder() .coe("kubernetes") .dnsNameserver("1.1.1.1") .dockerStorageDriver("devicemapper") .dockerVolumeSize(10) .flavor("m1.small") .floatingIpEnabled(false) .image("Fedora-Atomic-27") .labels(Map.ofEntries( Map.entry("influx_grafana_dashboard_enabled", "true"), Map.entry("kube_dashboard_enabled", "true"), Map.entry("kube_tag", "1.11.1"), Map.entry("prometheus_monitoring", "true") )) .masterFlavor("m1.medium") .masterLbEnabled(true) .networkDriver("flannel") .serverType("vm") .volumeDriver("cinder") .build()); } } ``` ## Attributes reference The following attributes are exported: * `region` - See Argument Reference above. * `name` - See Argument Reference above. * `project_id` - See Argument Reference above. * `created_at` - The time at which cluster template was created. * `updated_at` - The time at which cluster template was created. * `apiserver_port` - See Argument Reference above. * `coe` - See Argument Reference above. * `cluster_distro` - See Argument Reference above. * `dns_nameserver` - See Argument Reference above. * `docker_storage_driver` - See Argument Reference above. * `docker_volume_size` - See Argument Reference above. * `external_network_id` - See Argument Reference above. * `fixed_network` - See Argument Reference above. * `fixed_subnet` - See Argument Reference above. * `flavor` - See Argument Reference above. * `master_flavor` - See Argument Reference above. * `floating_ip_enabled` - See Argument Reference above. * `http_proxy` - See Argument Reference above. * `https_proxy` - See Argument Reference above. * `image` - See Argument Reference above. * `insecure_registry` - See Argument Reference above. * `keypair_id` - See Argument Reference above. * `labels` - See Argument Reference above. * `links` - A list containing associated cluster template links. * `master_lb_enabled` - See Argument Reference above. * `network_driver` - See Argument Reference above. * `no_proxy` - See Argument Reference above. * `public` - See Argument Reference above. * `registry_enabled` - See Argument Reference above. * `server_type` - See Argument Reference above. * `tls_disabled` - See Argument Reference above. * `volume_driver` - See Argument Reference above. * `hidden` - See Argument Reference above. ## Import Cluster templates can be imported using the `id`, e.g. ```sh $ pulumi import openstack:containerinfra/clusterTemplate:ClusterTemplate clustertemplate_1 b9a45c5c-cd03-4958-82aa-b80bf93cb922 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> apiserverPort()  
      com.pulumi.core.Output<java.lang.String> clusterDistro()  
      com.pulumi.core.Output<java.lang.String> coe()  
      com.pulumi.core.Output<java.lang.String> createdAt()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> dnsNameserver()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> dockerStorageDriver()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> dockerVolumeSize()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> externalNetworkId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> fixedNetwork()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> fixedSubnet()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> flavor()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> floatingIpEnabled()  
      static ClusterTemplate get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ClusterTemplateState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> hidden()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> httpProxy()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> httpsProxy()  
      com.pulumi.core.Output<java.lang.String> image()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> insecureRegistry()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> keypairId()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> labels()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> masterFlavor()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> masterLbEnabled()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.lang.String> networkDriver()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> noProxy()  
      com.pulumi.core.Output<java.lang.String> projectId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> public_()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> registryEnabled()  
      com.pulumi.core.Output<java.lang.String> serverType()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> tlsDisabled()  
      com.pulumi.core.Output<java.lang.String> updatedAt()  
      com.pulumi.core.Output<java.lang.String> userId()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> volumeDriver()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClusterTemplate

        public ClusterTemplate​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • ClusterTemplate

        public ClusterTemplate​(java.lang.String name,
                               ClusterTemplateArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • ClusterTemplate

        public ClusterTemplate​(java.lang.String name,
                               ClusterTemplateArgs args,
                               @Nullable
                               com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • apiserverPort

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> apiserverPort()
        Returns:
        The API server port for the Container Orchestration Engine for this cluster template. Changing this updates the API server port of the existing cluster template.
      • clusterDistro

        public com.pulumi.core.Output<java.lang.String> clusterDistro()
        Returns:
        The distro for the cluster (fedora-atomic, coreos, etc.). Changing this updates the cluster distro of the existing cluster template.
      • coe

        public com.pulumi.core.Output<java.lang.String> coe()
        Returns:
        The Container Orchestration Engine for this cluster template. Changing this updates the engine of the existing cluster template.
      • createdAt

        public com.pulumi.core.Output<java.lang.String> createdAt()
      • dnsNameserver

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> dnsNameserver()
        Returns:
        Address of the DNS nameserver that is used in nodes of the cluster. Changing this updates the DNS nameserver of the existing cluster template.
      • dockerStorageDriver

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> dockerStorageDriver()
        Returns:
        Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
      • dockerVolumeSize

        public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> dockerVolumeSize()
        Returns:
        The size (in GB) of the Docker volume. Changing this updates the Docker volume size of the existing cluster template.
      • externalNetworkId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> externalNetworkId()
        Returns:
        The ID of the external network that will be used for the cluster. Changing this updates the external network ID of the existing cluster template.
      • fixedNetwork

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> fixedNetwork()
        Returns:
        The fixed network that will be attached to the cluster. Changing this updates the fixed network of the existing cluster template.
      • fixedSubnet

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> fixedSubnet()
        Returns:
        The fixed subnet that will be attached to the cluster. Changing this updates the fixed subnet of the existing cluster template.
      • flavor

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> flavor()
        Returns:
        The flavor for the nodes of the cluster. Can be set via the `OS_MAGNUM_FLAVOR` environment variable. Changing this updates the flavor of the existing cluster template.
      • floatingIpEnabled

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> floatingIpEnabled()
        Returns:
        Indicates whether created cluster should create floating IP for every node or not. Changing this updates the floating IP enabled attribute of the existing cluster template.
      • hidden

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> hidden()
        Returns:
        Indicates whether the ClusterTemplate is hidden or not. Changing this updates the hidden attribute of the existing cluster template.
      • httpProxy

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> httpProxy()
        Returns:
        The address of a proxy for receiving all HTTP requests and relay them. Changing this updates the HTTP proxy address of the existing cluster template.
      • httpsProxy

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> httpsProxy()
        Returns:
        The address of a proxy for receiving all HTTPS requests and relay them. Changing this updates the HTTPS proxy address of the existing cluster template.
      • image

        public com.pulumi.core.Output<java.lang.String> image()
        Returns:
        The reference to an image that is used for nodes of the cluster. Can be set via the `OS_MAGNUM_IMAGE` environment variable. Changing this updates the image attribute of the existing cluster template.
      • insecureRegistry

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> insecureRegistry()
        Returns:
        The insecure registry URL for the cluster template. Changing this updates the insecure registry attribute of the existing cluster template.
      • keypairId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> keypairId()
        Returns:
        The name of the Compute service SSH keypair. Changing this updates the keypair of the existing cluster template.
      • labels

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.Object>>> labels()
        Returns:
        The list of key value pairs representing additional properties of the cluster template. Changing this updates the labels of the existing cluster template.
      • masterFlavor

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> masterFlavor()
        Returns:
        The flavor for the master nodes. Can be set via the `OS_MAGNUM_MASTER_FLAVOR` environment variable. Changing this updates the master flavor of the existing cluster template.
      • masterLbEnabled

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> masterLbEnabled()
        Returns:
        Indicates whether created cluster should has a loadbalancer for master nodes or not. Changing this updates the attribute of the existing cluster template.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        The name of the cluster template. Changing this updates the name of the existing cluster template.
      • networkDriver

        public com.pulumi.core.Output<java.lang.String> networkDriver()
        Returns:
        The name of the driver for the container network. Changing this updates the network driver of the existing cluster template.
      • noProxy

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> noProxy()
        Returns:
        A comma-separated list of IP addresses that shouldn't be used in the cluster. Changing this updates the no proxy list of the existing cluster template.
      • projectId

        public com.pulumi.core.Output<java.lang.String> projectId()
        Returns:
        The project of the cluster template. Required if admin wants to create a cluster template in another project. Changing this creates a new cluster template.
      • public_

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> public_()
        Returns:
        Indicates whether cluster template should be public. Changing this updates the public attribute of the existing cluster template.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        The region in which to obtain the V1 Container Infra client. A Container Infra client is needed to create a cluster template. If omitted,the `region` argument of the provider is used. Changing this creates a new cluster template.
      • registryEnabled

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> registryEnabled()
        Returns:
        Indicates whether Docker registry is enabled in the cluster. Changing this updates the registry enabled attribute of the existing cluster template.
      • serverType

        public com.pulumi.core.Output<java.lang.String> serverType()
        Returns:
        The server type for the cluster template. Changing this updates the server type of the existing cluster template.
      • tlsDisabled

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> tlsDisabled()
        Returns:
        Indicates whether the TLS should be disabled in the cluster. Changing this updates the attribute of the existing cluster.
      • updatedAt

        public com.pulumi.core.Output<java.lang.String> updatedAt()
      • userId

        public com.pulumi.core.Output<java.lang.String> userId()
        Returns:
        The user of the cluster template. Required if admin wants to create a cluster template for another user. Changing this creates a new cluster template.
      • volumeDriver

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> volumeDriver()
        Returns:
        The name of the driver that is used for the volumes of the cluster nodes. Changing this updates the volume driver of the existing cluster template.
      • get

        public static ClusterTemplate get​(java.lang.String name,
                                          com.pulumi.core.Output<java.lang.String> id,
                                          @Nullable
                                          ClusterTemplateState state,
                                          @Nullable
                                          com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.