UNPKG

@lbrlabs/pulumi-dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

273 lines (272 loc) 11.2 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; export declare class Kubernetes extends pulumi.CustomResource { /** * Get an existing Kubernetes resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: KubernetesState, opts?: pulumi.CustomResourceOptions): Kubernetes; /** * Returns true if the given object is an instance of Kubernetes. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Kubernetes; /** * ActiveGate Group */ readonly activeGateGroup: pulumi.Output<string | undefined>; /** * Create a bearer token for [Kubernetes](https://dt-url.net/og43szq "Kubernetes") or * [OpenShift](https://dt-url.net/7l43xtp "OpenShift"). */ readonly authToken: pulumi.Output<string | undefined>; /** * Require valid certificates for communication with API server (recommended) */ readonly certificateCheckEnabled: pulumi.Output<boolean | undefined>; /** * Monitor Kubernetes namespaces, services, workloads, and pods */ readonly cloudApplicationPipelineEnabled: pulumi.Output<boolean>; /** * Unique ID of the cluster, the containerized ActiveGate is deployed to. Defaults to the UUID of the kube-system * namespace. The cluster ID of containerized ActiveGates is shown on the Deployment status screen. */ readonly clusterId: pulumi.Output<string | undefined>; /** * For more information on local Kubernetes API monitoring, see the [documentation](https://dt-url.net/6q62uep). */ readonly clusterIdEnabled: pulumi.Output<boolean>; /** * This setting is enabled (`true`) or disabled (`false`) */ readonly enabled: pulumi.Output<boolean>; /** * Get the API URL for [Kubernetes](https://dt-url.net/kz23snj "Kubernetes") or [OpenShift](https://dt-url.net/d623xgw * "OpenShift"). */ readonly endpointUrl: pulumi.Output<string | undefined>; /** * Define Kubernetes event filters to ingest events into your environment. For more details, see the * [documentation](https://dt-url.net/2201p0u). */ readonly eventPatterns: pulumi.Output<outputs.KubernetesEventPatterns | undefined>; /** * All events are monitored by default unless event filters are specified. */ readonly eventProcessingActive: pulumi.Output<boolean>; /** * Include only events specified by Events Field Selectors */ readonly filterEvents: pulumi.Output<boolean | undefined>; /** * Verify hostname in certificate against Kubernetes API URL */ readonly hostnameVerificationEnabled: pulumi.Output<boolean | undefined>; /** * For a list of included events, see the [documentation](https://dt-url.net/l61d02no). */ readonly includeAllFdiEvents: pulumi.Output<boolean | undefined>; /** * Renaming the cluster breaks configurations that are based on its name (e.g., management zones, and alerting). */ readonly label: pulumi.Output<string>; /** * The workload resource metrics are based on a subset of cAdvisor metrics. Depending on your Kubernetes cluster size, this * may increase the CPU/memory resource consumption of your ActiveGate. */ readonly openMetricsBuiltinEnabled: pulumi.Output<boolean>; /** * For annotation guidance, see the [documentation](https://dt-url.net/g42i0ppw). */ readonly openMetricsPipelineEnabled: pulumi.Output<boolean>; /** * To enable dashboards and alerts, add the [Kubernetes persistent volume * claims](ui/hub/ext/com.dynatrace.extension.kubernetes-pvc) extension to your environment. */ readonly pvcMonitoringEnabled: pulumi.Output<boolean>; /** * The scope of this setting (KUBERNETES_CLUSTER) */ readonly scope: pulumi.Output<string>; /** * Create a Kubernetes resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: KubernetesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Kubernetes resources. */ export interface KubernetesState { /** * ActiveGate Group */ activeGateGroup?: pulumi.Input<string>; /** * Create a bearer token for [Kubernetes](https://dt-url.net/og43szq "Kubernetes") or * [OpenShift](https://dt-url.net/7l43xtp "OpenShift"). */ authToken?: pulumi.Input<string>; /** * Require valid certificates for communication with API server (recommended) */ certificateCheckEnabled?: pulumi.Input<boolean>; /** * Monitor Kubernetes namespaces, services, workloads, and pods */ cloudApplicationPipelineEnabled?: pulumi.Input<boolean>; /** * Unique ID of the cluster, the containerized ActiveGate is deployed to. Defaults to the UUID of the kube-system * namespace. The cluster ID of containerized ActiveGates is shown on the Deployment status screen. */ clusterId?: pulumi.Input<string>; /** * For more information on local Kubernetes API monitoring, see the [documentation](https://dt-url.net/6q62uep). */ clusterIdEnabled?: pulumi.Input<boolean>; /** * This setting is enabled (`true`) or disabled (`false`) */ enabled?: pulumi.Input<boolean>; /** * Get the API URL for [Kubernetes](https://dt-url.net/kz23snj "Kubernetes") or [OpenShift](https://dt-url.net/d623xgw * "OpenShift"). */ endpointUrl?: pulumi.Input<string>; /** * Define Kubernetes event filters to ingest events into your environment. For more details, see the * [documentation](https://dt-url.net/2201p0u). */ eventPatterns?: pulumi.Input<inputs.KubernetesEventPatterns>; /** * All events are monitored by default unless event filters are specified. */ eventProcessingActive?: pulumi.Input<boolean>; /** * Include only events specified by Events Field Selectors */ filterEvents?: pulumi.Input<boolean>; /** * Verify hostname in certificate against Kubernetes API URL */ hostnameVerificationEnabled?: pulumi.Input<boolean>; /** * For a list of included events, see the [documentation](https://dt-url.net/l61d02no). */ includeAllFdiEvents?: pulumi.Input<boolean>; /** * Renaming the cluster breaks configurations that are based on its name (e.g., management zones, and alerting). */ label?: pulumi.Input<string>; /** * The workload resource metrics are based on a subset of cAdvisor metrics. Depending on your Kubernetes cluster size, this * may increase the CPU/memory resource consumption of your ActiveGate. */ openMetricsBuiltinEnabled?: pulumi.Input<boolean>; /** * For annotation guidance, see the [documentation](https://dt-url.net/g42i0ppw). */ openMetricsPipelineEnabled?: pulumi.Input<boolean>; /** * To enable dashboards and alerts, add the [Kubernetes persistent volume * claims](ui/hub/ext/com.dynatrace.extension.kubernetes-pvc) extension to your environment. */ pvcMonitoringEnabled?: pulumi.Input<boolean>; /** * The scope of this setting (KUBERNETES_CLUSTER) */ scope?: pulumi.Input<string>; } /** * The set of arguments for constructing a Kubernetes resource. */ export interface KubernetesArgs { /** * ActiveGate Group */ activeGateGroup?: pulumi.Input<string>; /** * Create a bearer token for [Kubernetes](https://dt-url.net/og43szq "Kubernetes") or * [OpenShift](https://dt-url.net/7l43xtp "OpenShift"). */ authToken?: pulumi.Input<string>; /** * Require valid certificates for communication with API server (recommended) */ certificateCheckEnabled?: pulumi.Input<boolean>; /** * Monitor Kubernetes namespaces, services, workloads, and pods */ cloudApplicationPipelineEnabled: pulumi.Input<boolean>; /** * Unique ID of the cluster, the containerized ActiveGate is deployed to. Defaults to the UUID of the kube-system * namespace. The cluster ID of containerized ActiveGates is shown on the Deployment status screen. */ clusterId?: pulumi.Input<string>; /** * For more information on local Kubernetes API monitoring, see the [documentation](https://dt-url.net/6q62uep). */ clusterIdEnabled: pulumi.Input<boolean>; /** * This setting is enabled (`true`) or disabled (`false`) */ enabled: pulumi.Input<boolean>; /** * Get the API URL for [Kubernetes](https://dt-url.net/kz23snj "Kubernetes") or [OpenShift](https://dt-url.net/d623xgw * "OpenShift"). */ endpointUrl?: pulumi.Input<string>; /** * Define Kubernetes event filters to ingest events into your environment. For more details, see the * [documentation](https://dt-url.net/2201p0u). */ eventPatterns?: pulumi.Input<inputs.KubernetesEventPatterns>; /** * All events are monitored by default unless event filters are specified. */ eventProcessingActive: pulumi.Input<boolean>; /** * Include only events specified by Events Field Selectors */ filterEvents?: pulumi.Input<boolean>; /** * Verify hostname in certificate against Kubernetes API URL */ hostnameVerificationEnabled?: pulumi.Input<boolean>; /** * For a list of included events, see the [documentation](https://dt-url.net/l61d02no). */ includeAllFdiEvents?: pulumi.Input<boolean>; /** * Renaming the cluster breaks configurations that are based on its name (e.g., management zones, and alerting). */ label: pulumi.Input<string>; /** * The workload resource metrics are based on a subset of cAdvisor metrics. Depending on your Kubernetes cluster size, this * may increase the CPU/memory resource consumption of your ActiveGate. */ openMetricsBuiltinEnabled: pulumi.Input<boolean>; /** * For annotation guidance, see the [documentation](https://dt-url.net/g42i0ppw). */ openMetricsPipelineEnabled: pulumi.Input<boolean>; /** * To enable dashboards and alerts, add the [Kubernetes persistent volume * claims](ui/hub/ext/com.dynatrace.extension.kubernetes-pvc) extension to your environment. */ pvcMonitoringEnabled: pulumi.Input<boolean>; /** * The scope of this setting (KUBERNETES_CLUSTER) */ scope: pulumi.Input<string>; }