Open Shift Cluster Args
data class OpenShiftClusterArgs(val apiserverProfile: Output<APIServerProfileArgs>? = null, val clusterProfile: Output<ClusterProfileArgs>? = null, val consoleProfile: Output<ConsoleProfileArgs>? = null, val ingressProfiles: Output<List<IngressProfileArgs>>? = null, val location: Output<String>? = null, val masterProfile: Output<MasterProfileArgs>? = null, val networkProfile: Output<NetworkProfileArgs>? = null, val provisioningState: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val servicePrincipalProfile: Output<ServicePrincipalProfileArgs>? = null, val tags: Output<Map<String, String>>? = null, val workerProfiles: Output<List<WorkerProfileArgs>>? = null) : ConvertibleToJava<OpenShiftClusterArgs>
OpenShiftCluster represents an Azure Red Hat OpenShift cluster. API Version: 2020-04-30.
Example Usage
Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var openShiftCluster = new AzureNative.RedHatOpenShift.OpenShiftCluster("openShiftCluster", new()
{
ApiserverProfile = new AzureNative.RedHatOpenShift.Inputs.APIServerProfileArgs
{
Visibility = "Public",
},
ClusterProfile = new AzureNative.RedHatOpenShift.Inputs.ClusterProfileArgs
{
Domain = "cluster.location.aroapp.io",
PullSecret = "{\"auths\":{\"registry.connect.redhat.com\":{\"auth\":\"\"},\"registry.redhat.io\":{\"auth\":\"\"}}}",
ResourceGroupId = "/subscriptions/subscriptionId/resourceGroups/clusterResourceGroup",
},
ConsoleProfile = null,
IngressProfiles = new[]
{
new AzureNative.RedHatOpenShift.Inputs.IngressProfileArgs
{
Name = "default",
Visibility = "Public",
},
},
Location = "location",
MasterProfile = new AzureNative.RedHatOpenShift.Inputs.MasterProfileArgs
{
SubnetId = "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/master",
VmSize = "Standard_D8s_v3",
},
NetworkProfile = new AzureNative.RedHatOpenShift.Inputs.NetworkProfileArgs
{
PodCidr = "10.128.0.0/14",
ServiceCidr = "172.30.0.0/16",
},
ResourceGroupName = "resourceGroup",
ResourceName = "resourceName",
ServicePrincipalProfile = new AzureNative.RedHatOpenShift.Inputs.ServicePrincipalProfileArgs
{
ClientId = "clientId",
ClientSecret = "clientSecret",
},
Tags =
{
{ "key", "value" },
},
WorkerProfiles = new[]
{
new AzureNative.RedHatOpenShift.Inputs.WorkerProfileArgs
{
Count = 3,
DiskSizeGB = 128,
Name = "worker",
SubnetId = "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/worker",
VmSize = "Standard_D2s_v3",
},
},
});
});
Content copied to clipboard
package main
import (
redhatopenshift "github.com/pulumi/pulumi-azure-native-sdk/redhatopenshift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redhatopenshift.NewOpenShiftCluster(ctx, "openShiftCluster", &redhatopenshift.OpenShiftClusterArgs{
ApiserverProfile: &redhatopenshift.APIServerProfileArgs{
Visibility: pulumi.String("Public"),
},
ClusterProfile: &redhatopenshift.ClusterProfileArgs{
Domain: pulumi.String("cluster.location.aroapp.io"),
PullSecret: pulumi.String("{\"auths\":{\"registry.connect.redhat.com\":{\"auth\":\"\"},\"registry.redhat.io\":{\"auth\":\"\"}}}"),
ResourceGroupId: pulumi.String("/subscriptions/subscriptionId/resourceGroups/clusterResourceGroup"),
},
ConsoleProfile: nil,
IngressProfiles: []redhatopenshift.IngressProfileArgs{
{
Name: pulumi.String("default"),
Visibility: pulumi.String("Public"),
},
},
Location: pulumi.String("location"),
MasterProfile: &redhatopenshift.MasterProfileArgs{
SubnetId: pulumi.String("/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/master"),
VmSize: pulumi.String("Standard_D8s_v3"),
},
NetworkProfile: &redhatopenshift.NetworkProfileArgs{
PodCidr: pulumi.String("10.128.0.0/14"),
ServiceCidr: pulumi.String("172.30.0.0/16"),
},
ResourceGroupName: pulumi.String("resourceGroup"),
ResourceName: pulumi.String("resourceName"),
ServicePrincipalProfile: &redhatopenshift.ServicePrincipalProfileArgs{
ClientId: pulumi.String("clientId"),
ClientSecret: pulumi.String("clientSecret"),
},
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
},
WorkerProfiles: []redhatopenshift.WorkerProfileArgs{
{
Count: pulumi.Int(3),
DiskSizeGB: pulumi.Int(128),
Name: pulumi.String("worker"),
SubnetId: pulumi.String("/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/worker"),
VmSize: pulumi.String("Standard_D2s_v3"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.redhatopenshift.OpenShiftCluster;
import com.pulumi.azurenative.redhatopenshift.OpenShiftClusterArgs;
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 openShiftCluster = new OpenShiftCluster("openShiftCluster", OpenShiftClusterArgs.builder()
.apiserverProfile(Map.of("visibility", "Public"))
.clusterProfile(Map.ofEntries(
Map.entry("domain", "cluster.location.aroapp.io"),
Map.entry("pullSecret", "{\"auths\":{\"registry.connect.redhat.com\":{\"auth\":\"\"},\"registry.redhat.io\":{\"auth\":\"\"}}}"),
Map.entry("resourceGroupId", "/subscriptions/subscriptionId/resourceGroups/clusterResourceGroup")
))
.consoleProfile()
.ingressProfiles(Map.ofEntries(
Map.entry("name", "default"),
Map.entry("visibility", "Public")
))
.location("location")
.masterProfile(Map.ofEntries(
Map.entry("subnetId", "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/master"),
Map.entry("vmSize", "Standard_D8s_v3")
))
.networkProfile(Map.ofEntries(
Map.entry("podCidr", "10.128.0.0/14"),
Map.entry("serviceCidr", "172.30.0.0/16")
))
.resourceGroupName("resourceGroup")
.resourceName("resourceName")
.servicePrincipalProfile(Map.ofEntries(
Map.entry("clientId", "clientId"),
Map.entry("clientSecret", "clientSecret")
))
.tags(Map.of("key", "value"))
.workerProfiles(Map.ofEntries(
Map.entry("count", 3),
Map.entry("diskSizeGB", 128),
Map.entry("name", "worker"),
Map.entry("subnetId", "/subscriptions/subscriptionId/resourceGroups/vnetResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet/subnets/worker"),
Map.entry("vmSize", "Standard_D2s_v3")
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:redhatopenshift:OpenShiftCluster resourceName /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.RedHatOpenShift/OpenShiftClusters/resourceName
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(apiserverProfile: Output<APIServerProfileArgs>? = null, clusterProfile: Output<ClusterProfileArgs>? = null, consoleProfile: Output<ConsoleProfileArgs>? = null, ingressProfiles: Output<List<IngressProfileArgs>>? = null, location: Output<String>? = null, masterProfile: Output<MasterProfileArgs>? = null, networkProfile: Output<NetworkProfileArgs>? = null, provisioningState: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, servicePrincipalProfile: Output<ServicePrincipalProfileArgs>? = null, tags: Output<Map<String, String>>? = null, workerProfiles: Output<List<WorkerProfileArgs>>? = null)
Properties
Link copied to clipboard
The cluster API server profile.
Link copied to clipboard
The cluster profile.
Link copied to clipboard
The console profile.
Link copied to clipboard
The cluster ingress profiles.
Link copied to clipboard
The cluster master profile.
Link copied to clipboard
The cluster network profile.
Link copied to clipboard
The cluster provisioning state (immutable).
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
The name of the OpenShift cluster resource.
Link copied to clipboard
The cluster service principal profile.
Link copied to clipboard
The cluster worker profiles.