@cdktf/provider-kubernetes
Version:
Prebuilt kubernetes Provider for Terraform CDK (cdktf)
910 lines • 305 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import * as cdktf from 'cdktf';
import { PodV1SpecInitContainerEnv, PodV1SpecInitContainerEnvList, PodV1SpecInitContainerEnvFrom, PodV1SpecInitContainerEnvFromList, PodV1SpecInitContainerLifecycle, PodV1SpecInitContainerLifecycleOutputReference, PodV1SpecInitContainerLivenessProbe, PodV1SpecInitContainerLivenessProbeOutputReference, PodV1SpecAffinity, PodV1SpecAffinityOutputReference, PodV1SpecContainer, PodV1SpecContainerList, PodV1SpecDnsConfig, PodV1SpecDnsConfigOutputReference, PodV1SpecHostAliases, PodV1SpecHostAliasesList, PodV1SpecImagePullSecrets, PodV1SpecImagePullSecretsList } from './structs0';
export interface PodV1SpecInitContainerPort {
/**
* Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#container_port PodV1#container_port}
*/
readonly containerPort: number;
/**
* What host IP to bind the external port to.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#host_ip PodV1#host_ip}
*/
readonly hostIp?: string;
/**
* Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#host_port PodV1#host_port}
*/
readonly hostPort?: number;
/**
* If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#name PodV1#name}
*/
readonly name?: string;
/**
* Protocol for port. Must be UDP or TCP. Defaults to "TCP".
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#protocol PodV1#protocol}
*/
readonly protocol?: string;
}
export declare function podV1SpecInitContainerPortToTerraform(struct?: PodV1SpecInitContainerPort | cdktf.IResolvable): any;
export declare function podV1SpecInitContainerPortToHclTerraform(struct?: PodV1SpecInitContainerPort | cdktf.IResolvable): any;
export declare class PodV1SpecInitContainerPortOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodV1SpecInitContainerPort | cdktf.IResolvable | undefined;
set internalValue(value: PodV1SpecInitContainerPort | cdktf.IResolvable | undefined);
private _containerPort?;
get containerPort(): number;
set containerPort(value: number);
get containerPortInput(): number | undefined;
private _hostIp?;
get hostIp(): string;
set hostIp(value: string);
resetHostIp(): void;
get hostIpInput(): string | undefined;
private _hostPort?;
get hostPort(): number;
set hostPort(value: number);
resetHostPort(): void;
get hostPortInput(): number | undefined;
private _name?;
get name(): string;
set name(value: string);
resetName(): void;
get nameInput(): string | undefined;
private _protocol?;
get protocol(): string;
set protocol(value: string);
resetProtocol(): void;
get protocolInput(): string | undefined;
}
export declare class PodV1SpecInitContainerPortList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodV1SpecInitContainerPort[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodV1SpecInitContainerPortOutputReference;
}
export interface PodV1SpecInitContainerReadinessProbeExec {
/**
* Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#command PodV1#command}
*/
readonly command?: string[];
}
export declare function podV1SpecInitContainerReadinessProbeExecToTerraform(struct?: PodV1SpecInitContainerReadinessProbeExecOutputReference | PodV1SpecInitContainerReadinessProbeExec): any;
export declare function podV1SpecInitContainerReadinessProbeExecToHclTerraform(struct?: PodV1SpecInitContainerReadinessProbeExecOutputReference | PodV1SpecInitContainerReadinessProbeExec): any;
export declare class PodV1SpecInitContainerReadinessProbeExecOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodV1SpecInitContainerReadinessProbeExec | undefined;
set internalValue(value: PodV1SpecInitContainerReadinessProbeExec | undefined);
private _command?;
get command(): string[];
set command(value: string[]);
resetCommand(): void;
get commandInput(): string[] | undefined;
}
export interface PodV1SpecInitContainerReadinessProbeGrpc {
/**
* Number of the port to access on the container. Number must be in the range 1 to 65535.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#port PodV1#port}
*/
readonly port: number;
/**
* Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#service PodV1#service}
*/
readonly service?: string;
}
export declare function podV1SpecInitContainerReadinessProbeGrpcToTerraform(struct?: PodV1SpecInitContainerReadinessProbeGrpc | cdktf.IResolvable): any;
export declare function podV1SpecInitContainerReadinessProbeGrpcToHclTerraform(struct?: PodV1SpecInitContainerReadinessProbeGrpc | cdktf.IResolvable): any;
export declare class PodV1SpecInitContainerReadinessProbeGrpcOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodV1SpecInitContainerReadinessProbeGrpc | cdktf.IResolvable | undefined;
set internalValue(value: PodV1SpecInitContainerReadinessProbeGrpc | cdktf.IResolvable | undefined);
private _port?;
get port(): number;
set port(value: number);
get portInput(): number | undefined;
private _service?;
get service(): string;
set service(value: string);
resetService(): void;
get serviceInput(): string | undefined;
}
export declare class PodV1SpecInitContainerReadinessProbeGrpcList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodV1SpecInitContainerReadinessProbeGrpc[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodV1SpecInitContainerReadinessProbeGrpcOutputReference;
}
export interface PodV1SpecInitContainerReadinessProbeHttpGetHttpHeader {
/**
* The header field name
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#name PodV1#name}
*/
readonly name?: string;
/**
* The header field value
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#value PodV1#value}
*/
readonly value?: string;
}
export declare function podV1SpecInitContainerReadinessProbeHttpGetHttpHeaderToTerraform(struct?: PodV1SpecInitContainerReadinessProbeHttpGetHttpHeader | cdktf.IResolvable): any;
export declare function podV1SpecInitContainerReadinessProbeHttpGetHttpHeaderToHclTerraform(struct?: PodV1SpecInitContainerReadinessProbeHttpGetHttpHeader | cdktf.IResolvable): any;
export declare class PodV1SpecInitContainerReadinessProbeHttpGetHttpHeaderOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodV1SpecInitContainerReadinessProbeHttpGetHttpHeader | cdktf.IResolvable | undefined;
set internalValue(value: PodV1SpecInitContainerReadinessProbeHttpGetHttpHeader | cdktf.IResolvable | undefined);
private _name?;
get name(): string;
set name(value: string);
resetName(): void;
get nameInput(): string | undefined;
private _value?;
get value(): string;
set value(value: string);
resetValue(): void;
get valueInput(): string | undefined;
}
export declare class PodV1SpecInitContainerReadinessProbeHttpGetHttpHeaderList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodV1SpecInitContainerReadinessProbeHttpGetHttpHeader[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodV1SpecInitContainerReadinessProbeHttpGetHttpHeaderOutputReference;
}
export interface PodV1SpecInitContainerReadinessProbeHttpGet {
/**
* Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#host PodV1#host}
*/
readonly host?: string;
/**
* Path to access on the HTTP server.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#path PodV1#path}
*/
readonly path?: string;
/**
* Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#port PodV1#port}
*/
readonly port?: string;
/**
* Scheme to use for connecting to the host.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#scheme PodV1#scheme}
*/
readonly scheme?: string;
/**
* http_header block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#http_header PodV1#http_header}
*/
readonly httpHeader?: PodV1SpecInitContainerReadinessProbeHttpGetHttpHeader[] | cdktf.IResolvable;
}
export declare function podV1SpecInitContainerReadinessProbeHttpGetToTerraform(struct?: PodV1SpecInitContainerReadinessProbeHttpGetOutputReference | PodV1SpecInitContainerReadinessProbeHttpGet): any;
export declare function podV1SpecInitContainerReadinessProbeHttpGetToHclTerraform(struct?: PodV1SpecInitContainerReadinessProbeHttpGetOutputReference | PodV1SpecInitContainerReadinessProbeHttpGet): any;
export declare class PodV1SpecInitContainerReadinessProbeHttpGetOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodV1SpecInitContainerReadinessProbeHttpGet | undefined;
set internalValue(value: PodV1SpecInitContainerReadinessProbeHttpGet | undefined);
private _host?;
get host(): string;
set host(value: string);
resetHost(): void;
get hostInput(): string | undefined;
private _path?;
get path(): string;
set path(value: string);
resetPath(): void;
get pathInput(): string | undefined;
private _port?;
get port(): string;
set port(value: string);
resetPort(): void;
get portInput(): string | undefined;
private _scheme?;
get scheme(): string;
set scheme(value: string);
resetScheme(): void;
get schemeInput(): string | undefined;
private _httpHeader;
get httpHeader(): PodV1SpecInitContainerReadinessProbeHttpGetHttpHeaderList;
putHttpHeader(value: PodV1SpecInitContainerReadinessProbeHttpGetHttpHeader[] | cdktf.IResolvable): void;
resetHttpHeader(): void;
get httpHeaderInput(): cdktf.IResolvable | PodV1SpecInitContainerReadinessProbeHttpGetHttpHeader[] | undefined;
}
export interface PodV1SpecInitContainerReadinessProbeTcpSocket {
/**
* Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#port PodV1#port}
*/
readonly port: string;
}
export declare function podV1SpecInitContainerReadinessProbeTcpSocketToTerraform(struct?: PodV1SpecInitContainerReadinessProbeTcpSocket | cdktf.IResolvable): any;
export declare function podV1SpecInitContainerReadinessProbeTcpSocketToHclTerraform(struct?: PodV1SpecInitContainerReadinessProbeTcpSocket | cdktf.IResolvable): any;
export declare class PodV1SpecInitContainerReadinessProbeTcpSocketOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodV1SpecInitContainerReadinessProbeTcpSocket | cdktf.IResolvable | undefined;
set internalValue(value: PodV1SpecInitContainerReadinessProbeTcpSocket | cdktf.IResolvable | undefined);
private _port?;
get port(): string;
set port(value: string);
get portInput(): string | undefined;
}
export declare class PodV1SpecInitContainerReadinessProbeTcpSocketList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodV1SpecInitContainerReadinessProbeTcpSocket[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodV1SpecInitContainerReadinessProbeTcpSocketOutputReference;
}
export interface PodV1SpecInitContainerReadinessProbe {
/**
* Minimum consecutive failures for the probe to be considered failed after having succeeded.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#failure_threshold PodV1#failure_threshold}
*/
readonly failureThreshold?: number;
/**
* Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#initial_delay_seconds PodV1#initial_delay_seconds}
*/
readonly initialDelaySeconds?: number;
/**
* How often (in seconds) to perform the probe
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#period_seconds PodV1#period_seconds}
*/
readonly periodSeconds?: number;
/**
* Minimum consecutive successes for the probe to be considered successful after having failed.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#success_threshold PodV1#success_threshold}
*/
readonly successThreshold?: number;
/**
* Number of seconds after which the probe times out. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#timeout_seconds PodV1#timeout_seconds}
*/
readonly timeoutSeconds?: number;
/**
* exec block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#exec PodV1#exec}
*/
readonly exec?: PodV1SpecInitContainerReadinessProbeExec;
/**
* grpc block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#grpc PodV1#grpc}
*/
readonly grpc?: PodV1SpecInitContainerReadinessProbeGrpc[] | cdktf.IResolvable;
/**
* http_get block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#http_get PodV1#http_get}
*/
readonly httpGet?: PodV1SpecInitContainerReadinessProbeHttpGet;
/**
* tcp_socket block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#tcp_socket PodV1#tcp_socket}
*/
readonly tcpSocket?: PodV1SpecInitContainerReadinessProbeTcpSocket[] | cdktf.IResolvable;
}
export declare function podV1SpecInitContainerReadinessProbeToTerraform(struct?: PodV1SpecInitContainerReadinessProbeOutputReference | PodV1SpecInitContainerReadinessProbe): any;
export declare function podV1SpecInitContainerReadinessProbeToHclTerraform(struct?: PodV1SpecInitContainerReadinessProbeOutputReference | PodV1SpecInitContainerReadinessProbe): any;
export declare class PodV1SpecInitContainerReadinessProbeOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodV1SpecInitContainerReadinessProbe | undefined;
set internalValue(value: PodV1SpecInitContainerReadinessProbe | undefined);
private _failureThreshold?;
get failureThreshold(): number;
set failureThreshold(value: number);
resetFailureThreshold(): void;
get failureThresholdInput(): number | undefined;
private _initialDelaySeconds?;
get initialDelaySeconds(): number;
set initialDelaySeconds(value: number);
resetInitialDelaySeconds(): void;
get initialDelaySecondsInput(): number | undefined;
private _periodSeconds?;
get periodSeconds(): number;
set periodSeconds(value: number);
resetPeriodSeconds(): void;
get periodSecondsInput(): number | undefined;
private _successThreshold?;
get successThreshold(): number;
set successThreshold(value: number);
resetSuccessThreshold(): void;
get successThresholdInput(): number | undefined;
private _timeoutSeconds?;
get timeoutSeconds(): number;
set timeoutSeconds(value: number);
resetTimeoutSeconds(): void;
get timeoutSecondsInput(): number | undefined;
private _exec;
get exec(): PodV1SpecInitContainerReadinessProbeExecOutputReference;
putExec(value: PodV1SpecInitContainerReadinessProbeExec): void;
resetExec(): void;
get execInput(): PodV1SpecInitContainerReadinessProbeExec | undefined;
private _grpc;
get grpc(): PodV1SpecInitContainerReadinessProbeGrpcList;
putGrpc(value: PodV1SpecInitContainerReadinessProbeGrpc[] | cdktf.IResolvable): void;
resetGrpc(): void;
get grpcInput(): cdktf.IResolvable | PodV1SpecInitContainerReadinessProbeGrpc[] | undefined;
private _httpGet;
get httpGet(): PodV1SpecInitContainerReadinessProbeHttpGetOutputReference;
putHttpGet(value: PodV1SpecInitContainerReadinessProbeHttpGet): void;
resetHttpGet(): void;
get httpGetInput(): PodV1SpecInitContainerReadinessProbeHttpGet | undefined;
private _tcpSocket;
get tcpSocket(): PodV1SpecInitContainerReadinessProbeTcpSocketList;
putTcpSocket(value: PodV1SpecInitContainerReadinessProbeTcpSocket[] | cdktf.IResolvable): void;
resetTcpSocket(): void;
get tcpSocketInput(): cdktf.IResolvable | PodV1SpecInitContainerReadinessProbeTcpSocket[] | undefined;
}
export interface PodV1SpecInitContainerResources {
/**
* Describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#limits PodV1#limits}
*/
readonly limits?: {
[key: string]: string;
};
/**
* Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#requests PodV1#requests}
*/
readonly requests?: {
[key: string]: string;
};
}
export declare function podV1SpecInitContainerResourcesToTerraform(struct?: PodV1SpecInitContainerResourcesOutputReference | PodV1SpecInitContainerResources): any;
export declare function podV1SpecInitContainerResourcesToHclTerraform(struct?: PodV1SpecInitContainerResourcesOutputReference | PodV1SpecInitContainerResources): any;
export declare class PodV1SpecInitContainerResourcesOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodV1SpecInitContainerResources | undefined;
set internalValue(value: PodV1SpecInitContainerResources | undefined);
private _limits?;
get limits(): {
[key: string]: string;
};
set limits(value: {
[key: string]: string;
});
resetLimits(): void;
get limitsInput(): {
[key: string]: string;
} | undefined;
private _requests?;
get requests(): {
[key: string]: string;
};
set requests(value: {
[key: string]: string;
});
resetRequests(): void;
get requestsInput(): {
[key: string]: string;
} | undefined;
}
export interface PodV1SpecInitContainerSecurityContextCapabilities {
/**
* Added capabilities
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#add PodV1#add}
*/
readonly add?: string[];
/**
* Removed capabilities
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#drop PodV1#drop}
*/
readonly drop?: string[];
}
export declare function podV1SpecInitContainerSecurityContextCapabilitiesToTerraform(struct?: PodV1SpecInitContainerSecurityContextCapabilitiesOutputReference | PodV1SpecInitContainerSecurityContextCapabilities): any;
export declare function podV1SpecInitContainerSecurityContextCapabilitiesToHclTerraform(struct?: PodV1SpecInitContainerSecurityContextCapabilitiesOutputReference | PodV1SpecInitContainerSecurityContextCapabilities): any;
export declare class PodV1SpecInitContainerSecurityContextCapabilitiesOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodV1SpecInitContainerSecurityContextCapabilities | undefined;
set internalValue(value: PodV1SpecInitContainerSecurityContextCapabilities | undefined);
private _add?;
get add(): string[];
set add(value: string[]);
resetAdd(): void;
get addInput(): string[] | undefined;
private _drop?;
get drop(): string[];
set drop(value: string[]);
resetDrop(): void;
get dropInput(): string[] | undefined;
}
export interface PodV1SpecInitContainerSecurityContextSeLinuxOptions {
/**
* Level is SELinux level label that applies to the container.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#level PodV1#level}
*/
readonly level?: string;
/**
* Role is a SELinux role label that applies to the container.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#role PodV1#role}
*/
readonly role?: string;
/**
* Type is a SELinux type label that applies to the container.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#type PodV1#type}
*/
readonly type?: string;
/**
* User is a SELinux user label that applies to the container.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#user PodV1#user}
*/
readonly user?: string;
}
export declare function podV1SpecInitContainerSecurityContextSeLinuxOptionsToTerraform(struct?: PodV1SpecInitContainerSecurityContextSeLinuxOptionsOutputReference | PodV1SpecInitContainerSecurityContextSeLinuxOptions): any;
export declare function podV1SpecInitContainerSecurityContextSeLinuxOptionsToHclTerraform(struct?: PodV1SpecInitContainerSecurityContextSeLinuxOptionsOutputReference | PodV1SpecInitContainerSecurityContextSeLinuxOptions): any;
export declare class PodV1SpecInitContainerSecurityContextSeLinuxOptionsOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodV1SpecInitContainerSecurityContextSeLinuxOptions | undefined;
set internalValue(value: PodV1SpecInitContainerSecurityContextSeLinuxOptions | undefined);
private _level?;
get level(): string;
set level(value: string);
resetLevel(): void;
get levelInput(): string | undefined;
private _role?;
get role(): string;
set role(value: string);
resetRole(): void;
get roleInput(): string | undefined;
private _type?;
get type(): string;
set type(value: string);
resetType(): void;
get typeInput(): string | undefined;
private _user?;
get user(): string;
set user(value: string);
resetUser(): void;
get userInput(): string | undefined;
}
export interface PodV1SpecInitContainerSecurityContextSeccompProfile {
/**
* Localhost Profile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#localhost_profile PodV1#localhost_profile}
*/
readonly localhostProfile?: string;
/**
* Type indicates which kind of seccomp profile will be applied. Valid options are: Localhost, RuntimeDefault, Unconfined.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#type PodV1#type}
*/
readonly type?: string;
}
export declare function podV1SpecInitContainerSecurityContextSeccompProfileToTerraform(struct?: PodV1SpecInitContainerSecurityContextSeccompProfileOutputReference | PodV1SpecInitContainerSecurityContextSeccompProfile): any;
export declare function podV1SpecInitContainerSecurityContextSeccompProfileToHclTerraform(struct?: PodV1SpecInitContainerSecurityContextSeccompProfileOutputReference | PodV1SpecInitContainerSecurityContextSeccompProfile): any;
export declare class PodV1SpecInitContainerSecurityContextSeccompProfileOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodV1SpecInitContainerSecurityContextSeccompProfile | undefined;
set internalValue(value: PodV1SpecInitContainerSecurityContextSeccompProfile | undefined);
private _localhostProfile?;
get localhostProfile(): string;
set localhostProfile(value: string);
resetLocalhostProfile(): void;
get localhostProfileInput(): string | undefined;
private _type?;
get type(): string;
set type(value: string);
resetType(): void;
get typeInput(): string | undefined;
}
export interface PodV1SpecInitContainerSecurityContext {
/**
* AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#allow_privilege_escalation PodV1#allow_privilege_escalation}
*/
readonly allowPrivilegeEscalation?: boolean | cdktf.IResolvable;
/**
* Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#privileged PodV1#privileged}
*/
readonly privileged?: boolean | cdktf.IResolvable;
/**
* Whether this container has a read-only root filesystem. Default is false.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#read_only_root_filesystem PodV1#read_only_root_filesystem}
*/
readonly readOnlyRootFilesystem?: boolean | cdktf.IResolvable;
/**
* The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#run_as_group PodV1#run_as_group}
*/
readonly runAsGroup?: string;
/**
* Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#run_as_non_root PodV1#run_as_non_root}
*/
readonly runAsNonRoot?: boolean | cdktf.IResolvable;
/**
* The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#run_as_user PodV1#run_as_user}
*/
readonly runAsUser?: string;
/**
* capabilities block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#capabilities PodV1#capabilities}
*/
readonly capabilities?: PodV1SpecInitContainerSecurityContextCapabilities;
/**
* se_linux_options block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#se_linux_options PodV1#se_linux_options}
*/
readonly seLinuxOptions?: PodV1SpecInitContainerSecurityContextSeLinuxOptions;
/**
* seccomp_profile block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#seccomp_profile PodV1#seccomp_profile}
*/
readonly seccompProfile?: PodV1SpecInitContainerSecurityContextSeccompProfile;
}
export declare function podV1SpecInitContainerSecurityContextToTerraform(struct?: PodV1SpecInitContainerSecurityContextOutputReference | PodV1SpecInitContainerSecurityContext): any;
export declare function podV1SpecInitContainerSecurityContextToHclTerraform(struct?: PodV1SpecInitContainerSecurityContextOutputReference | PodV1SpecInitContainerSecurityContext): any;
export declare class PodV1SpecInitContainerSecurityContextOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodV1SpecInitContainerSecurityContext | undefined;
set internalValue(value: PodV1SpecInitContainerSecurityContext | undefined);
private _allowPrivilegeEscalation?;
get allowPrivilegeEscalation(): boolean | cdktf.IResolvable;
set allowPrivilegeEscalation(value: boolean | cdktf.IResolvable);
resetAllowPrivilegeEscalation(): void;
get allowPrivilegeEscalationInput(): boolean | cdktf.IResolvable | undefined;
private _privileged?;
get privileged(): boolean | cdktf.IResolvable;
set privileged(value: boolean | cdktf.IResolvable);
resetPrivileged(): void;
get privilegedInput(): boolean | cdktf.IResolvable | undefined;
private _readOnlyRootFilesystem?;
get readOnlyRootFilesystem(): boolean | cdktf.IResolvable;
set readOnlyRootFilesystem(value: boolean | cdktf.IResolvable);
resetReadOnlyRootFilesystem(): void;
get readOnlyRootFilesystemInput(): boolean | cdktf.IResolvable | undefined;
private _runAsGroup?;
get runAsGroup(): string;
set runAsGroup(value: string);
resetRunAsGroup(): void;
get runAsGroupInput(): string | undefined;
private _runAsNonRoot?;
get runAsNonRoot(): boolean | cdktf.IResolvable;
set runAsNonRoot(value: boolean | cdktf.IResolvable);
resetRunAsNonRoot(): void;
get runAsNonRootInput(): boolean | cdktf.IResolvable | undefined;
private _runAsUser?;
get runAsUser(): string;
set runAsUser(value: string);
resetRunAsUser(): void;
get runAsUserInput(): string | undefined;
private _capabilities;
get capabilities(): PodV1SpecInitContainerSecurityContextCapabilitiesOutputReference;
putCapabilities(value: PodV1SpecInitContainerSecurityContextCapabilities): void;
resetCapabilities(): void;
get capabilitiesInput(): PodV1SpecInitContainerSecurityContextCapabilities | undefined;
private _seLinuxOptions;
get seLinuxOptions(): PodV1SpecInitContainerSecurityContextSeLinuxOptionsOutputReference;
putSeLinuxOptions(value: PodV1SpecInitContainerSecurityContextSeLinuxOptions): void;
resetSeLinuxOptions(): void;
get seLinuxOptionsInput(): PodV1SpecInitContainerSecurityContextSeLinuxOptions | undefined;
private _seccompProfile;
get seccompProfile(): PodV1SpecInitContainerSecurityContextSeccompProfileOutputReference;
putSeccompProfile(value: PodV1SpecInitContainerSecurityContextSeccompProfile): void;
resetSeccompProfile(): void;
get seccompProfileInput(): PodV1SpecInitContainerSecurityContextSeccompProfile | undefined;
}
export interface PodV1SpecInitContainerStartupProbeExec {
/**
* Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#command PodV1#command}
*/
readonly command?: string[];
}
export declare function podV1SpecInitContainerStartupProbeExecToTerraform(struct?: PodV1SpecInitContainerStartupProbeExecOutputReference | PodV1SpecInitContainerStartupProbeExec): any;
export declare function podV1SpecInitContainerStartupProbeExecToHclTerraform(struct?: PodV1SpecInitContainerStartupProbeExecOutputReference | PodV1SpecInitContainerStartupProbeExec): any;
export declare class PodV1SpecInitContainerStartupProbeExecOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): PodV1SpecInitContainerStartupProbeExec | undefined;
set internalValue(value: PodV1SpecInitContainerStartupProbeExec | undefined);
private _command?;
get command(): string[];
set command(value: string[]);
resetCommand(): void;
get commandInput(): string[] | undefined;
}
export interface PodV1SpecInitContainerStartupProbeGrpc {
/**
* Number of the port to access on the container. Number must be in the range 1 to 65535.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#port PodV1#port}
*/
readonly port: number;
/**
* Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#service PodV1#service}
*/
readonly service?: string;
}
export declare function podV1SpecInitContainerStartupProbeGrpcToTerraform(struct?: PodV1SpecInitContainerStartupProbeGrpc | cdktf.IResolvable): any;
export declare function podV1SpecInitContainerStartupProbeGrpcToHclTerraform(struct?: PodV1SpecInitContainerStartupProbeGrpc | cdktf.IResolvable): any;
export declare class PodV1SpecInitContainerStartupProbeGrpcOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodV1SpecInitContainerStartupProbeGrpc | cdktf.IResolvable | undefined;
set internalValue(value: PodV1SpecInitContainerStartupProbeGrpc | cdktf.IResolvable | undefined);
private _port?;
get port(): number;
set port(value: number);
get portInput(): number | undefined;
private _service?;
get service(): string;
set service(value: string);
resetService(): void;
get serviceInput(): string | undefined;
}
export declare class PodV1SpecInitContainerStartupProbeGrpcList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodV1SpecInitContainerStartupProbeGrpc[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodV1SpecInitContainerStartupProbeGrpcOutputReference;
}
export interface PodV1SpecInitContainerStartupProbeHttpGetHttpHeader {
/**
* The header field name
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#name PodV1#name}
*/
readonly name?: string;
/**
* The header field value
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#value PodV1#value}
*/
readonly value?: string;
}
export declare function podV1SpecInitContainerStartupProbeHttpGetHttpHeaderToTerraform(struct?: PodV1SpecInitContainerStartupProbeHttpGetHttpHeader | cdktf.IResolvable): any;
export declare function podV1SpecInitContainerStartupProbeHttpGetHttpHeaderToHclTerraform(struct?: PodV1SpecInitContainerStartupProbeHttpGetHttpHeader | cdktf.IResolvable): any;
export declare class PodV1SpecInitContainerStartupProbeHttpGetHttpHeaderOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): PodV1SpecInitContainerStartupProbeHttpGetHttpHeader | cdktf.IResolvable | undefined;
set internalValue(value: PodV1SpecInitContainerStartupProbeHttpGetHttpHeader | cdktf.IResolvable | undefined);
private _name?;
get name(): string;
set name(value: string);
resetName(): void;
get nameInput(): string | undefined;
private _value?;
get value(): string;
set value(value: string);
resetValue(): void;
get valueInput(): string | undefined;
}
export declare class PodV1SpecInitContainerStartupProbeHttpGetHttpHeaderList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: PodV1SpecInitContainerStartupProbeHttpGetHttpHeader[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): PodV1SpecInitContainerStartupProbeHttpGetHttpHeaderOutputReference;
}
export interface PodV1SpecInitContainerStartupProbeHttpGet {
/**
* Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#host PodV1#host}
*/
readonly host?: string;
/**
* Path to access on the HTTP server.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#path PodV1#path}
*/
readonly path?: string;
/**
* Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#port PodV1#port}
*/
readonly port?: string;
/**
* Scheme to use for connecting to the host.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.37.1/docs/resources/pod_v1#scheme PodV1#scheme}
*/
readonly scheme?: string;
/**
* http_header block
*
* Docs at Terraform Registry: {@link htt