com.pulumi.gcp.gkeonprem.kotlin.BareMetalAdminClusterArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.gkeonprem.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.BareMetalAdminClusterArgs.builder
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterClusterOperationsArgs
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterClusterOperationsArgsBuilder
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterControlPlaneArgs
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterControlPlaneArgsBuilder
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterLoadBalancerArgs
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterLoadBalancerArgsBuilder
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterMaintenanceConfigArgs
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterMaintenanceConfigArgsBuilder
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterNetworkConfigArgs
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterNetworkConfigArgsBuilder
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterNodeAccessConfigArgs
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterNodeAccessConfigArgsBuilder
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterNodeConfigArgs
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterNodeConfigArgsBuilder
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterProxyArgs
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterProxyArgsBuilder
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterSecurityConfigArgs
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterSecurityConfigArgsBuilder
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterStorageArgs
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterStorageArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A Google Bare Metal Admin Cluster.
* ## Example Usage
* ### Gkeonprem Bare Metal Admin Cluster Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const admin_cluster_basic = new gcp.gkeonprem.BareMetalAdminCluster("admin-cluster-basic", {
* name: "my-cluster",
* location: "us-west1",
* bareMetalVersion: "1.13.4",
* networkConfig: {
* islandModeCidr: {
* serviceAddressCidrBlocks: ["172.26.0.0/16"],
* podAddressCidrBlocks: ["10.240.0.0/13"],
* },
* },
* nodeConfig: {
* maxPodsPerNode: 250,
* },
* controlPlane: {
* controlPlaneNodePoolConfig: {
* nodePoolConfig: {
* labels: {},
* operatingSystem: "LINUX",
* nodeConfigs: [
* {
* labels: {},
* nodeIp: "10.200.0.2",
* },
* {
* labels: {},
* nodeIp: "10.200.0.3",
* },
* {
* labels: {},
* nodeIp: "10.200.0.4",
* },
* ],
* },
* },
* },
* loadBalancer: {
* portConfig: {
* controlPlaneLoadBalancerPort: 443,
* },
* vipConfig: {
* controlPlaneVip: "10.200.0.5",
* },
* },
* storage: {
* lvpShareConfig: {
* lvpConfig: {
* path: "/mnt/localpv-share",
* storageClass: "local-shared",
* },
* sharedPathPvCount: 5,
* },
* lvpNodeMountsConfig: {
* path: "/mnt/localpv-disk",
* storageClass: "local-disks",
* },
* },
* nodeAccessConfig: {
* loginUser: "root",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* admin_cluster_basic = gcp.gkeonprem.BareMetalAdminCluster("admin-cluster-basic",
* name="my-cluster",
* location="us-west1",
* bare_metal_version="1.13.4",
* network_config=gcp.gkeonprem.BareMetalAdminClusterNetworkConfigArgs(
* island_mode_cidr=gcp.gkeonprem.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs(
* service_address_cidr_blocks=["172.26.0.0/16"],
* pod_address_cidr_blocks=["10.240.0.0/13"],
* ),
* ),
* node_config=gcp.gkeonprem.BareMetalAdminClusterNodeConfigArgs(
* max_pods_per_node=250,
* ),
* control_plane=gcp.gkeonprem.BareMetalAdminClusterControlPlaneArgs(
* control_plane_node_pool_config=gcp.gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs(
* node_pool_config=gcp.gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs(
* labels={},
* operating_system="LINUX",
* node_configs=[
* gcp.gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs(
* labels={},
* node_ip="10.200.0.2",
* ),
* gcp.gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs(
* labels={},
* node_ip="10.200.0.3",
* ),
* gcp.gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs(
* labels={},
* node_ip="10.200.0.4",
* ),
* ],
* ),
* ),
* ),
* load_balancer=gcp.gkeonprem.BareMetalAdminClusterLoadBalancerArgs(
* port_config=gcp.gkeonprem.BareMetalAdminClusterLoadBalancerPortConfigArgs(
* control_plane_load_balancer_port=443,
* ),
* vip_config=gcp.gkeonprem.BareMetalAdminClusterLoadBalancerVipConfigArgs(
* control_plane_vip="10.200.0.5",
* ),
* ),
* storage=gcp.gkeonprem.BareMetalAdminClusterStorageArgs(
* lvp_share_config=gcp.gkeonprem.BareMetalAdminClusterStorageLvpShareConfigArgs(
* lvp_config=gcp.gkeonprem.BareMetalAdminClusterStorageLvpShareConfigLvpConfigArgs(
* path="/mnt/localpv-share",
* storage_class="local-shared",
* ),
* shared_path_pv_count=5,
* ),
* lvp_node_mounts_config=gcp.gkeonprem.BareMetalAdminClusterStorageLvpNodeMountsConfigArgs(
* path="/mnt/localpv-disk",
* storage_class="local-disks",
* ),
* ),
* node_access_config=gcp.gkeonprem.BareMetalAdminClusterNodeAccessConfigArgs(
* login_user="root",
* ))
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var admin_cluster_basic = new Gcp.GkeOnPrem.BareMetalAdminCluster("admin-cluster-basic", new()
* {
* Name = "my-cluster",
* Location = "us-west1",
* BareMetalVersion = "1.13.4",
* NetworkConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterNetworkConfigArgs
* {
* IslandModeCidr = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs
* {
* ServiceAddressCidrBlocks = new[]
* {
* "172.26.0.0/16",
* },
* PodAddressCidrBlocks = new[]
* {
* "10.240.0.0/13",
* },
* },
* },
* NodeConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterNodeConfigArgs
* {
* MaxPodsPerNode = 250,
* },
* ControlPlane = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneArgs
* {
* ControlPlaneNodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs
* {
* NodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs
* {
* Labels = null,
* OperatingSystem = "LINUX",
* NodeConfigs = new[]
* {
* new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs
* {
* Labels = null,
* NodeIp = "10.200.0.2",
* },
* new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs
* {
* Labels = null,
* NodeIp = "10.200.0.3",
* },
* new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs
* {
* Labels = null,
* NodeIp = "10.200.0.4",
* },
* },
* },
* },
* },
* LoadBalancer = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterLoadBalancerArgs
* {
* PortConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterLoadBalancerPortConfigArgs
* {
* ControlPlaneLoadBalancerPort = 443,
* },
* VipConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterLoadBalancerVipConfigArgs
* {
* ControlPlaneVip = "10.200.0.5",
* },
* },
* Storage = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterStorageArgs
* {
* LvpShareConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterStorageLvpShareConfigArgs
* {
* LvpConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterStorageLvpShareConfigLvpConfigArgs
* {
* Path = "/mnt/localpv-share",
* StorageClass = "local-shared",
* },
* SharedPathPvCount = 5,
* },
* LvpNodeMountsConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterStorageLvpNodeMountsConfigArgs
* {
* Path = "/mnt/localpv-disk",
* StorageClass = "local-disks",
* },
* },
* NodeAccessConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterNodeAccessConfigArgs
* {
* LoginUser = "root",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/gkeonprem"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := gkeonprem.NewBareMetalAdminCluster(ctx, "admin-cluster-basic", &gkeonprem.BareMetalAdminClusterArgs{
* Name: pulumi.String("my-cluster"),
* Location: pulumi.String("us-west1"),
* BareMetalVersion: pulumi.String("1.13.4"),
* NetworkConfig: &gkeonprem.BareMetalAdminClusterNetworkConfigArgs{
* IslandModeCidr: &gkeonprem.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs{
* ServiceAddressCidrBlocks: pulumi.StringArray{
* pulumi.String("172.26.0.0/16"),
* },
* PodAddressCidrBlocks: pulumi.StringArray{
* pulumi.String("10.240.0.0/13"),
* },
* },
* },
* NodeConfig: &gkeonprem.BareMetalAdminClusterNodeConfigArgs{
* MaxPodsPerNode: pulumi.Int(250),
* },
* ControlPlane: &gkeonprem.BareMetalAdminClusterControlPlaneArgs{
* ControlPlaneNodePoolConfig: &gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs{
* NodePoolConfig: &gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs{
* Labels: nil,
* OperatingSystem: pulumi.String("LINUX"),
* NodeConfigs: gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArray{
* &gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs{
* Labels: nil,
* NodeIp: pulumi.String("10.200.0.2"),
* },
* &gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs{
* Labels: nil,
* NodeIp: pulumi.String("10.200.0.3"),
* },
* &gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs{
* Labels: nil,
* NodeIp: pulumi.String("10.200.0.4"),
* },
* },
* },
* },
* },
* LoadBalancer: &gkeonprem.BareMetalAdminClusterLoadBalancerArgs{
* PortConfig: &gkeonprem.BareMetalAdminClusterLoadBalancerPortConfigArgs{
* ControlPlaneLoadBalancerPort: pulumi.Int(443),
* },
* VipConfig: &gkeonprem.BareMetalAdminClusterLoadBalancerVipConfigArgs{
* ControlPlaneVip: pulumi.String("10.200.0.5"),
* },
* },
* Storage: &gkeonprem.BareMetalAdminClusterStorageArgs{
* LvpShareConfig: &gkeonprem.BareMetalAdminClusterStorageLvpShareConfigArgs{
* LvpConfig: &gkeonprem.BareMetalAdminClusterStorageLvpShareConfigLvpConfigArgs{
* Path: pulumi.String("/mnt/localpv-share"),
* StorageClass: pulumi.String("local-shared"),
* },
* SharedPathPvCount: pulumi.Int(5),
* },
* LvpNodeMountsConfig: &gkeonprem.BareMetalAdminClusterStorageLvpNodeMountsConfigArgs{
* Path: pulumi.String("/mnt/localpv-disk"),
* StorageClass: pulumi.String("local-disks"),
* },
* },
* NodeAccessConfig: &gkeonprem.BareMetalAdminClusterNodeAccessConfigArgs{
* LoginUser: pulumi.String("root"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.gkeonprem.BareMetalAdminCluster;
* import com.pulumi.gcp.gkeonprem.BareMetalAdminClusterArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterNetworkConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterNodeConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterControlPlaneArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterLoadBalancerArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterLoadBalancerPortConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterLoadBalancerVipConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterStorageArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterStorageLvpShareConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterStorageLvpShareConfigLvpConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterStorageLvpNodeMountsConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterNodeAccessConfigArgs;
* 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 admin_cluster_basic = new BareMetalAdminCluster("admin-cluster-basic", BareMetalAdminClusterArgs.builder()
* .name("my-cluster")
* .location("us-west1")
* .bareMetalVersion("1.13.4")
* .networkConfig(BareMetalAdminClusterNetworkConfigArgs.builder()
* .islandModeCidr(BareMetalAdminClusterNetworkConfigIslandModeCidrArgs.builder()
* .serviceAddressCidrBlocks("172.26.0.0/16")
* .podAddressCidrBlocks("10.240.0.0/13")
* .build())
* .build())
* .nodeConfig(BareMetalAdminClusterNodeConfigArgs.builder()
* .maxPodsPerNode(250)
* .build())
* .controlPlane(BareMetalAdminClusterControlPlaneArgs.builder()
* .controlPlaneNodePoolConfig(BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs.builder()
* .nodePoolConfig(BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs.builder()
* .labels()
* .operatingSystem("LINUX")
* .nodeConfigs(
* BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs.builder()
* .labels()
* .nodeIp("10.200.0.2")
* .build(),
* BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs.builder()
* .labels()
* .nodeIp("10.200.0.3")
* .build(),
* BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs.builder()
* .labels()
* .nodeIp("10.200.0.4")
* .build())
* .build())
* .build())
* .build())
* .loadBalancer(BareMetalAdminClusterLoadBalancerArgs.builder()
* .portConfig(BareMetalAdminClusterLoadBalancerPortConfigArgs.builder()
* .controlPlaneLoadBalancerPort(443)
* .build())
* .vipConfig(BareMetalAdminClusterLoadBalancerVipConfigArgs.builder()
* .controlPlaneVip("10.200.0.5")
* .build())
* .build())
* .storage(BareMetalAdminClusterStorageArgs.builder()
* .lvpShareConfig(BareMetalAdminClusterStorageLvpShareConfigArgs.builder()
* .lvpConfig(BareMetalAdminClusterStorageLvpShareConfigLvpConfigArgs.builder()
* .path("/mnt/localpv-share")
* .storageClass("local-shared")
* .build())
* .sharedPathPvCount(5)
* .build())
* .lvpNodeMountsConfig(BareMetalAdminClusterStorageLvpNodeMountsConfigArgs.builder()
* .path("/mnt/localpv-disk")
* .storageClass("local-disks")
* .build())
* .build())
* .nodeAccessConfig(BareMetalAdminClusterNodeAccessConfigArgs.builder()
* .loginUser("root")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* admin-cluster-basic:
* type: gcp:gkeonprem:BareMetalAdminCluster
* properties:
* name: my-cluster
* location: us-west1
* bareMetalVersion: 1.13.4
* networkConfig:
* islandModeCidr:
* serviceAddressCidrBlocks:
* - 172.26.0.0/16
* podAddressCidrBlocks:
* - 10.240.0.0/13
* nodeConfig:
* maxPodsPerNode: 250
* controlPlane:
* controlPlaneNodePoolConfig:
* nodePoolConfig:
* labels: {}
* operatingSystem: LINUX
* nodeConfigs:
* - labels: {}
* nodeIp: 10.200.0.2
* - labels: {}
* nodeIp: 10.200.0.3
* - labels: {}
* nodeIp: 10.200.0.4
* loadBalancer:
* portConfig:
* controlPlaneLoadBalancerPort: 443
* vipConfig:
* controlPlaneVip: 10.200.0.5
* storage:
* lvpShareConfig:
* lvpConfig:
* path: /mnt/localpv-share
* storageClass: local-shared
* sharedPathPvCount: 5
* lvpNodeMountsConfig:
* path: /mnt/localpv-disk
* storageClass: local-disks
* nodeAccessConfig:
* loginUser: root
* ```
*
* ### Gkeonprem Bare Metal Admin Cluster Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const admin_cluster_basic = new gcp.gkeonprem.BareMetalAdminCluster("admin-cluster-basic", {
* name: "my-cluster",
* location: "us-west1",
* description: "test description",
* bareMetalVersion: "1.13.4",
* annotations: {
* env: "test",
* },
* networkConfig: {
* islandModeCidr: {
* serviceAddressCidrBlocks: ["172.26.0.0/16"],
* podAddressCidrBlocks: ["10.240.0.0/13"],
* },
* },
* nodeConfig: {
* maxPodsPerNode: 250,
* },
* controlPlane: {
* controlPlaneNodePoolConfig: {
* nodePoolConfig: {
* labels: {},
* operatingSystem: "LINUX",
* nodeConfigs: [
* {
* labels: {},
* nodeIp: "10.200.0.2",
* },
* {
* labels: {},
* nodeIp: "10.200.0.3",
* },
* {
* labels: {},
* nodeIp: "10.200.0.4",
* },
* ],
* taints: [{
* key: "test-key",
* value: "test-value",
* effect: "NO_EXECUTE",
* }],
* },
* },
* apiServerArgs: [{
* argument: "test argument",
* value: "test value",
* }],
* },
* loadBalancer: {
* portConfig: {
* controlPlaneLoadBalancerPort: 443,
* },
* vipConfig: {
* controlPlaneVip: "10.200.0.5",
* },
* manualLbConfig: {
* enabled: true,
* },
* },
* storage: {
* lvpShareConfig: {
* lvpConfig: {
* path: "/mnt/localpv-share",
* storageClass: "local-shared",
* },
* sharedPathPvCount: 5,
* },
* lvpNodeMountsConfig: {
* path: "/mnt/localpv-disk",
* storageClass: "local-disks",
* },
* },
* nodeAccessConfig: {
* loginUser: "root",
* },
* securityConfig: {
* authorization: {
* adminUsers: [{
* username: "[email protected]",
* }],
* },
* },
* maintenanceConfig: {
* maintenanceAddressCidrBlocks: [
* "10.0.0.1/32",
* "10.0.0.2/32",
* ],
* },
* clusterOperations: {
* enableApplicationLogs: true,
* },
* proxy: {
* uri: "test proxy uri",
* noProxies: ["127.0.0.1"],
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* admin_cluster_basic = gcp.gkeonprem.BareMetalAdminCluster("admin-cluster-basic",
* name="my-cluster",
* location="us-west1",
* description="test description",
* bare_metal_version="1.13.4",
* annotations={
* "env": "test",
* },
* network_config=gcp.gkeonprem.BareMetalAdminClusterNetworkConfigArgs(
* island_mode_cidr=gcp.gkeonprem.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs(
* service_address_cidr_blocks=["172.26.0.0/16"],
* pod_address_cidr_blocks=["10.240.0.0/13"],
* ),
* ),
* node_config=gcp.gkeonprem.BareMetalAdminClusterNodeConfigArgs(
* max_pods_per_node=250,
* ),
* control_plane=gcp.gkeonprem.BareMetalAdminClusterControlPlaneArgs(
* control_plane_node_pool_config=gcp.gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs(
* node_pool_config=gcp.gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs(
* labels={},
* operating_system="LINUX",
* node_configs=[
* gcp.gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs(
* labels={},
* node_ip="10.200.0.2",
* ),
* gcp.gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs(
* labels={},
* node_ip="10.200.0.3",
* ),
* gcp.gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs(
* labels={},
* node_ip="10.200.0.4",
* ),
* ],
* taints=[gcp.gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgs(
* key="test-key",
* value="test-value",
* effect="NO_EXECUTE",
* )],
* ),
* ),
* api_server_args=[gcp.gkeonprem.BareMetalAdminClusterControlPlaneApiServerArgArgs(
* argument="test argument",
* value="test value",
* )],
* ),
* load_balancer=gcp.gkeonprem.BareMetalAdminClusterLoadBalancerArgs(
* port_config=gcp.gkeonprem.BareMetalAdminClusterLoadBalancerPortConfigArgs(
* control_plane_load_balancer_port=443,
* ),
* vip_config=gcp.gkeonprem.BareMetalAdminClusterLoadBalancerVipConfigArgs(
* control_plane_vip="10.200.0.5",
* ),
* manual_lb_config=gcp.gkeonprem.BareMetalAdminClusterLoadBalancerManualLbConfigArgs(
* enabled=True,
* ),
* ),
* storage=gcp.gkeonprem.BareMetalAdminClusterStorageArgs(
* lvp_share_config=gcp.gkeonprem.BareMetalAdminClusterStorageLvpShareConfigArgs(
* lvp_config=gcp.gkeonprem.BareMetalAdminClusterStorageLvpShareConfigLvpConfigArgs(
* path="/mnt/localpv-share",
* storage_class="local-shared",
* ),
* shared_path_pv_count=5,
* ),
* lvp_node_mounts_config=gcp.gkeonprem.BareMetalAdminClusterStorageLvpNodeMountsConfigArgs(
* path="/mnt/localpv-disk",
* storage_class="local-disks",
* ),
* ),
* node_access_config=gcp.gkeonprem.BareMetalAdminClusterNodeAccessConfigArgs(
* login_user="root",
* ),
* security_config=gcp.gkeonprem.BareMetalAdminClusterSecurityConfigArgs(
* authorization=gcp.gkeonprem.BareMetalAdminClusterSecurityConfigAuthorizationArgs(
* admin_users=[gcp.gkeonprem.BareMetalAdminClusterSecurityConfigAuthorizationAdminUserArgs(
* username="[email protected]",
* )],
* ),
* ),
* maintenance_config=gcp.gkeonprem.BareMetalAdminClusterMaintenanceConfigArgs(
* maintenance_address_cidr_blocks=[
* "10.0.0.1/32",
* "10.0.0.2/32",
* ],
* ),
* cluster_operations=gcp.gkeonprem.BareMetalAdminClusterClusterOperationsArgs(
* enable_application_logs=True,
* ),
* proxy=gcp.gkeonprem.BareMetalAdminClusterProxyArgs(
* uri="test proxy uri",
* no_proxies=["127.0.0.1"],
* ))
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var admin_cluster_basic = new Gcp.GkeOnPrem.BareMetalAdminCluster("admin-cluster-basic", new()
* {
* Name = "my-cluster",
* Location = "us-west1",
* Description = "test description",
* BareMetalVersion = "1.13.4",
* Annotations =
* {
* { "env", "test" },
* },
* NetworkConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterNetworkConfigArgs
* {
* IslandModeCidr = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs
* {
* ServiceAddressCidrBlocks = new[]
* {
* "172.26.0.0/16",
* },
* PodAddressCidrBlocks = new[]
* {
* "10.240.0.0/13",
* },
* },
* },
* NodeConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterNodeConfigArgs
* {
* MaxPodsPerNode = 250,
* },
* ControlPlane = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneArgs
* {
* ControlPlaneNodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs
* {
* NodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs
* {
* Labels = null,
* OperatingSystem = "LINUX",
* NodeConfigs = new[]
* {
* new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs
* {
* Labels = null,
* NodeIp = "10.200.0.2",
* },
* new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs
* {
* Labels = null,
* NodeIp = "10.200.0.3",
* },
* new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs
* {
* Labels = null,
* NodeIp = "10.200.0.4",
* },
* },
* Taints = new[]
* {
* new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgs
* {
* Key = "test-key",
* Value = "test-value",
* Effect = "NO_EXECUTE",
* },
* },
* },
* },
* ApiServerArgs = new[]
* {
* new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterControlPlaneApiServerArgArgs
* {
* Argument = "test argument",
* Value = "test value",
* },
* },
* },
* LoadBalancer = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterLoadBalancerArgs
* {
* PortConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterLoadBalancerPortConfigArgs
* {
* ControlPlaneLoadBalancerPort = 443,
* },
* VipConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterLoadBalancerVipConfigArgs
* {
* ControlPlaneVip = "10.200.0.5",
* },
* ManualLbConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterLoadBalancerManualLbConfigArgs
* {
* Enabled = true,
* },
* },
* Storage = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterStorageArgs
* {
* LvpShareConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterStorageLvpShareConfigArgs
* {
* LvpConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterStorageLvpShareConfigLvpConfigArgs
* {
* Path = "/mnt/localpv-share",
* StorageClass = "local-shared",
* },
* SharedPathPvCount = 5,
* },
* LvpNodeMountsConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterStorageLvpNodeMountsConfigArgs
* {
* Path = "/mnt/localpv-disk",
* StorageClass = "local-disks",
* },
* },
* NodeAccessConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterNodeAccessConfigArgs
* {
* LoginUser = "root",
* },
* SecurityConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterSecurityConfigArgs
* {
* Authorization = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterSecurityConfigAuthorizationArgs
* {
* AdminUsers = new[]
* {
* new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterSecurityConfigAuthorizationAdminUserArgs
* {
* Username = "[email protected]",
* },
* },
* },
* },
* MaintenanceConfig = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterMaintenanceConfigArgs
* {
* MaintenanceAddressCidrBlocks = new[]
* {
* "10.0.0.1/32",
* "10.0.0.2/32",
* },
* },
* ClusterOperations = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterClusterOperationsArgs
* {
* EnableApplicationLogs = true,
* },
* Proxy = new Gcp.GkeOnPrem.Inputs.BareMetalAdminClusterProxyArgs
* {
* Uri = "test proxy uri",
* NoProxies = new[]
* {
* "127.0.0.1",
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/gkeonprem"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := gkeonprem.NewBareMetalAdminCluster(ctx, "admin-cluster-basic", &gkeonprem.BareMetalAdminClusterArgs{
* Name: pulumi.String("my-cluster"),
* Location: pulumi.String("us-west1"),
* Description: pulumi.String("test description"),
* BareMetalVersion: pulumi.String("1.13.4"),
* Annotations: pulumi.StringMap{
* "env": pulumi.String("test"),
* },
* NetworkConfig: &gkeonprem.BareMetalAdminClusterNetworkConfigArgs{
* IslandModeCidr: &gkeonprem.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs{
* ServiceAddressCidrBlocks: pulumi.StringArray{
* pulumi.String("172.26.0.0/16"),
* },
* PodAddressCidrBlocks: pulumi.StringArray{
* pulumi.String("10.240.0.0/13"),
* },
* },
* },
* NodeConfig: &gkeonprem.BareMetalAdminClusterNodeConfigArgs{
* MaxPodsPerNode: pulumi.Int(250),
* },
* ControlPlane: &gkeonprem.BareMetalAdminClusterControlPlaneArgs{
* ControlPlaneNodePoolConfig: &gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs{
* NodePoolConfig: &gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs{
* Labels: nil,
* OperatingSystem: pulumi.String("LINUX"),
* NodeConfigs: gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArray{
* &gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs{
* Labels: nil,
* NodeIp: pulumi.String("10.200.0.2"),
* },
* &gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs{
* Labels: nil,
* NodeIp: pulumi.String("10.200.0.3"),
* },
* &gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs{
* Labels: nil,
* NodeIp: pulumi.String("10.200.0.4"),
* },
* },
* Taints: gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArray{
* &gkeonprem.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgs{
* Key: pulumi.String("test-key"),
* Value: pulumi.String("test-value"),
* Effect: pulumi.String("NO_EXECUTE"),
* },
* },
* },
* },
* ApiServerArgs: gkeonprem.BareMetalAdminClusterControlPlaneApiServerArgArray{
* &gkeonprem.BareMetalAdminClusterControlPlaneApiServerArgArgs{
* Argument: pulumi.String("test argument"),
* Value: pulumi.String("test value"),
* },
* },
* },
* LoadBalancer: &gkeonprem.BareMetalAdminClusterLoadBalancerArgs{
* PortConfig: &gkeonprem.BareMetalAdminClusterLoadBalancerPortConfigArgs{
* ControlPlaneLoadBalancerPort: pulumi.Int(443),
* },
* VipConfig: &gkeonprem.BareMetalAdminClusterLoadBalancerVipConfigArgs{
* ControlPlaneVip: pulumi.String("10.200.0.5"),
* },
* ManualLbConfig: &gkeonprem.BareMetalAdminClusterLoadBalancerManualLbConfigArgs{
* Enabled: pulumi.Bool(true),
* },
* },
* Storage: &gkeonprem.BareMetalAdminClusterStorageArgs{
* LvpShareConfig: &gkeonprem.BareMetalAdminClusterStorageLvpShareConfigArgs{
* LvpConfig: &gkeonprem.BareMetalAdminClusterStorageLvpShareConfigLvpConfigArgs{
* Path: pulumi.String("/mnt/localpv-share"),
* StorageClass: pulumi.String("local-shared"),
* },
* SharedPathPvCount: pulumi.Int(5),
* },
* LvpNodeMountsConfig: &gkeonprem.BareMetalAdminClusterStorageLvpNodeMountsConfigArgs{
* Path: pulumi.String("/mnt/localpv-disk"),
* StorageClass: pulumi.String("local-disks"),
* },
* },
* NodeAccessConfig: &gkeonprem.BareMetalAdminClusterNodeAccessConfigArgs{
* LoginUser: pulumi.String("root"),
* },
* SecurityConfig: &gkeonprem.BareMetalAdminClusterSecurityConfigArgs{
* Authorization: &gkeonprem.BareMetalAdminClusterSecurityConfigAuthorizationArgs{
* AdminUsers: gkeonprem.BareMetalAdminClusterSecurityConfigAuthorizationAdminUserArray{
* &gkeonprem.BareMetalAdminClusterSecurityConfigAuthorizationAdminUserArgs{
* Username: pulumi.String("[email protected]"),
* },
* },
* },
* },
* MaintenanceConfig: &gkeonprem.BareMetalAdminClusterMaintenanceConfigArgs{
* MaintenanceAddressCidrBlocks: pulumi.StringArray{
* pulumi.String("10.0.0.1/32"),
* pulumi.String("10.0.0.2/32"),
* },
* },
* ClusterOperations: &gkeonprem.BareMetalAdminClusterClusterOperationsArgs{
* EnableApplicationLogs: pulumi.Bool(true),
* },
* Proxy: &gkeonprem.BareMetalAdminClusterProxyArgs{
* Uri: pulumi.String("test proxy uri"),
* NoProxies: pulumi.StringArray{
* pulumi.String("127.0.0.1"),
* },
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.gkeonprem.BareMetalAdminCluster;
* import com.pulumi.gcp.gkeonprem.BareMetalAdminClusterArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterNetworkConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterNetworkConfigIslandModeCidrArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterNodeConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterControlPlaneArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterLoadBalancerArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterLoadBalancerPortConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterLoadBalancerVipConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterLoadBalancerManualLbConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterStorageArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterStorageLvpShareConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterStorageLvpShareConfigLvpConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterStorageLvpNodeMountsConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterNodeAccessConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterSecurityConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterSecurityConfigAuthorizationArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterMaintenanceConfigArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterClusterOperationsArgs;
* import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterProxyArgs;
* 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 admin_cluster_basic = new BareMetalAdminCluster("admin-cluster-basic", BareMetalAdminClusterArgs.builder()
* .name("my-cluster")
* .location("us-west1")
* .description("test description")
* .bareMetalVersion("1.13.4")
* .annotations(Map.of("env", "test"))
* .networkConfig(BareMetalAdminClusterNetworkConfigArgs.builder()
* .islandModeCidr(BareMetalAdminClusterNetworkConfigIslandModeCidrArgs.builder()
* .serviceAddressCidrBlocks("172.26.0.0/16")
* .podAddressCidrBlocks("10.240.0.0/13")
* .build())
* .build())
* .nodeConfig(BareMetalAdminClusterNodeConfigArgs.builder()
* .maxPodsPerNode(250)
* .build())
* .controlPlane(BareMetalAdminClusterControlPlaneArgs.builder()
* .controlPlaneNodePoolConfig(BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs.builder()
* .nodePoolConfig(BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs.builder()
* .labels()
* .operatingSystem("LINUX")
* .nodeConfigs(
* BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs.builder()
* .labels()
* .nodeIp("10.200.0.2")
* .build(),
* BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs.builder()
* .labels()
* .nodeIp("10.200.0.3")
* .build(),
* BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs.builder()
* .labels()
* .nodeIp("10.200.0.4")
* .build())
* .taints(BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgs.builder()
* .key("test-key")
* .value("test-value")
* .effect("NO_EXECUTE")
* .build())
* .build())
* .build())
* .apiServerArgs(BareMetalAdminClusterControlPlaneApiServerArgArgs.builder()
* .argument("test argument")
* .value("test value")
* .build())
* .build())
* .loadBalancer(BareMetalAdminClusterLoadBalancerArgs.builder()
* .portConfig(BareMetalAdminClusterLoadBalancerPortConfigArgs.builder()
* .controlPlaneLoadBalancerPort(443)
* .build())
* .vipConfig(BareMetalAdminClusterLoadBalancerVipConfigArgs.builder()
* .controlPlaneVip("10.200.0.5")
* .build())
* .manualLbConfig(BareMetalAdminClusterLoadBalancerManualLbConfigArgs.builder()
* .enabled(true)
* .build())
* .build())
* .storage(BareMetalAdminClusterStorageArgs.builder()
* .lvpShareConfig(BareMetalAdminClusterStorageLvpShareConfigArgs.builder()
* .lvpConfig(BareMetalAdminClusterStorageLvpShareConfigLvpConfigArgs.builder()
* .path("/mnt/localpv-share")
* .storageClass("local-shared")
* .build())
* .sharedPathPvCount(5)
* .build())
* .lvpNodeMountsConfig(BareMetalAdminClusterStorageLvpNodeMountsConfigArgs.builder()
* .path("/mnt/localpv-disk")
* .storageClass("local-disks")
* .build())
* .build())
* .nodeAccessConfig(BareMetalAdminClusterNodeAccessConfigArgs.builder()
* .loginUser("root")
* .build())
* .securityConfig(BareMetalAdminClusterSecurityConfigArgs.builder()
* .authorization(BareMetalAdminClusterSecurityConfigAuthorizationArgs.builder()
* .adminUsers(BareMetalAdminClusterSecurityConfigAuthorizationAdminUserArgs.builder()
* .username("[email protected]")
* .build())
* .build())
* .build())
* .maintenanceConfig(BareMetalAdminClusterMaintenanceConfigArgs.builder()
* .maintenanceAddressCidrBlocks(
* "10.0.0.1/32",
* "10.0.0.2/32")
* .build())
* .clusterOperations(BareMetalAdminClusterClusterOperationsArgs.builder()
* .enableApplicationLogs(true)
* .build())
* .proxy(BareMetalAdminClusterProxyArgs.builder()
* .uri("test proxy uri")
* .noProxies("127.0.0.1")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* admin-cluster-basic:
* type: gcp:gkeonprem:BareMetalAdminCluster
* properties:
* name: my-cluster
* location: us-west1
* description: test description
* bareMetalVersion: 1.13.4
* annotations:
* env: test
* networkConfig:
* islandModeCidr:
* serviceAddressCidrBlocks:
* - 172.26.0.0/16
* podAddressCidrBlocks:
* - 10.240.0.0/13
* nodeConfig:
* maxPodsPerNode: 250
* controlPlane:
* controlPlaneNodePoolConfig:
* nodePoolConfig:
* labels: {}
* operatingSystem: LINUX
* nodeConfigs:
* - labels: {}
* nodeIp: 10.200.0.2
* - labels: {}
* nodeIp: 10.200.0.3
* - labels: {}
* nodeIp: 10.200.0.4
* taints:
* - key: test-key
* value: test-value
* effect: NO_EXECUTE
* apiServerArgs:
* - argument: test argument
* value: test value
* loadBalancer:
* portConfig:
* controlPlaneLoadBalancerPort: 443
* vipConfig:
* controlPlaneVip: 10.200.0.5
* manualLbConfig:
* enabled: true
* storage:
* lvpShareConfig:
* lvpConfig:
* path: /mnt/localpv-share
* storageClass: local-shared
* sharedPathPvCount: 5
* lvpNodeMountsConfig:
* path: /mnt/localpv-disk
* storageClass: local-disks
* nodeAccessConfig:
* loginUser: root
* securityConfig:
* authorization:
* adminUsers:
* - username: [email protected]
* maintenanceConfig:
* maintenanceAddressCidrBlocks:
* - 10.0.0.1/32
* - 10.0.0.2/32
* clusterOperations:
* enableApplicationLogs: true
* proxy:
* uri: test proxy uri
* noProxies:
* - 127.0.0.1
* ```
*
* ## Import
* BareMetalAdminCluster can be imported using any of these accepted formats:
* * `projects/{{project}}/locations/{{location}}/bareMetalAdminClusters/{{name}}`
* * `{{project}}/{{location}}/{{name}}`
* * `{{location}}/{{name}}`
* When using the `pulumi import` command, BareMetalAdminCluster can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:gkeonprem/bareMetalAdminCluster:BareMetalAdminCluster default projects/{{project}}/locations/{{location}}/bareMetalAdminClusters/{{name}}
* ```
* ```sh
* $ pulumi import gcp:gkeonprem/bareMetalAdminCluster:BareMetalAdminCluster default {{project}}/{{location}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:gkeonprem/bareMetalAdminCluster:BareMetalAdminCluster default {{location}}/{{name}}
* ```
* @property annotations Annotations on the Bare Metal Admin Cluster.
* This field has the same restrictions as Kubernetes annotations.
* The total size of all keys and values combined is limited to 256k.
* Key can have 2 segments: prefix (optional) and name (required),
* separated by a slash (/).
* Prefix must be a DNS subdomain.
* Name must be 63 characters or less, begin and end with alphanumerics,
* with dashes (-), underscores (_), dots (.), and alphanumerics between.
* **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
* Please refer to the field `effective_annotations` for all of the annotations present on the resource.
* @property bareMetalVersion A human readable description of this Bare Metal Admin Cluster.
* @property clusterOperations Specifies the Admin Cluster's observability infrastructure.
* Structure is documented below.
* @property controlPlane Specifies the control plane configuration.
* Structure is documented below.
* @property description A human readable description of this Bare Metal Admin Cluster.
* @property loadBalancer Specifies the load balancer configuration.
* Structure is documented below.
* @property location The location of the resource.
* - - -
* @property maintenanceConfig Specifies the workload node configurations.
* Structure is documented below.
* @property name The bare metal admin cluster name.
* @property networkConfig Network configuration.
* Structure is documented below.
* @property nodeAccessConfig Specifies the node access related settings for the bare metal user cluster.
* Structure is documented below.
* @property nodeConfig Specifies the workload node configurations.
* Structure is documented below.
* @property project The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
* @property proxy Specifies the cluster proxy configuration.
* Structure is documented below.
* @property securityConfig Specifies the security related settings for the Bare Metal User Cluster.
* Structure is documented below.
* @property storage Specifies the cluster storage configuration.
* Structure is documented below.
*/
public data class BareMetalAdminClusterArgs(
public val annotations: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy