cpln.Workload
Explore with Pulumi AI
Create Workload Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Workload(name: string, args: WorkloadArgs, opts?: CustomResourceOptions);
@overload
def Workload(resource_name: str,
args: WorkloadArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Workload(resource_name: str,
opts: Optional[ResourceOptions] = None,
gvc: Optional[str] = None,
type: Optional[str] = None,
containers: Optional[Sequence[WorkloadContainerArgs]] = None,
name: Optional[str] = None,
identity_link: Optional[str] = None,
job: Optional[WorkloadJobArgs] = None,
load_balancer: Optional[WorkloadLoadBalancerArgs] = None,
local_options: Optional[Sequence[WorkloadLocalOptionArgs]] = None,
firewall_spec: Optional[WorkloadFirewallSpecArgs] = None,
options: Optional[WorkloadOptionsArgs] = None,
rollout_options: Optional[WorkloadRolloutOptionsArgs] = None,
security_options: Optional[WorkloadSecurityOptionsArgs] = None,
sidecar: Optional[WorkloadSidecarArgs] = None,
support_dynamic_tags: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None)
func NewWorkload(ctx *Context, name string, args WorkloadArgs, opts ...ResourceOption) (*Workload, error)
public Workload(string name, WorkloadArgs args, CustomResourceOptions? opts = null)
public Workload(String name, WorkloadArgs args)
public Workload(String name, WorkloadArgs args, CustomResourceOptions options)
type: cpln:Workload
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 WorkloadArgs
- 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 WorkloadArgs
- 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 WorkloadArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkloadArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkloadArgs
- 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 workloadResource = new Cpln.Workload("workloadResource", new()
{
Gvc = "string",
Type = "string",
Containers = new[]
{
new Cpln.Inputs.WorkloadContainerArgs
{
Image = "string",
Name = "string",
LivenessProbe = new Cpln.Inputs.WorkloadContainerLivenessProbeArgs
{
Exec = new Cpln.Inputs.WorkloadContainerLivenessProbeExecArgs
{
Commands = new[]
{
"string",
},
},
FailureThreshold = 0,
Grpc = new Cpln.Inputs.WorkloadContainerLivenessProbeGrpcArgs
{
_sentinel = false,
Port = 0,
},
HttpGet = new Cpln.Inputs.WorkloadContainerLivenessProbeHttpGetArgs
{
HttpHeaders =
{
{ "string", "string" },
},
Path = "string",
Port = 0,
Scheme = "string",
},
InitialDelaySeconds = 0,
PeriodSeconds = 0,
SuccessThreshold = 0,
TcpSocket = new Cpln.Inputs.WorkloadContainerLivenessProbeTcpSocketArgs
{
_sentinel = false,
Port = 0,
},
TimeoutSeconds = 0,
},
MinCpu = "string",
GpuNvidia = new Cpln.Inputs.WorkloadContainerGpuNvidiaArgs
{
Model = "string",
Quantity = 0,
},
Cpu = "string",
InheritEnv = false,
Lifecycle = new Cpln.Inputs.WorkloadContainerLifecycleArgs
{
_sentinel = false,
PostStart = new Cpln.Inputs.WorkloadContainerLifecyclePostStartArgs
{
Exec = new Cpln.Inputs.WorkloadContainerLifecyclePostStartExecArgs
{
Commands = new[]
{
"string",
},
},
},
PreStop = new Cpln.Inputs.WorkloadContainerLifecyclePreStopArgs
{
Exec = new Cpln.Inputs.WorkloadContainerLifecyclePreStopExecArgs
{
Commands = new[]
{
"string",
},
},
},
},
Args = new[]
{
"string",
},
Memory = "string",
Metrics = new Cpln.Inputs.WorkloadContainerMetricsArgs
{
Path = "string",
Port = 0,
},
Env =
{
{ "string", "string" },
},
MinMemory = "string",
Command = "string",
Ports = new[]
{
new Cpln.Inputs.WorkloadContainerPortArgs
{
Number = 0,
Protocol = "string",
},
},
ReadinessProbe = new Cpln.Inputs.WorkloadContainerReadinessProbeArgs
{
Exec = new Cpln.Inputs.WorkloadContainerReadinessProbeExecArgs
{
Commands = new[]
{
"string",
},
},
FailureThreshold = 0,
Grpc = new Cpln.Inputs.WorkloadContainerReadinessProbeGrpcArgs
{
_sentinel = false,
Port = 0,
},
HttpGet = new Cpln.Inputs.WorkloadContainerReadinessProbeHttpGetArgs
{
HttpHeaders =
{
{ "string", "string" },
},
Path = "string",
Port = 0,
Scheme = "string",
},
InitialDelaySeconds = 0,
PeriodSeconds = 0,
SuccessThreshold = 0,
TcpSocket = new Cpln.Inputs.WorkloadContainerReadinessProbeTcpSocketArgs
{
_sentinel = false,
Port = 0,
},
TimeoutSeconds = 0,
},
Volumes = new[]
{
new Cpln.Inputs.WorkloadContainerVolumeArgs
{
Path = "string",
Uri = "string",
RecoveryPolicy = "string",
},
},
WorkingDirectory = "string",
},
},
Name = "string",
IdentityLink = "string",
Job = new Cpln.Inputs.WorkloadJobArgs
{
Schedule = "string",
ActiveDeadlineSeconds = 0,
ConcurrencyPolicy = "string",
HistoryLimit = 0,
RestartPolicy = "string",
},
LoadBalancer = new Cpln.Inputs.WorkloadLoadBalancerArgs
{
_sentinel = false,
Direct = new Cpln.Inputs.WorkloadLoadBalancerDirectArgs
{
Enabled = false,
Ports = new[]
{
new Cpln.Inputs.WorkloadLoadBalancerDirectPortArgs
{
ExternalPort = 0,
Protocol = "string",
ContainerPort = 0,
Scheme = "string",
},
},
},
GeoLocation = new Cpln.Inputs.WorkloadLoadBalancerGeoLocationArgs
{
Enabled = false,
Headers = new Cpln.Inputs.WorkloadLoadBalancerGeoLocationHeadersArgs
{
Asn = "string",
City = "string",
Country = "string",
Region = "string",
},
},
},
LocalOptions = new[]
{
new Cpln.Inputs.WorkloadLocalOptionArgs
{
Location = "string",
Autoscaling = new Cpln.Inputs.WorkloadLocalOptionAutoscalingArgs
{
MaxConcurrency = 0,
MaxScale = 0,
Metric = "string",
MetricPercentile = "string",
MinScale = 0,
Multis = new[]
{
new Cpln.Inputs.WorkloadLocalOptionAutoscalingMultiArgs
{
Metric = "string",
Target = 0,
},
},
ScaleToZeroDelay = 0,
Target = 0,
},
CapacityAi = false,
Debug = false,
Suspend = false,
TimeoutSeconds = 0,
},
},
FirewallSpec = new Cpln.Inputs.WorkloadFirewallSpecArgs
{
_sentinel = false,
External = new Cpln.Inputs.WorkloadFirewallSpecExternalArgs
{
InboundAllowCidrs = new[]
{
"string",
},
OutboundAllowCidrs = new[]
{
"string",
},
OutboundAllowHostnames = new[]
{
"string",
},
OutboundAllowPorts = new[]
{
new Cpln.Inputs.WorkloadFirewallSpecExternalOutboundAllowPortArgs
{
Number = 0,
Protocol = "string",
},
},
},
Internal = new Cpln.Inputs.WorkloadFirewallSpecInternalArgs
{
InboundAllowType = "string",
InboundAllowWorkloads = new[]
{
"string",
},
},
},
Options = new Cpln.Inputs.WorkloadOptionsArgs
{
Autoscaling = new Cpln.Inputs.WorkloadOptionsAutoscalingArgs
{
MaxConcurrency = 0,
MaxScale = 0,
Metric = "string",
MetricPercentile = "string",
MinScale = 0,
Multis = new[]
{
new Cpln.Inputs.WorkloadOptionsAutoscalingMultiArgs
{
Metric = "string",
Target = 0,
},
},
ScaleToZeroDelay = 0,
Target = 0,
},
CapacityAi = false,
Debug = false,
Suspend = false,
TimeoutSeconds = 0,
},
RolloutOptions = new Cpln.Inputs.WorkloadRolloutOptionsArgs
{
MaxSurgeReplicas = "string",
MaxUnavailableReplicas = "string",
MinReadySeconds = 0,
ScalingPolicy = "string",
},
SecurityOptions = new Cpln.Inputs.WorkloadSecurityOptionsArgs
{
_sentinel = false,
FileSystemGroupId = 0,
},
Sidecar = new Cpln.Inputs.WorkloadSidecarArgs
{
Envoy = "string",
},
SupportDynamicTags = false,
Tags =
{
{ "string", "string" },
},
Description = "string",
});
example, err := cpln.NewWorkload(ctx, "workloadResource", &cpln.WorkloadArgs{
Gvc: pulumi.String("string"),
Type: pulumi.String("string"),
Containers: cpln.WorkloadContainerArray{
&cpln.WorkloadContainerArgs{
Image: pulumi.String("string"),
Name: pulumi.String("string"),
LivenessProbe: &cpln.WorkloadContainerLivenessProbeArgs{
Exec: &cpln.WorkloadContainerLivenessProbeExecArgs{
Commands: pulumi.StringArray{
pulumi.String("string"),
},
},
FailureThreshold: pulumi.Int(0),
Grpc: &cpln.WorkloadContainerLivenessProbeGrpcArgs{
_sentinel: pulumi.Bool(false),
Port: pulumi.Int(0),
},
HttpGet: &cpln.WorkloadContainerLivenessProbeHttpGetArgs{
HttpHeaders: pulumi.StringMap{
"string": pulumi.String("string"),
},
Path: pulumi.String("string"),
Port: pulumi.Int(0),
Scheme: pulumi.String("string"),
},
InitialDelaySeconds: pulumi.Int(0),
PeriodSeconds: pulumi.Int(0),
SuccessThreshold: pulumi.Int(0),
TcpSocket: &cpln.WorkloadContainerLivenessProbeTcpSocketArgs{
_sentinel: pulumi.Bool(false),
Port: pulumi.Int(0),
},
TimeoutSeconds: pulumi.Int(0),
},
MinCpu: pulumi.String("string"),
GpuNvidia: &cpln.WorkloadContainerGpuNvidiaArgs{
Model: pulumi.String("string"),
Quantity: pulumi.Int(0),
},
Cpu: pulumi.String("string"),
InheritEnv: pulumi.Bool(false),
Lifecycle: &cpln.WorkloadContainerLifecycleArgs{
_sentinel: pulumi.Bool(false),
PostStart: &cpln.WorkloadContainerLifecyclePostStartArgs{
Exec: &cpln.WorkloadContainerLifecyclePostStartExecArgs{
Commands: pulumi.StringArray{
pulumi.String("string"),
},
},
},
PreStop: &cpln.WorkloadContainerLifecyclePreStopArgs{
Exec: &cpln.WorkloadContainerLifecyclePreStopExecArgs{
Commands: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
Args: pulumi.StringArray{
pulumi.String("string"),
},
Memory: pulumi.String("string"),
Metrics: &cpln.WorkloadContainerMetricsArgs{
Path: pulumi.String("string"),
Port: pulumi.Int(0),
},
Env: pulumi.StringMap{
"string": pulumi.String("string"),
},
MinMemory: pulumi.String("string"),
Command: pulumi.String("string"),
Ports: cpln.WorkloadContainerPortArray{
&cpln.WorkloadContainerPortArgs{
Number: pulumi.Int(0),
Protocol: pulumi.String("string"),
},
},
ReadinessProbe: &cpln.WorkloadContainerReadinessProbeArgs{
Exec: &cpln.WorkloadContainerReadinessProbeExecArgs{
Commands: pulumi.StringArray{
pulumi.String("string"),
},
},
FailureThreshold: pulumi.Int(0),
Grpc: &cpln.WorkloadContainerReadinessProbeGrpcArgs{
_sentinel: pulumi.Bool(false),
Port: pulumi.Int(0),
},
HttpGet: &cpln.WorkloadContainerReadinessProbeHttpGetArgs{
HttpHeaders: pulumi.StringMap{
"string": pulumi.String("string"),
},
Path: pulumi.String("string"),
Port: pulumi.Int(0),
Scheme: pulumi.String("string"),
},
InitialDelaySeconds: pulumi.Int(0),
PeriodSeconds: pulumi.Int(0),
SuccessThreshold: pulumi.Int(0),
TcpSocket: &cpln.WorkloadContainerReadinessProbeTcpSocketArgs{
_sentinel: pulumi.Bool(false),
Port: pulumi.Int(0),
},
TimeoutSeconds: pulumi.Int(0),
},
Volumes: cpln.WorkloadContainerVolumeArray{
&cpln.WorkloadContainerVolumeArgs{
Path: pulumi.String("string"),
Uri: pulumi.String("string"),
RecoveryPolicy: pulumi.String("string"),
},
},
WorkingDirectory: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
IdentityLink: pulumi.String("string"),
Job: &cpln.WorkloadJobArgs{
Schedule: pulumi.String("string"),
ActiveDeadlineSeconds: pulumi.Int(0),
ConcurrencyPolicy: pulumi.String("string"),
HistoryLimit: pulumi.Int(0),
RestartPolicy: pulumi.String("string"),
},
LoadBalancer: &cpln.WorkloadLoadBalancerArgs{
_sentinel: pulumi.Bool(false),
Direct: &cpln.WorkloadLoadBalancerDirectArgs{
Enabled: pulumi.Bool(false),
Ports: cpln.WorkloadLoadBalancerDirectPortArray{
&cpln.WorkloadLoadBalancerDirectPortArgs{
ExternalPort: pulumi.Int(0),
Protocol: pulumi.String("string"),
ContainerPort: pulumi.Int(0),
Scheme: pulumi.String("string"),
},
},
},
GeoLocation: &cpln.WorkloadLoadBalancerGeoLocationArgs{
Enabled: pulumi.Bool(false),
Headers: &cpln.WorkloadLoadBalancerGeoLocationHeadersArgs{
Asn: pulumi.String("string"),
City: pulumi.String("string"),
Country: pulumi.String("string"),
Region: pulumi.String("string"),
},
},
},
LocalOptions: cpln.WorkloadLocalOptionArray{
&cpln.WorkloadLocalOptionArgs{
Location: pulumi.String("string"),
Autoscaling: &cpln.WorkloadLocalOptionAutoscalingArgs{
MaxConcurrency: pulumi.Int(0),
MaxScale: pulumi.Int(0),
Metric: pulumi.String("string"),
MetricPercentile: pulumi.String("string"),
MinScale: pulumi.Int(0),
Multis: cpln.WorkloadLocalOptionAutoscalingMultiArray{
&cpln.WorkloadLocalOptionAutoscalingMultiArgs{
Metric: pulumi.String("string"),
Target: pulumi.Int(0),
},
},
ScaleToZeroDelay: pulumi.Int(0),
Target: pulumi.Int(0),
},
CapacityAi: pulumi.Bool(false),
Debug: pulumi.Bool(false),
Suspend: pulumi.Bool(false),
TimeoutSeconds: pulumi.Int(0),
},
},
FirewallSpec: &cpln.WorkloadFirewallSpecArgs{
_sentinel: pulumi.Bool(false),
External: &cpln.WorkloadFirewallSpecExternalArgs{
InboundAllowCidrs: pulumi.StringArray{
pulumi.String("string"),
},
OutboundAllowCidrs: pulumi.StringArray{
pulumi.String("string"),
},
OutboundAllowHostnames: pulumi.StringArray{
pulumi.String("string"),
},
OutboundAllowPorts: cpln.WorkloadFirewallSpecExternalOutboundAllowPortArray{
&cpln.WorkloadFirewallSpecExternalOutboundAllowPortArgs{
Number: pulumi.Int(0),
Protocol: pulumi.String("string"),
},
},
},
Internal: &cpln.WorkloadFirewallSpecInternalArgs{
InboundAllowType: pulumi.String("string"),
InboundAllowWorkloads: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Options: &cpln.WorkloadOptionsArgs{
Autoscaling: &cpln.WorkloadOptionsAutoscalingArgs{
MaxConcurrency: pulumi.Int(0),
MaxScale: pulumi.Int(0),
Metric: pulumi.String("string"),
MetricPercentile: pulumi.String("string"),
MinScale: pulumi.Int(0),
Multis: cpln.WorkloadOptionsAutoscalingMultiArray{
&cpln.WorkloadOptionsAutoscalingMultiArgs{
Metric: pulumi.String("string"),
Target: pulumi.Int(0),
},
},
ScaleToZeroDelay: pulumi.Int(0),
Target: pulumi.Int(0),
},
CapacityAi: pulumi.Bool(false),
Debug: pulumi.Bool(false),
Suspend: pulumi.Bool(false),
TimeoutSeconds: pulumi.Int(0),
},
RolloutOptions: &cpln.WorkloadRolloutOptionsArgs{
MaxSurgeReplicas: pulumi.String("string"),
MaxUnavailableReplicas: pulumi.String("string"),
MinReadySeconds: pulumi.Int(0),
ScalingPolicy: pulumi.String("string"),
},
SecurityOptions: &cpln.WorkloadSecurityOptionsArgs{
_sentinel: pulumi.Bool(false),
FileSystemGroupId: pulumi.Int(0),
},
Sidecar: &cpln.WorkloadSidecarArgs{
Envoy: pulumi.String("string"),
},
SupportDynamicTags: pulumi.Bool(false),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
})
var workloadResource = new Workload("workloadResource", WorkloadArgs.builder()
.gvc("string")
.type("string")
.containers(WorkloadContainerArgs.builder()
.image("string")
.name("string")
.livenessProbe(WorkloadContainerLivenessProbeArgs.builder()
.exec(WorkloadContainerLivenessProbeExecArgs.builder()
.commands("string")
.build())
.failureThreshold(0)
.grpc(WorkloadContainerLivenessProbeGrpcArgs.builder()
._sentinel(false)
.port(0)
.build())
.httpGet(WorkloadContainerLivenessProbeHttpGetArgs.builder()
.httpHeaders(Map.of("string", "string"))
.path("string")
.port(0)
.scheme("string")
.build())
.initialDelaySeconds(0)
.periodSeconds(0)
.successThreshold(0)
.tcpSocket(WorkloadContainerLivenessProbeTcpSocketArgs.builder()
._sentinel(false)
.port(0)
.build())
.timeoutSeconds(0)
.build())
.minCpu("string")
.gpuNvidia(WorkloadContainerGpuNvidiaArgs.builder()
.model("string")
.quantity(0)
.build())
.cpu("string")
.inheritEnv(false)
.lifecycle(WorkloadContainerLifecycleArgs.builder()
._sentinel(false)
.postStart(WorkloadContainerLifecyclePostStartArgs.builder()
.exec(WorkloadContainerLifecyclePostStartExecArgs.builder()
.commands("string")
.build())
.build())
.preStop(WorkloadContainerLifecyclePreStopArgs.builder()
.exec(WorkloadContainerLifecyclePreStopExecArgs.builder()
.commands("string")
.build())
.build())
.build())
.args("string")
.memory("string")
.metrics(WorkloadContainerMetricsArgs.builder()
.path("string")
.port(0)
.build())
.env(Map.of("string", "string"))
.minMemory("string")
.command("string")
.ports(WorkloadContainerPortArgs.builder()
.number(0)
.protocol("string")
.build())
.readinessProbe(WorkloadContainerReadinessProbeArgs.builder()
.exec(WorkloadContainerReadinessProbeExecArgs.builder()
.commands("string")
.build())
.failureThreshold(0)
.grpc(WorkloadContainerReadinessProbeGrpcArgs.builder()
._sentinel(false)
.port(0)
.build())
.httpGet(WorkloadContainerReadinessProbeHttpGetArgs.builder()
.httpHeaders(Map.of("string", "string"))
.path("string")
.port(0)
.scheme("string")
.build())
.initialDelaySeconds(0)
.periodSeconds(0)
.successThreshold(0)
.tcpSocket(WorkloadContainerReadinessProbeTcpSocketArgs.builder()
._sentinel(false)
.port(0)
.build())
.timeoutSeconds(0)
.build())
.volumes(WorkloadContainerVolumeArgs.builder()
.path("string")
.uri("string")
.recoveryPolicy("string")
.build())
.workingDirectory("string")
.build())
.name("string")
.identityLink("string")
.job(WorkloadJobArgs.builder()
.schedule("string")
.activeDeadlineSeconds(0)
.concurrencyPolicy("string")
.historyLimit(0)
.restartPolicy("string")
.build())
.loadBalancer(WorkloadLoadBalancerArgs.builder()
._sentinel(false)
.direct(WorkloadLoadBalancerDirectArgs.builder()
.enabled(false)
.ports(WorkloadLoadBalancerDirectPortArgs.builder()
.externalPort(0)
.protocol("string")
.containerPort(0)
.scheme("string")
.build())
.build())
.geoLocation(WorkloadLoadBalancerGeoLocationArgs.builder()
.enabled(false)
.headers(WorkloadLoadBalancerGeoLocationHeadersArgs.builder()
.asn("string")
.city("string")
.country("string")
.region("string")
.build())
.build())
.build())
.localOptions(WorkloadLocalOptionArgs.builder()
.location("string")
.autoscaling(WorkloadLocalOptionAutoscalingArgs.builder()
.maxConcurrency(0)
.maxScale(0)
.metric("string")
.metricPercentile("string")
.minScale(0)
.multis(WorkloadLocalOptionAutoscalingMultiArgs.builder()
.metric("string")
.target(0)
.build())
.scaleToZeroDelay(0)
.target(0)
.build())
.capacityAi(false)
.debug(false)
.suspend(false)
.timeoutSeconds(0)
.build())
.firewallSpec(WorkloadFirewallSpecArgs.builder()
._sentinel(false)
.external(WorkloadFirewallSpecExternalArgs.builder()
.inboundAllowCidrs("string")
.outboundAllowCidrs("string")
.outboundAllowHostnames("string")
.outboundAllowPorts(WorkloadFirewallSpecExternalOutboundAllowPortArgs.builder()
.number(0)
.protocol("string")
.build())
.build())
.internal(WorkloadFirewallSpecInternalArgs.builder()
.inboundAllowType("string")
.inboundAllowWorkloads("string")
.build())
.build())
.options(WorkloadOptionsArgs.builder()
.autoscaling(WorkloadOptionsAutoscalingArgs.builder()
.maxConcurrency(0)
.maxScale(0)
.metric("string")
.metricPercentile("string")
.minScale(0)
.multis(WorkloadOptionsAutoscalingMultiArgs.builder()
.metric("string")
.target(0)
.build())
.scaleToZeroDelay(0)
.target(0)
.build())
.capacityAi(false)
.debug(false)
.suspend(false)
.timeoutSeconds(0)
.build())
.rolloutOptions(WorkloadRolloutOptionsArgs.builder()
.maxSurgeReplicas("string")
.maxUnavailableReplicas("string")
.minReadySeconds(0)
.scalingPolicy("string")
.build())
.securityOptions(WorkloadSecurityOptionsArgs.builder()
._sentinel(false)
.fileSystemGroupId(0)
.build())
.sidecar(WorkloadSidecarArgs.builder()
.envoy("string")
.build())
.supportDynamicTags(false)
.tags(Map.of("string", "string"))
.description("string")
.build());
workload_resource = cpln.Workload("workloadResource",
gvc="string",
type="string",
containers=[{
"image": "string",
"name": "string",
"liveness_probe": {
"exec_": {
"commands": ["string"],
},
"failure_threshold": 0,
"grpc": {
"_sentinel": False,
"port": 0,
},
"http_get": {
"http_headers": {
"string": "string",
},
"path": "string",
"port": 0,
"scheme": "string",
},
"initial_delay_seconds": 0,
"period_seconds": 0,
"success_threshold": 0,
"tcp_socket": {
"_sentinel": False,
"port": 0,
},
"timeout_seconds": 0,
},
"min_cpu": "string",
"gpu_nvidia": {
"model": "string",
"quantity": 0,
},
"cpu": "string",
"inherit_env": False,
"lifecycle": {
"_sentinel": False,
"post_start": {
"exec_": {
"commands": ["string"],
},
},
"pre_stop": {
"exec_": {
"commands": ["string"],
},
},
},
"args": ["string"],
"memory": "string",
"metrics": {
"path": "string",
"port": 0,
},
"env": {
"string": "string",
},
"min_memory": "string",
"command": "string",
"ports": [{
"number": 0,
"protocol": "string",
}],
"readiness_probe": {
"exec_": {
"commands": ["string"],
},
"failure_threshold": 0,
"grpc": {
"_sentinel": False,
"port": 0,
},
"http_get": {
"http_headers": {
"string": "string",
},
"path": "string",
"port": 0,
"scheme": "string",
},
"initial_delay_seconds": 0,
"period_seconds": 0,
"success_threshold": 0,
"tcp_socket": {
"_sentinel": False,
"port": 0,
},
"timeout_seconds": 0,
},
"volumes": [{
"path": "string",
"uri": "string",
"recovery_policy": "string",
}],
"working_directory": "string",
}],
name="string",
identity_link="string",
job={
"schedule": "string",
"active_deadline_seconds": 0,
"concurrency_policy": "string",
"history_limit": 0,
"restart_policy": "string",
},
load_balancer={
"_sentinel": False,
"direct": {
"enabled": False,
"ports": [{
"external_port": 0,
"protocol": "string",
"container_port": 0,
"scheme": "string",
}],
},
"geo_location": {
"enabled": False,
"headers": {
"asn": "string",
"city": "string",
"country": "string",
"region": "string",
},
},
},
local_options=[{
"location": "string",
"autoscaling": {
"max_concurrency": 0,
"max_scale": 0,
"metric": "string",
"metric_percentile": "string",
"min_scale": 0,
"multis": [{
"metric": "string",
"target": 0,
}],
"scale_to_zero_delay": 0,
"target": 0,
},
"capacity_ai": False,
"debug": False,
"suspend": False,
"timeout_seconds": 0,
}],
firewall_spec={
"_sentinel": False,
"external": {
"inbound_allow_cidrs": ["string"],
"outbound_allow_cidrs": ["string"],
"outbound_allow_hostnames": ["string"],
"outbound_allow_ports": [{
"number": 0,
"protocol": "string",
}],
},
"internal": {
"inbound_allow_type": "string",
"inbound_allow_workloads": ["string"],
},
},
options={
"autoscaling": {
"max_concurrency": 0,
"max_scale": 0,
"metric": "string",
"metric_percentile": "string",
"min_scale": 0,
"multis": [{
"metric": "string",
"target": 0,
}],
"scale_to_zero_delay": 0,
"target": 0,
},
"capacity_ai": False,
"debug": False,
"suspend": False,
"timeout_seconds": 0,
},
rollout_options={
"max_surge_replicas": "string",
"max_unavailable_replicas": "string",
"min_ready_seconds": 0,
"scaling_policy": "string",
},
security_options={
"_sentinel": False,
"file_system_group_id": 0,
},
sidecar={
"envoy": "string",
},
support_dynamic_tags=False,
tags={
"string": "string",
},
description="string")
const workloadResource = new cpln.Workload("workloadResource", {
gvc: "string",
type: "string",
containers: [{
image: "string",
name: "string",
livenessProbe: {
exec: {
commands: ["string"],
},
failureThreshold: 0,
grpc: {
_sentinel: false,
port: 0,
},
httpGet: {
httpHeaders: {
string: "string",
},
path: "string",
port: 0,
scheme: "string",
},
initialDelaySeconds: 0,
periodSeconds: 0,
successThreshold: 0,
tcpSocket: {
_sentinel: false,
port: 0,
},
timeoutSeconds: 0,
},
minCpu: "string",
gpuNvidia: {
model: "string",
quantity: 0,
},
cpu: "string",
inheritEnv: false,
lifecycle: {
_sentinel: false,
postStart: {
exec: {
commands: ["string"],
},
},
preStop: {
exec: {
commands: ["string"],
},
},
},
args: ["string"],
memory: "string",
metrics: {
path: "string",
port: 0,
},
env: {
string: "string",
},
minMemory: "string",
command: "string",
ports: [{
number: 0,
protocol: "string",
}],
readinessProbe: {
exec: {
commands: ["string"],
},
failureThreshold: 0,
grpc: {
_sentinel: false,
port: 0,
},
httpGet: {
httpHeaders: {
string: "string",
},
path: "string",
port: 0,
scheme: "string",
},
initialDelaySeconds: 0,
periodSeconds: 0,
successThreshold: 0,
tcpSocket: {
_sentinel: false,
port: 0,
},
timeoutSeconds: 0,
},
volumes: [{
path: "string",
uri: "string",
recoveryPolicy: "string",
}],
workingDirectory: "string",
}],
name: "string",
identityLink: "string",
job: {
schedule: "string",
activeDeadlineSeconds: 0,
concurrencyPolicy: "string",
historyLimit: 0,
restartPolicy: "string",
},
loadBalancer: {
_sentinel: false,
direct: {
enabled: false,
ports: [{
externalPort: 0,
protocol: "string",
containerPort: 0,
scheme: "string",
}],
},
geoLocation: {
enabled: false,
headers: {
asn: "string",
city: "string",
country: "string",
region: "string",
},
},
},
localOptions: [{
location: "string",
autoscaling: {
maxConcurrency: 0,
maxScale: 0,
metric: "string",
metricPercentile: "string",
minScale: 0,
multis: [{
metric: "string",
target: 0,
}],
scaleToZeroDelay: 0,
target: 0,
},
capacityAi: false,
debug: false,
suspend: false,
timeoutSeconds: 0,
}],
firewallSpec: {
_sentinel: false,
external: {
inboundAllowCidrs: ["string"],
outboundAllowCidrs: ["string"],
outboundAllowHostnames: ["string"],
outboundAllowPorts: [{
number: 0,
protocol: "string",
}],
},
internal: {
inboundAllowType: "string",
inboundAllowWorkloads: ["string"],
},
},
options: {
autoscaling: {
maxConcurrency: 0,
maxScale: 0,
metric: "string",
metricPercentile: "string",
minScale: 0,
multis: [{
metric: "string",
target: 0,
}],
scaleToZeroDelay: 0,
target: 0,
},
capacityAi: false,
debug: false,
suspend: false,
timeoutSeconds: 0,
},
rolloutOptions: {
maxSurgeReplicas: "string",
maxUnavailableReplicas: "string",
minReadySeconds: 0,
scalingPolicy: "string",
},
securityOptions: {
_sentinel: false,
fileSystemGroupId: 0,
},
sidecar: {
envoy: "string",
},
supportDynamicTags: false,
tags: {
string: "string",
},
description: "string",
});
type: cpln:Workload
properties:
containers:
- args:
- string
command: string
cpu: string
env:
string: string
gpuNvidia:
model: string
quantity: 0
image: string
inheritEnv: false
lifecycle:
_sentinel: false
postStart:
exec:
commands:
- string
preStop:
exec:
commands:
- string
livenessProbe:
exec:
commands:
- string
failureThreshold: 0
grpc:
_sentinel: false
port: 0
httpGet:
httpHeaders:
string: string
path: string
port: 0
scheme: string
initialDelaySeconds: 0
periodSeconds: 0
successThreshold: 0
tcpSocket:
_sentinel: false
port: 0
timeoutSeconds: 0
memory: string
metrics:
path: string
port: 0
minCpu: string
minMemory: string
name: string
ports:
- number: 0
protocol: string
readinessProbe:
exec:
commands:
- string
failureThreshold: 0
grpc:
_sentinel: false
port: 0
httpGet:
httpHeaders:
string: string
path: string
port: 0
scheme: string
initialDelaySeconds: 0
periodSeconds: 0
successThreshold: 0
tcpSocket:
_sentinel: false
port: 0
timeoutSeconds: 0
volumes:
- path: string
recoveryPolicy: string
uri: string
workingDirectory: string
description: string
firewallSpec:
_sentinel: false
external:
inboundAllowCidrs:
- string
outboundAllowCidrs:
- string
outboundAllowHostnames:
- string
outboundAllowPorts:
- number: 0
protocol: string
internal:
inboundAllowType: string
inboundAllowWorkloads:
- string
gvc: string
identityLink: string
job:
activeDeadlineSeconds: 0
concurrencyPolicy: string
historyLimit: 0
restartPolicy: string
schedule: string
loadBalancer:
_sentinel: false
direct:
enabled: false
ports:
- containerPort: 0
externalPort: 0
protocol: string
scheme: string
geoLocation:
enabled: false
headers:
asn: string
city: string
country: string
region: string
localOptions:
- autoscaling:
maxConcurrency: 0
maxScale: 0
metric: string
metricPercentile: string
minScale: 0
multis:
- metric: string
target: 0
scaleToZeroDelay: 0
target: 0
capacityAi: false
debug: false
location: string
suspend: false
timeoutSeconds: 0
name: string
options:
autoscaling:
maxConcurrency: 0
maxScale: 0
metric: string
metricPercentile: string
minScale: 0
multis:
- metric: string
target: 0
scaleToZeroDelay: 0
target: 0
capacityAi: false
debug: false
suspend: false
timeoutSeconds: 0
rolloutOptions:
maxSurgeReplicas: string
maxUnavailableReplicas: string
minReadySeconds: 0
scalingPolicy: string
securityOptions:
_sentinel: false
fileSystemGroupId: 0
sidecar:
envoy: string
supportDynamicTags: false
tags:
string: string
type: string
Workload 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 Workload resource accepts the following input properties:
- Containers
List<Pulumiverse.
Cpln. Inputs. Workload Container> - An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- Gvc string
- Name of the associated GVC.
- Type string
- Workload Type. Either
serverless
,standard
,stateful
, orcron
. - Description string
- Description of the Workload.
- Firewall
Spec Pulumiverse.Cpln. Inputs. Workload Firewall Spec - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- Identity
Link string - Full link to an Identity.
- Job
Pulumiverse.
Cpln. Inputs. Workload Job - Cron Job Reference Page.
- Load
Balancer Pulumiverse.Cpln. Inputs. Workload Load Balancer - Local
Options List<Pulumiverse.Cpln. Inputs. Workload Local Option> - Name string
- Name of the Workload.
- Options
Pulumiverse.
Cpln. Inputs. Workload Options - Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- Rollout
Options Pulumiverse.Cpln. Inputs. Workload Rollout Options - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- Security
Options Pulumiverse.Cpln. Inputs. Workload Security Options - Allows for the configuration of the
file system group id
andgeo location
- Sidecar
Pulumiverse.
Cpln. Inputs. Workload Sidecar - bool
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- Dictionary<string, string>
- Key-value map of resource tags.
- Containers
[]Workload
Container Args - An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- Gvc string
- Name of the associated GVC.
- Type string
- Workload Type. Either
serverless
,standard
,stateful
, orcron
. - Description string
- Description of the Workload.
- Firewall
Spec WorkloadFirewall Spec Args - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- Identity
Link string - Full link to an Identity.
- Job
Workload
Job Args - Cron Job Reference Page.
- Load
Balancer WorkloadLoad Balancer Args - Local
Options []WorkloadLocal Option Args - Name string
- Name of the Workload.
- Options
Workload
Options Args - Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- Rollout
Options WorkloadRollout Options Args - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- Security
Options WorkloadSecurity Options Args - Allows for the configuration of the
file system group id
andgeo location
- Sidecar
Workload
Sidecar Args - bool
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- map[string]string
- Key-value map of resource tags.
- containers
List<Workload
Container> - An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- gvc String
- Name of the associated GVC.
- type String
- Workload Type. Either
serverless
,standard
,stateful
, orcron
. - description String
- Description of the Workload.
- firewall
Spec WorkloadFirewall Spec - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- identity
Link String - Full link to an Identity.
- job
Workload
Job - Cron Job Reference Page.
- load
Balancer WorkloadLoad Balancer - local
Options List<WorkloadLocal Option> - name String
- Name of the Workload.
- options
Workload
Options - Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- rollout
Options WorkloadRollout Options - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- security
Options WorkloadSecurity Options - Allows for the configuration of the
file system group id
andgeo location
- sidecar
Workload
Sidecar - Boolean
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- Map<String,String>
- Key-value map of resource tags.
- containers
Workload
Container[] - An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- gvc string
- Name of the associated GVC.
- type string
- Workload Type. Either
serverless
,standard
,stateful
, orcron
. - description string
- Description of the Workload.
- firewall
Spec WorkloadFirewall Spec - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- identity
Link string - Full link to an Identity.
- job
Workload
Job - Cron Job Reference Page.
- load
Balancer WorkloadLoad Balancer - local
Options WorkloadLocal Option[] - name string
- Name of the Workload.
- options
Workload
Options - Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- rollout
Options WorkloadRollout Options - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- security
Options WorkloadSecurity Options - Allows for the configuration of the
file system group id
andgeo location
- sidecar
Workload
Sidecar - boolean
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- {[key: string]: string}
- Key-value map of resource tags.
- containers
Sequence[Workload
Container Args] - An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- gvc str
- Name of the associated GVC.
- type str
- Workload Type. Either
serverless
,standard
,stateful
, orcron
. - description str
- Description of the Workload.
- firewall_
spec WorkloadFirewall Spec Args - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- identity_
link str - Full link to an Identity.
- job
Workload
Job Args - Cron Job Reference Page.
- load_
balancer WorkloadLoad Balancer Args - local_
options Sequence[WorkloadLocal Option Args] - name str
- Name of the Workload.
- options
Workload
Options Args - Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- rollout_
options WorkloadRollout Options Args - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- security_
options WorkloadSecurity Options Args - Allows for the configuration of the
file system group id
andgeo location
- sidecar
Workload
Sidecar Args - bool
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- Mapping[str, str]
- Key-value map of resource tags.
- containers List<Property Map>
- An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- gvc String
- Name of the associated GVC.
- type String
- Workload Type. Either
serverless
,standard
,stateful
, orcron
. - description String
- Description of the Workload.
- firewall
Spec Property Map - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- identity
Link String - Full link to an Identity.
- job Property Map
- Cron Job Reference Page.
- load
Balancer Property Map - local
Options List<Property Map> - name String
- Name of the Workload.
- options Property Map
- Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- rollout
Options Property Map - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- security
Options Property Map - Allows for the configuration of the
file system group id
andgeo location
- sidecar Property Map
- Boolean
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- Map<String>
- Key-value map of resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Workload resource produces the following output properties:
- Cpln
Id string - The ID, in GUID format, of the Workload.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Statuses
List<Pulumiverse.
Cpln. Outputs. Workload Status> - Status of the workload.
- Cpln
Id string - The ID, in GUID format, of the Workload.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Statuses
[]Workload
Status - Status of the workload.
- cpln
Id String - The ID, in GUID format, of the Workload.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String - Full link to this resource. Can be referenced by other resources.
- statuses
List<Workload
Status> - Status of the workload.
- cpln
Id string - The ID, in GUID format, of the Workload.
- id string
- The provider-assigned unique ID for this managed resource.
- self
Link string - Full link to this resource. Can be referenced by other resources.
- statuses
Workload
Status[] - Status of the workload.
- cpln_
id str - The ID, in GUID format, of the Workload.
- id str
- The provider-assigned unique ID for this managed resource.
- self_
link str - Full link to this resource. Can be referenced by other resources.
- statuses
Sequence[Workload
Status] - Status of the workload.
- cpln
Id String - The ID, in GUID format, of the Workload.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String - Full link to this resource. Can be referenced by other resources.
- statuses List<Property Map>
- Status of the workload.
Look up Existing Workload Resource
Get an existing Workload resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: WorkloadState, opts?: CustomResourceOptions): Workload
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
containers: Optional[Sequence[WorkloadContainerArgs]] = None,
cpln_id: Optional[str] = None,
description: Optional[str] = None,
firewall_spec: Optional[WorkloadFirewallSpecArgs] = None,
gvc: Optional[str] = None,
identity_link: Optional[str] = None,
job: Optional[WorkloadJobArgs] = None,
load_balancer: Optional[WorkloadLoadBalancerArgs] = None,
local_options: Optional[Sequence[WorkloadLocalOptionArgs]] = None,
name: Optional[str] = None,
options: Optional[WorkloadOptionsArgs] = None,
rollout_options: Optional[WorkloadRolloutOptionsArgs] = None,
security_options: Optional[WorkloadSecurityOptionsArgs] = None,
self_link: Optional[str] = None,
sidecar: Optional[WorkloadSidecarArgs] = None,
statuses: Optional[Sequence[WorkloadStatusArgs]] = None,
support_dynamic_tags: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
type: Optional[str] = None) -> Workload
func GetWorkload(ctx *Context, name string, id IDInput, state *WorkloadState, opts ...ResourceOption) (*Workload, error)
public static Workload Get(string name, Input<string> id, WorkloadState? state, CustomResourceOptions? opts = null)
public static Workload get(String name, Output<String> id, WorkloadState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Containers
List<Pulumiverse.
Cpln. Inputs. Workload Container> - An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- Cpln
Id string - The ID, in GUID format, of the Workload.
- Description string
- Description of the Workload.
- Firewall
Spec Pulumiverse.Cpln. Inputs. Workload Firewall Spec - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- Gvc string
- Name of the associated GVC.
- Identity
Link string - Full link to an Identity.
- Job
Pulumiverse.
Cpln. Inputs. Workload Job - Cron Job Reference Page.
- Load
Balancer Pulumiverse.Cpln. Inputs. Workload Load Balancer - Local
Options List<Pulumiverse.Cpln. Inputs. Workload Local Option> - Name string
- Name of the Workload.
- Options
Pulumiverse.
Cpln. Inputs. Workload Options - Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- Rollout
Options Pulumiverse.Cpln. Inputs. Workload Rollout Options - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- Security
Options Pulumiverse.Cpln. Inputs. Workload Security Options - Allows for the configuration of the
file system group id
andgeo location
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Sidecar
Pulumiverse.
Cpln. Inputs. Workload Sidecar - Statuses
List<Pulumiverse.
Cpln. Inputs. Workload Status> - Status of the workload.
- bool
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- Dictionary<string, string>
- Key-value map of resource tags.
- Type string
- Workload Type. Either
serverless
,standard
,stateful
, orcron
.
- Containers
[]Workload
Container Args - An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- Cpln
Id string - The ID, in GUID format, of the Workload.
- Description string
- Description of the Workload.
- Firewall
Spec WorkloadFirewall Spec Args - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- Gvc string
- Name of the associated GVC.
- Identity
Link string - Full link to an Identity.
- Job
Workload
Job Args - Cron Job Reference Page.
- Load
Balancer WorkloadLoad Balancer Args - Local
Options []WorkloadLocal Option Args - Name string
- Name of the Workload.
- Options
Workload
Options Args - Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- Rollout
Options WorkloadRollout Options Args - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- Security
Options WorkloadSecurity Options Args - Allows for the configuration of the
file system group id
andgeo location
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Sidecar
Workload
Sidecar Args - Statuses
[]Workload
Status Args - Status of the workload.
- bool
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- map[string]string
- Key-value map of resource tags.
- Type string
- Workload Type. Either
serverless
,standard
,stateful
, orcron
.
- containers
List<Workload
Container> - An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- cpln
Id String - The ID, in GUID format, of the Workload.
- description String
- Description of the Workload.
- firewall
Spec WorkloadFirewall Spec - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- gvc String
- Name of the associated GVC.
- identity
Link String - Full link to an Identity.
- job
Workload
Job - Cron Job Reference Page.
- load
Balancer WorkloadLoad Balancer - local
Options List<WorkloadLocal Option> - name String
- Name of the Workload.
- options
Workload
Options - Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- rollout
Options WorkloadRollout Options - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- security
Options WorkloadSecurity Options - Allows for the configuration of the
file system group id
andgeo location
- self
Link String - Full link to this resource. Can be referenced by other resources.
- sidecar
Workload
Sidecar - statuses
List<Workload
Status> - Status of the workload.
- Boolean
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- Map<String,String>
- Key-value map of resource tags.
- type String
- Workload Type. Either
serverless
,standard
,stateful
, orcron
.
- containers
Workload
Container[] - An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- cpln
Id string - The ID, in GUID format, of the Workload.
- description string
- Description of the Workload.
- firewall
Spec WorkloadFirewall Spec - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- gvc string
- Name of the associated GVC.
- identity
Link string - Full link to an Identity.
- job
Workload
Job - Cron Job Reference Page.
- load
Balancer WorkloadLoad Balancer - local
Options WorkloadLocal Option[] - name string
- Name of the Workload.
- options
Workload
Options - Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- rollout
Options WorkloadRollout Options - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- security
Options WorkloadSecurity Options - Allows for the configuration of the
file system group id
andgeo location
- self
Link string - Full link to this resource. Can be referenced by other resources.
- sidecar
Workload
Sidecar - statuses
Workload
Status[] - Status of the workload.
- boolean
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- {[key: string]: string}
- Key-value map of resource tags.
- type string
- Workload Type. Either
serverless
,standard
,stateful
, orcron
.
- containers
Sequence[Workload
Container Args] - An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- cpln_
id str - The ID, in GUID format, of the Workload.
- description str
- Description of the Workload.
- firewall_
spec WorkloadFirewall Spec Args - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- gvc str
- Name of the associated GVC.
- identity_
link str - Full link to an Identity.
- job
Workload
Job Args - Cron Job Reference Page.
- load_
balancer WorkloadLoad Balancer Args - local_
options Sequence[WorkloadLocal Option Args] - name str
- Name of the Workload.
- options
Workload
Options Args - Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- rollout_
options WorkloadRollout Options Args - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- security_
options WorkloadSecurity Options Args - Allows for the configuration of the
file system group id
andgeo location
- self_
link str - Full link to this resource. Can be referenced by other resources.
- sidecar
Workload
Sidecar Args - statuses
Sequence[Workload
Status Args] - Status of the workload.
- bool
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- Mapping[str, str]
- Key-value map of resource tags.
- type str
- Workload Type. Either
serverless
,standard
,stateful
, orcron
.
- containers List<Property Map>
- An isolated and lightweight runtime environment that encapsulates an application and its dependencies.
- cpln
Id String - The ID, in GUID format, of the Workload.
- description String
- Description of the Workload.
- firewall
Spec Property Map - Control of inbound and outbound access to the workload for external (public) and internal (service to service) traffic. Access is restricted by default.
- gvc String
- Name of the associated GVC.
- identity
Link String - Full link to an Identity.
- job Property Map
- Cron Job Reference Page.
- load
Balancer Property Map - local
Options List<Property Map> - name String
- Name of the Workload.
- options Property Map
- Configurable settings or parameters that allow fine-tuning and customization of the behavior, performance, and characteristics of the workload.
- rollout
Options Property Map - Defines the parameters for updating applications and services, including settings for minimum readiness, unavailable replicas, surge replicas, and scaling policies.
- security
Options Property Map - Allows for the configuration of the
file system group id
andgeo location
- self
Link String - Full link to this resource. Can be referenced by other resources.
- sidecar Property Map
- statuses List<Property Map>
- Status of the workload.
- Boolean
- Workload will automatically redeploy when one of the container images is updated in the container registry. Default: false.
- Map<String>
- Key-value map of resource tags.
- type String
- Workload Type. Either
serverless
,standard
,stateful
, orcron
.
Supporting Types
WorkloadContainer, WorkloadContainerArgs
- Image string
- Name string
- Args List<string>
- Command string
- Cpu string
- Env Dictionary<string, string>
- Gpu
Nvidia Pulumiverse.Cpln. Inputs. Workload Container Gpu Nvidia - Inherit
Env bool - Lifecycle
Pulumiverse.
Cpln. Inputs. Workload Container Lifecycle - Liveness
Probe Pulumiverse.Cpln. Inputs. Workload Container Liveness Probe - Memory string
- Metrics
Pulumiverse.
Cpln. Inputs. Workload Container Metrics - Min
Cpu string - Min
Memory string - Port int
- Ports
List<Pulumiverse.
Cpln. Inputs. Workload Container Port> - Readiness
Probe Pulumiverse.Cpln. Inputs. Workload Container Readiness Probe - Volumes
List<Pulumiverse.
Cpln. Inputs. Workload Container Volume> - Working
Directory string
- Image string
- Name string
- Args []string
- Command string
- Cpu string
- Env map[string]string
- Gpu
Nvidia WorkloadContainer Gpu Nvidia - Inherit
Env bool - Lifecycle
Workload
Container Lifecycle - Liveness
Probe WorkloadContainer Liveness Probe - Memory string
- Metrics
Workload
Container Metrics - Min
Cpu string - Min
Memory string - Port int
- Ports
[]Workload
Container Port - Readiness
Probe WorkloadContainer Readiness Probe - Volumes
[]Workload
Container Volume - Working
Directory string
- image String
- name String
- args List<String>
- command String
- cpu String
- env Map<String,String>
- gpu
Nvidia WorkloadContainer Gpu Nvidia - inherit
Env Boolean - lifecycle
Workload
Container Lifecycle - liveness
Probe WorkloadContainer Liveness Probe - memory String
- metrics
Workload
Container Metrics - min
Cpu String - min
Memory String - port Integer
- ports
List<Workload
Container Port> - readiness
Probe WorkloadContainer Readiness Probe - volumes
List<Workload
Container Volume> - working
Directory String
- image string
- name string
- args string[]
- command string
- cpu string
- env {[key: string]: string}
- gpu
Nvidia WorkloadContainer Gpu Nvidia - inherit
Env boolean - lifecycle
Workload
Container Lifecycle - liveness
Probe WorkloadContainer Liveness Probe - memory string
- metrics
Workload
Container Metrics - min
Cpu string - min
Memory string - port number
- ports
Workload
Container Port[] - readiness
Probe WorkloadContainer Readiness Probe - volumes
Workload
Container Volume[] - working
Directory string
- image str
- name str
- args Sequence[str]
- command str
- cpu str
- env Mapping[str, str]
- gpu_
nvidia WorkloadContainer Gpu Nvidia - inherit_
env bool - lifecycle
Workload
Container Lifecycle - liveness_
probe WorkloadContainer Liveness Probe - memory str
- metrics
Workload
Container Metrics - min_
cpu str - min_
memory str - port int
- ports
Sequence[Workload
Container Port] - readiness_
probe WorkloadContainer Readiness Probe - volumes
Sequence[Workload
Container Volume] - working_
directory str
- image String
- name String
- args List<String>
- command String
- cpu String
- env Map<String>
- gpu
Nvidia Property Map - inherit
Env Boolean - lifecycle Property Map
- liveness
Probe Property Map - memory String
- metrics Property Map
- min
Cpu String - min
Memory String - port Number
- ports List<Property Map>
- readiness
Probe Property Map - volumes List<Property Map>
- working
Directory String
WorkloadContainerGpuNvidia, WorkloadContainerGpuNvidiaArgs
WorkloadContainerLifecycle, WorkloadContainerLifecycleArgs
WorkloadContainerLifecyclePostStart, WorkloadContainerLifecyclePostStartArgs
WorkloadContainerLifecyclePostStartExec, WorkloadContainerLifecyclePostStartExecArgs
- Commands List<string>
- Commands []string
- commands List<String>
- commands string[]
- commands Sequence[str]
- commands List<String>
WorkloadContainerLifecyclePreStop, WorkloadContainerLifecyclePreStopArgs
WorkloadContainerLifecyclePreStopExec, WorkloadContainerLifecyclePreStopExecArgs
- Commands List<string>
- Commands []string
- commands List<String>
- commands string[]
- commands Sequence[str]
- commands List<String>
WorkloadContainerLivenessProbe, WorkloadContainerLivenessProbeArgs
- Exec
Pulumiverse.
Cpln. Inputs. Workload Container Liveness Probe Exec - Failure
Threshold int - Grpc
Pulumiverse.
Cpln. Inputs. Workload Container Liveness Probe Grpc - Http
Get Pulumiverse.Cpln. Inputs. Workload Container Liveness Probe Http Get - Initial
Delay intSeconds - Period
Seconds int - Success
Threshold int - Tcp
Socket Pulumiverse.Cpln. Inputs. Workload Container Liveness Probe Tcp Socket - Timeout
Seconds int
- exec Property Map
- failure
Threshold Number - grpc Property Map
- http
Get Property Map - initial
Delay NumberSeconds - period
Seconds Number - success
Threshold Number - tcp
Socket Property Map - timeout
Seconds Number
WorkloadContainerLivenessProbeExec, WorkloadContainerLivenessProbeExecArgs
- Commands List<string>
- Commands []string
- commands List<String>
- commands string[]
- commands Sequence[str]
- commands List<String>
WorkloadContainerLivenessProbeGrpc, WorkloadContainerLivenessProbeGrpcArgs
WorkloadContainerLivenessProbeHttpGet, WorkloadContainerLivenessProbeHttpGetArgs
- Http
Headers Dictionary<string, string> - Path string
- Port int
- Scheme string
- Http
Headers map[string]string - Path string
- Port int
- Scheme string
- http
Headers Map<String,String> - path String
- port Integer
- scheme String
- http
Headers {[key: string]: string} - path string
- port number
- scheme string
- http_
headers Mapping[str, str] - path str
- port int
- scheme str
- http
Headers Map<String> - path String
- port Number
- scheme String
WorkloadContainerLivenessProbeTcpSocket, WorkloadContainerLivenessProbeTcpSocketArgs
WorkloadContainerMetrics, WorkloadContainerMetricsArgs
WorkloadContainerPort, WorkloadContainerPortArgs
WorkloadContainerReadinessProbe, WorkloadContainerReadinessProbeArgs
- Exec
Pulumiverse.
Cpln. Inputs. Workload Container Readiness Probe Exec - Failure
Threshold int - Grpc
Pulumiverse.
Cpln. Inputs. Workload Container Readiness Probe Grpc - Http
Get Pulumiverse.Cpln. Inputs. Workload Container Readiness Probe Http Get - Initial
Delay intSeconds - Period
Seconds int - Success
Threshold int - Tcp
Socket Pulumiverse.Cpln. Inputs. Workload Container Readiness Probe Tcp Socket - Timeout
Seconds int
- exec Property Map
- failure
Threshold Number - grpc Property Map
- http
Get Property Map - initial
Delay NumberSeconds - period
Seconds Number - success
Threshold Number - tcp
Socket Property Map - timeout
Seconds Number
WorkloadContainerReadinessProbeExec, WorkloadContainerReadinessProbeExecArgs
- Commands List<string>
- Commands []string
- commands List<String>
- commands string[]
- commands Sequence[str]
- commands List<String>
WorkloadContainerReadinessProbeGrpc, WorkloadContainerReadinessProbeGrpcArgs
WorkloadContainerReadinessProbeHttpGet, WorkloadContainerReadinessProbeHttpGetArgs
- Http
Headers Dictionary<string, string> - Path string
- Port int
- Scheme string
- Http
Headers map[string]string - Path string
- Port int
- Scheme string
- http
Headers Map<String,String> - path String
- port Integer
- scheme String
- http
Headers {[key: string]: string} - path string
- port number
- scheme string
- http_
headers Mapping[str, str] - path str
- port int
- scheme str
- http
Headers Map<String> - path String
- port Number
- scheme String
WorkloadContainerReadinessProbeTcpSocket, WorkloadContainerReadinessProbeTcpSocketArgs
WorkloadContainerVolume, WorkloadContainerVolumeArgs
- Path string
- Uri string
- Recovery
Policy string
- Path string
- Uri string
- Recovery
Policy string
- path String
- uri String
- recovery
Policy String
- path string
- uri string
- recovery
Policy string
- path str
- uri str
- recovery_
policy str
- path String
- uri String
- recovery
Policy String
WorkloadFirewallSpec, WorkloadFirewallSpecArgs
WorkloadFirewallSpecExternal, WorkloadFirewallSpecExternalArgs
- Inbound
Allow List<string>Cidrs - Outbound
Allow List<string>Cidrs - Outbound
Allow List<string>Hostnames - Outbound
Allow List<Pulumiverse.Ports Cpln. Inputs. Workload Firewall Spec External Outbound Allow Port>
- inbound
Allow List<String>Cidrs - outbound
Allow List<String>Cidrs - outbound
Allow List<String>Hostnames - outbound
Allow List<WorkloadPorts Firewall Spec External Outbound Allow Port>
- inbound_
allow_ Sequence[str]cidrs - outbound_
allow_ Sequence[str]cidrs - outbound_
allow_ Sequence[str]hostnames - outbound_
allow_ Sequence[Workloadports Firewall Spec External Outbound Allow Port]
- inbound
Allow List<String>Cidrs - outbound
Allow List<String>Cidrs - outbound
Allow List<String>Hostnames - outbound
Allow List<Property Map>Ports
WorkloadFirewallSpecExternalOutboundAllowPort, WorkloadFirewallSpecExternalOutboundAllowPortArgs
WorkloadFirewallSpecInternal, WorkloadFirewallSpecInternalArgs
- Inbound
Allow stringType - Inbound
Allow List<string>Workloads
- Inbound
Allow stringType - Inbound
Allow []stringWorkloads
- inbound
Allow StringType - inbound
Allow List<String>Workloads
- inbound
Allow stringType - inbound
Allow string[]Workloads
- inbound_
allow_ strtype - inbound_
allow_ Sequence[str]workloads
- inbound
Allow StringType - inbound
Allow List<String>Workloads
WorkloadJob, WorkloadJobArgs
- Schedule string
- Active
Deadline intSeconds - Concurrency
Policy string - History
Limit int - Restart
Policy string
- Schedule string
- Active
Deadline intSeconds - Concurrency
Policy string - History
Limit int - Restart
Policy string
- schedule String
- active
Deadline IntegerSeconds - concurrency
Policy String - history
Limit Integer - restart
Policy String
- schedule string
- active
Deadline numberSeconds - concurrency
Policy string - history
Limit number - restart
Policy string
- schedule str
- active_
deadline_ intseconds - concurrency_
policy str - history_
limit int - restart_
policy str
- schedule String
- active
Deadline NumberSeconds - concurrency
Policy String - history
Limit Number - restart
Policy String
WorkloadLoadBalancer, WorkloadLoadBalancerArgs
WorkloadLoadBalancerDirect, WorkloadLoadBalancerDirectArgs
- enabled Boolean
- ports List<Property Map>
WorkloadLoadBalancerDirectPort, WorkloadLoadBalancerDirectPortArgs
- External
Port int - Protocol string
- Container
Port int - Scheme string
- External
Port int - Protocol string
- Container
Port int - Scheme string
- external
Port Integer - protocol String
- container
Port Integer - scheme String
- external
Port number - protocol string
- container
Port number - scheme string
- external_
port int - protocol str
- container_
port int - scheme str
- external
Port Number - protocol String
- container
Port Number - scheme String
WorkloadLoadBalancerGeoLocation, WorkloadLoadBalancerGeoLocationArgs
- enabled Boolean
- headers Property Map
WorkloadLoadBalancerGeoLocationHeaders, WorkloadLoadBalancerGeoLocationHeadersArgs
WorkloadLocalOption, WorkloadLocalOptionArgs
- Location string
- Autoscaling
Workload
Local Option Autoscaling - Capacity
Ai bool - Debug bool
- Suspend bool
- Timeout
Seconds int
- location String
- autoscaling
Workload
Local Option Autoscaling - capacity
Ai Boolean - debug Boolean
- suspend Boolean
- timeout
Seconds Integer
- location string
- autoscaling
Workload
Local Option Autoscaling - capacity
Ai boolean - debug boolean
- suspend boolean
- timeout
Seconds number
- location str
- autoscaling
Workload
Local Option Autoscaling - capacity_
ai bool - debug bool
- suspend bool
- timeout_
seconds int
- location String
- autoscaling Property Map
- capacity
Ai Boolean - debug Boolean
- suspend Boolean
- timeout
Seconds Number
WorkloadLocalOptionAutoscaling, WorkloadLocalOptionAutoscalingArgs
- Max
Concurrency int - Max
Scale int - Metric string
- Metric
Percentile string - Min
Scale int - Multis
[]Workload
Local Option Autoscaling Multi - Scale
To intZero Delay - Target int
- max
Concurrency Integer - max
Scale Integer - metric String
- metric
Percentile String - min
Scale Integer - multis
List<Workload
Local Option Autoscaling Multi> - scale
To IntegerZero Delay - target Integer
- max
Concurrency number - max
Scale number - metric string
- metric
Percentile string - min
Scale number - multis
Workload
Local Option Autoscaling Multi[] - scale
To numberZero Delay - target number
- max
Concurrency Number - max
Scale Number - metric String
- metric
Percentile String - min
Scale Number - multis List<Property Map>
- scale
To NumberZero Delay - target Number
WorkloadLocalOptionAutoscalingMulti, WorkloadLocalOptionAutoscalingMultiArgs
WorkloadOptions, WorkloadOptionsArgs
- Autoscaling
Workload
Options Autoscaling - Capacity
Ai bool - Debug bool
- Suspend bool
- Timeout
Seconds int
- autoscaling
Workload
Options Autoscaling - capacity
Ai Boolean - debug Boolean
- suspend Boolean
- timeout
Seconds Integer
- autoscaling
Workload
Options Autoscaling - capacity
Ai boolean - debug boolean
- suspend boolean
- timeout
Seconds number
- autoscaling
Workload
Options Autoscaling - capacity_
ai bool - debug bool
- suspend bool
- timeout_
seconds int
- autoscaling Property Map
- capacity
Ai Boolean - debug Boolean
- suspend Boolean
- timeout
Seconds Number
WorkloadOptionsAutoscaling, WorkloadOptionsAutoscalingArgs
- Max
Concurrency int - Max
Scale int - Metric string
- Metric
Percentile string - Min
Scale int - Multis
[]Workload
Options Autoscaling Multi - Scale
To intZero Delay - Target int
- max
Concurrency Integer - max
Scale Integer - metric String
- metric
Percentile String - min
Scale Integer - multis
List<Workload
Options Autoscaling Multi> - scale
To IntegerZero Delay - target Integer
- max
Concurrency number - max
Scale number - metric string
- metric
Percentile string - min
Scale number - multis
Workload
Options Autoscaling Multi[] - scale
To numberZero Delay - target number
- max
Concurrency Number - max
Scale Number - metric String
- metric
Percentile String - min
Scale Number - multis List<Property Map>
- scale
To NumberZero Delay - target Number
WorkloadOptionsAutoscalingMulti, WorkloadOptionsAutoscalingMultiArgs
WorkloadRolloutOptions, WorkloadRolloutOptionsArgs
- Max
Surge stringReplicas - string
- Min
Ready intSeconds - Scaling
Policy string
- Max
Surge stringReplicas - string
- Min
Ready intSeconds - Scaling
Policy string
- max
Surge StringReplicas - String
- min
Ready IntegerSeconds - scaling
Policy String
- max
Surge stringReplicas - string
- min
Ready numberSeconds - scaling
Policy string
- max_
surge_ strreplicas - str
- min_
ready_ intseconds - scaling_
policy str
- max
Surge StringReplicas - String
- min
Ready NumberSeconds - scaling
Policy String
WorkloadSecurityOptions, WorkloadSecurityOptionsArgs
- File
System intGroup Id - _
sentinel bool
- File
System intGroup Id - _
sentinel bool
- _
sentinel Boolean - file
System IntegerGroup Id
- _
sentinel boolean - file
System numberGroup Id
- _
sentinel bool - file_
system_ intgroup_ id
- _
sentinel Boolean - file
System NumberGroup Id
WorkloadSidecar, WorkloadSidecarArgs
- Envoy string
- Envoy string
- envoy String
- envoy string
- envoy str
- envoy String
WorkloadStatus, WorkloadStatusArgs
- Canonical
Endpoint string - Current
Replica intCount - Endpoint string
- Health
Checks List<Pulumiverse.Cpln. Inputs. Workload Status Health Check> - Internal
Name string - Load
Balancers List<Pulumiverse.Cpln. Inputs. Workload Status Load Balancer> - Parent
Id string - Resolved
Images List<Pulumiverse.Cpln. Inputs. Workload Status Resolved Image>
WorkloadStatusHealthCheck, WorkloadStatusHealthCheckArgs
WorkloadStatusLoadBalancer, WorkloadStatusLoadBalancerArgs
WorkloadStatusResolvedImage, WorkloadStatusResolvedImageArgs
- images List<Property Map>
- resolved
At String - resolved
For NumberVersion
WorkloadStatusResolvedImageImage, WorkloadStatusResolvedImageImageArgs
WorkloadStatusResolvedImageImageManifest, WorkloadStatusResolvedImageImageManifestArgs
- digest str
- image str
- media_
type str - platform Mapping[str, str]
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cpln
Terraform Provider.