azure-native.web.KubeEnvironment
Explore with Pulumi AI
A Kubernetes cluster specialized for web workloads by Azure App Service API Version: 2021-01-01.
Example Usage
Create kube environments
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var kubeEnvironment = new AzureNative.Web.KubeEnvironment("kubeEnvironment", new()
{
Location = "East US",
Name = "testkubeenv",
ResourceGroupName = "examplerg",
StaticIp = "1.2.3.4",
});
});
package main
import (
web "github.com/pulumi/pulumi-azure-native-sdk/web"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := web.NewKubeEnvironment(ctx, "kubeEnvironment", &web.KubeEnvironmentArgs{
Location: pulumi.String("East US"),
Name: pulumi.String("testkubeenv"),
ResourceGroupName: pulumi.String("examplerg"),
StaticIp: pulumi.String("1.2.3.4"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.web.KubeEnvironment;
import com.pulumi.azurenative.web.KubeEnvironmentArgs;
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 kubeEnvironment = new KubeEnvironment("kubeEnvironment", KubeEnvironmentArgs.builder()
.location("East US")
.name("testkubeenv")
.resourceGroupName("examplerg")
.staticIp("1.2.3.4")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
kube_environment = azure_native.web.KubeEnvironment("kubeEnvironment",
location="East US",
name="testkubeenv",
resource_group_name="examplerg",
static_ip="1.2.3.4")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const kubeEnvironment = new azure_native.web.KubeEnvironment("kubeEnvironment", {
location: "East US",
name: "testkubeenv",
resourceGroupName: "examplerg",
staticIp: "1.2.3.4",
});
resources:
kubeEnvironment:
type: azure-native:web:KubeEnvironment
properties:
location: East US
name: testkubeenv
resourceGroupName: examplerg
staticIp: 1.2.3.4
Create KubeEnvironment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubeEnvironment(name: string, args: KubeEnvironmentArgs, opts?: CustomResourceOptions);
@overload
def KubeEnvironment(resource_name: str,
args: KubeEnvironmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubeEnvironment(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
aks_resource_id: Optional[str] = None,
app_logs_configuration: Optional[AppLogsConfigurationArgs] = None,
arc_configuration: Optional[ArcConfigurationArgs] = None,
extended_location: Optional[ExtendedLocationArgs] = None,
internal_load_balancer_enabled: Optional[bool] = None,
kind: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
static_ip: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewKubeEnvironment(ctx *Context, name string, args KubeEnvironmentArgs, opts ...ResourceOption) (*KubeEnvironment, error)
public KubeEnvironment(string name, KubeEnvironmentArgs args, CustomResourceOptions? opts = null)
public KubeEnvironment(String name, KubeEnvironmentArgs args)
public KubeEnvironment(String name, KubeEnvironmentArgs args, CustomResourceOptions options)
type: azure-native:web:KubeEnvironment
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 KubeEnvironmentArgs
- 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 KubeEnvironmentArgs
- 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 KubeEnvironmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubeEnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubeEnvironmentArgs
- 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 kubeEnvironmentResource = new AzureNative.Web.KubeEnvironment("kubeEnvironmentResource", new()
{
ResourceGroupName = "string",
AksResourceID = "string",
AppLogsConfiguration =
{
{ "destination", "string" },
{ "logAnalyticsConfiguration",
{
{ "customerId", "string" },
{ "sharedKey", "string" },
} },
},
ArcConfiguration =
{
{ "artifactStorageAccessMode", "string" },
{ "artifactStorageClassName", "string" },
{ "artifactStorageMountPath", "string" },
{ "artifactStorageNodeName", "string" },
{ "artifactsStorageType", "LocalNode" },
{ "frontEndServiceConfiguration",
{
{ "kind", "NodePort" },
} },
{ "kubeConfig", "string" },
},
ExtendedLocation =
{
{ "name", "string" },
},
InternalLoadBalancerEnabled = false,
Kind = "string",
Location = "string",
Name = "string",
StaticIp = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := web.NewKubeEnvironment(ctx, "kubeEnvironmentResource", &web.KubeEnvironmentArgs{
ResourceGroupName: "string",
AksResourceID: "string",
AppLogsConfiguration: map[string]interface{}{
"destination": "string",
"logAnalyticsConfiguration": map[string]interface{}{
"customerId": "string",
"sharedKey": "string",
},
},
ArcConfiguration: map[string]interface{}{
"artifactStorageAccessMode": "string",
"artifactStorageClassName": "string",
"artifactStorageMountPath": "string",
"artifactStorageNodeName": "string",
"artifactsStorageType": "LocalNode",
"frontEndServiceConfiguration": map[string]interface{}{
"kind": "NodePort",
},
"kubeConfig": "string",
},
ExtendedLocation: map[string]interface{}{
"name": "string",
},
InternalLoadBalancerEnabled: false,
Kind: "string",
Location: "string",
Name: "string",
StaticIp: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var kubeEnvironmentResource = new KubeEnvironment("kubeEnvironmentResource", KubeEnvironmentArgs.builder()
.resourceGroupName("string")
.aksResourceID("string")
.appLogsConfiguration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.arcConfiguration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.extendedLocation(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.internalLoadBalancerEnabled(false)
.kind("string")
.location("string")
.name("string")
.staticIp("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
kube_environment_resource = azure_native.web.KubeEnvironment("kubeEnvironmentResource",
resource_group_name=string,
aks_resource_id=string,
app_logs_configuration={
destination: string,
logAnalyticsConfiguration: {
customerId: string,
sharedKey: string,
},
},
arc_configuration={
artifactStorageAccessMode: string,
artifactStorageClassName: string,
artifactStorageMountPath: string,
artifactStorageNodeName: string,
artifactsStorageType: LocalNode,
frontEndServiceConfiguration: {
kind: NodePort,
},
kubeConfig: string,
},
extended_location={
name: string,
},
internal_load_balancer_enabled=False,
kind=string,
location=string,
name=string,
static_ip=string,
tags={
string: string,
})
const kubeEnvironmentResource = new azure_native.web.KubeEnvironment("kubeEnvironmentResource", {
resourceGroupName: "string",
aksResourceID: "string",
appLogsConfiguration: {
destination: "string",
logAnalyticsConfiguration: {
customerId: "string",
sharedKey: "string",
},
},
arcConfiguration: {
artifactStorageAccessMode: "string",
artifactStorageClassName: "string",
artifactStorageMountPath: "string",
artifactStorageNodeName: "string",
artifactsStorageType: "LocalNode",
frontEndServiceConfiguration: {
kind: "NodePort",
},
kubeConfig: "string",
},
extendedLocation: {
name: "string",
},
internalLoadBalancerEnabled: false,
kind: "string",
location: "string",
name: "string",
staticIp: "string",
tags: {
string: "string",
},
});
type: azure-native:web:KubeEnvironment
properties:
aksResourceID: string
appLogsConfiguration:
destination: string
logAnalyticsConfiguration:
customerId: string
sharedKey: string
arcConfiguration:
artifactStorageAccessMode: string
artifactStorageClassName: string
artifactStorageMountPath: string
artifactStorageNodeName: string
artifactsStorageType: LocalNode
frontEndServiceConfiguration:
kind: NodePort
kubeConfig: string
extendedLocation:
name: string
internalLoadBalancerEnabled: false
kind: string
location: string
name: string
resourceGroupName: string
staticIp: string
tags:
string: string
KubeEnvironment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The KubeEnvironment resource accepts the following input properties:
- Resource
Group stringName - Name of the resource group to which the resource belongs.
- Aks
Resource stringID - App
Logs Pulumi.Configuration Azure Native. Web. Inputs. App Logs Configuration - Cluster configuration which enables the log daemon to export app logs to a destination. Currently only "log-analytics" is supported
- Arc
Configuration Pulumi.Azure Native. Web. Inputs. Arc Configuration - Cluster configuration which determines the ARC cluster components types. Eg: Choosing between BuildService kind, FrontEnd Service ArtifactsStorageType etc.
- Extended
Location Pulumi.Azure Native. Web. Inputs. Extended Location - Extended Location.
- Internal
Load boolBalancer Enabled - Only visible within Vnet/Subnet
- Kind string
- Kind of resource.
- Location string
- Resource Location.
- Name string
- Name of the Kubernetes Environment.
- Static
Ip string - Static IP of the KubeEnvironment
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - Name of the resource group to which the resource belongs.
- Aks
Resource stringID - App
Logs AppConfiguration Logs Configuration Args - Cluster configuration which enables the log daemon to export app logs to a destination. Currently only "log-analytics" is supported
- Arc
Configuration ArcConfiguration Args - Cluster configuration which determines the ARC cluster components types. Eg: Choosing between BuildService kind, FrontEnd Service ArtifactsStorageType etc.
- Extended
Location ExtendedLocation Args - Extended Location.
- Internal
Load boolBalancer Enabled - Only visible within Vnet/Subnet
- Kind string
- Kind of resource.
- Location string
- Resource Location.
- Name string
- Name of the Kubernetes Environment.
- Static
Ip string - Static IP of the KubeEnvironment
- map[string]string
- Resource tags.
- resource
Group StringName - Name of the resource group to which the resource belongs.
- aks
Resource StringID - app
Logs AppConfiguration Logs Configuration - Cluster configuration which enables the log daemon to export app logs to a destination. Currently only "log-analytics" is supported
- arc
Configuration ArcConfiguration - Cluster configuration which determines the ARC cluster components types. Eg: Choosing between BuildService kind, FrontEnd Service ArtifactsStorageType etc.
- extended
Location ExtendedLocation - Extended Location.
- internal
Load BooleanBalancer Enabled - Only visible within Vnet/Subnet
- kind String
- Kind of resource.
- location String
- Resource Location.
- name String
- Name of the Kubernetes Environment.
- static
Ip String - Static IP of the KubeEnvironment
- Map<String,String>
- Resource tags.
- resource
Group stringName - Name of the resource group to which the resource belongs.
- aks
Resource stringID - app
Logs AppConfiguration Logs Configuration - Cluster configuration which enables the log daemon to export app logs to a destination. Currently only "log-analytics" is supported
- arc
Configuration ArcConfiguration - Cluster configuration which determines the ARC cluster components types. Eg: Choosing between BuildService kind, FrontEnd Service ArtifactsStorageType etc.
- extended
Location ExtendedLocation - Extended Location.
- internal
Load booleanBalancer Enabled - Only visible within Vnet/Subnet
- kind string
- Kind of resource.
- location string
- Resource Location.
- name string
- Name of the Kubernetes Environment.
- static
Ip string - Static IP of the KubeEnvironment
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - Name of the resource group to which the resource belongs.
- aks_
resource_ strid - app_
logs_ Appconfiguration Logs Configuration Args - Cluster configuration which enables the log daemon to export app logs to a destination. Currently only "log-analytics" is supported
- arc_
configuration ArcConfiguration Args - Cluster configuration which determines the ARC cluster components types. Eg: Choosing between BuildService kind, FrontEnd Service ArtifactsStorageType etc.
- extended_
location ExtendedLocation Args - Extended Location.
- internal_
load_ boolbalancer_ enabled - Only visible within Vnet/Subnet
- kind str
- Kind of resource.
- location str
- Resource Location.
- name str
- Name of the Kubernetes Environment.
- static_
ip str - Static IP of the KubeEnvironment
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - Name of the resource group to which the resource belongs.
- aks
Resource StringID - app
Logs Property MapConfiguration - Cluster configuration which enables the log daemon to export app logs to a destination. Currently only "log-analytics" is supported
- arc
Configuration Property Map - Cluster configuration which determines the ARC cluster components types. Eg: Choosing between BuildService kind, FrontEnd Service ArtifactsStorageType etc.
- extended
Location Property Map - Extended Location.
- internal
Load BooleanBalancer Enabled - Only visible within Vnet/Subnet
- kind String
- Kind of resource.
- location String
- Resource Location.
- name String
- Name of the Kubernetes Environment.
- static
Ip String - Static IP of the KubeEnvironment
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the KubeEnvironment resource produces the following output properties:
- Default
Domain string - Default Domain Name for the cluster
- Deployment
Errors string - Any errors that occurred during deployment or deployment validation
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - Provisioning state of the Kubernetes Environment.
- Type string
- Resource type.
- Default
Domain string - Default Domain Name for the cluster
- Deployment
Errors string - Any errors that occurred during deployment or deployment validation
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - Provisioning state of the Kubernetes Environment.
- Type string
- Resource type.
- default
Domain String - Default Domain Name for the cluster
- deployment
Errors String - Any errors that occurred during deployment or deployment validation
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - Provisioning state of the Kubernetes Environment.
- type String
- Resource type.
- default
Domain string - Default Domain Name for the cluster
- deployment
Errors string - Any errors that occurred during deployment or deployment validation
- id string
- The provider-assigned unique ID for this managed resource.
- provisioning
State string - Provisioning state of the Kubernetes Environment.
- type string
- Resource type.
- default_
domain str - Default Domain Name for the cluster
- deployment_
errors str - Any errors that occurred during deployment or deployment validation
- id str
- The provider-assigned unique ID for this managed resource.
- provisioning_
state str - Provisioning state of the Kubernetes Environment.
- type str
- Resource type.
- default
Domain String - Default Domain Name for the cluster
- deployment
Errors String - Any errors that occurred during deployment or deployment validation
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - Provisioning state of the Kubernetes Environment.
- type String
- Resource type.
Supporting Types
AppLogsConfiguration, AppLogsConfigurationArgs
AppLogsConfigurationResponse, AppLogsConfigurationResponseArgs
ArcConfiguration, ArcConfigurationArgs
ArcConfigurationResponse, ArcConfigurationResponseArgs
ExtendedLocation, ExtendedLocationArgs
- Name string
- Name of extended location.
- Name string
- Name of extended location.
- name String
- Name of extended location.
- name string
- Name of extended location.
- name str
- Name of extended location.
- name String
- Name of extended location.
ExtendedLocationResponse, ExtendedLocationResponseArgs
FrontEndConfiguration, FrontEndConfigurationArgs
FrontEndConfigurationResponse, FrontEndConfigurationResponseArgs
- Kind string
- Kind string
- kind String
- kind string
- kind str
- kind String
FrontEndServiceType, FrontEndServiceTypeArgs
- Node
Port - NodePort
- Load
Balancer - LoadBalancer
- Front
End Service Type Node Port - NodePort
- Front
End Service Type Load Balancer - LoadBalancer
- Node
Port - NodePort
- Load
Balancer - LoadBalancer
- Node
Port - NodePort
- Load
Balancer - LoadBalancer
- NODE_PORT
- NodePort
- LOAD_BALANCER
- LoadBalancer
- "Node
Port" - NodePort
- "Load
Balancer" - LoadBalancer
LogAnalyticsConfiguration, LogAnalyticsConfigurationArgs
- Customer
Id string - string
- Customer
Id string - string
- customer
Id String - String
- customer
Id string - string
- customer_
id str - str
- customer
Id String - String
LogAnalyticsConfigurationResponse, LogAnalyticsConfigurationResponseArgs
- Customer
Id string
- Customer
Id string
- customer
Id String
- customer
Id string
- customer_
id str
- customer
Id String
StorageType, StorageTypeArgs
- Local
Node - LocalNode
- Network
File System - NetworkFileSystem
- Storage
Type Local Node - LocalNode
- Storage
Type Network File System - NetworkFileSystem
- Local
Node - LocalNode
- Network
File System - NetworkFileSystem
- Local
Node - LocalNode
- Network
File System - NetworkFileSystem
- LOCAL_NODE
- LocalNode
- NETWORK_FILE_SYSTEM
- NetworkFileSystem
- "Local
Node" - LocalNode
- "Network
File System" - NetworkFileSystem
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:web:KubeEnvironment testkubeenv /subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/examplerg/providers/Microsoft.Web/kubeEnvironments/testkubeenv
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0