gcp.cloudrun.Service
Explore with Pulumi AI
A Cloud Run service has a unique endpoint and autoscales containers.
To get more information about Service, see:
- API documentation
- How-to Guides
Warning: We recommend using the
gcp.cloudrunv2.Service
resource which offers a better developer experience and broader support of Cloud Run features.
Example Usage
Cloud Run Service Pubsub
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.CloudRun.Service("default", new()
{
Location = "us-central1",
Template = new Gcp.CloudRun.Inputs.ServiceTemplateArgs
{
Spec = new Gcp.CloudRun.Inputs.ServiceTemplateSpecArgs
{
Containers = new[]
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerArgs
{
Image = "gcr.io/cloudrun/hello",
},
},
},
},
Traffics = new[]
{
new Gcp.CloudRun.Inputs.ServiceTrafficArgs
{
Percent = 100,
LatestRevision = true,
},
},
});
var sa = new Gcp.ServiceAccount.Account("sa", new()
{
AccountId = "cloud-run-pubsub-invoker",
DisplayName = "Cloud Run Pub/Sub Invoker",
});
var binding = new Gcp.CloudRun.IamBinding("binding", new()
{
Location = @default.Location,
Service = @default.Name,
Role = "roles/run.invoker",
Members = new[]
{
sa.Email.Apply(email => $"serviceAccount:{email}"),
},
});
var project = new Gcp.Projects.IAMBinding("project", new()
{
Role = "roles/iam.serviceAccountTokenCreator",
Members = new[]
{
sa.Email.Apply(email => $"serviceAccount:{email}"),
},
});
var topic = new Gcp.PubSub.Topic("topic");
var subscription = new Gcp.PubSub.Subscription("subscription", new()
{
Topic = topic.Name,
PushConfig = new Gcp.PubSub.Inputs.SubscriptionPushConfigArgs
{
PushEndpoint = @default.Statuses.Apply(statuses => statuses[0].Url),
OidcToken = new Gcp.PubSub.Inputs.SubscriptionPushConfigOidcTokenArgs
{
ServiceAccountEmail = sa.Email,
},
Attributes =
{
{ "x-goog-version", "v1" },
},
},
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrun"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/projects"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/pubsub"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/serviceAccount"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudrun.NewService(ctx, "default", &cloudrun.ServiceArgs{
Location: pulumi.String("us-central1"),
Template: &cloudrun.ServiceTemplateArgs{
Spec: &cloudrun.ServiceTemplateSpecArgs{
Containers: cloudrun.ServiceTemplateSpecContainerArray{
&cloudrun.ServiceTemplateSpecContainerArgs{
Image: pulumi.String("gcr.io/cloudrun/hello"),
},
},
},
},
Traffics: cloudrun.ServiceTrafficArray{
&cloudrun.ServiceTrafficArgs{
Percent: pulumi.Int(100),
LatestRevision: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
sa, err := serviceAccount.NewAccount(ctx, "sa", &serviceAccount.AccountArgs{
AccountId: pulumi.String("cloud-run-pubsub-invoker"),
DisplayName: pulumi.String("Cloud Run Pub/Sub Invoker"),
})
if err != nil {
return err
}
_, err = cloudrun.NewIamBinding(ctx, "binding", &cloudrun.IamBindingArgs{
Location: _default.Location,
Service: _default.Name,
Role: pulumi.String("roles/run.invoker"),
Members: pulumi.StringArray{
sa.Email.ApplyT(func(email string) (string, error) {
return fmt.Sprintf("serviceAccount:%v", email), nil
}).(pulumi.StringOutput),
},
})
if err != nil {
return err
}
_, err = projects.NewIAMBinding(ctx, "project", &projects.IAMBindingArgs{
Role: pulumi.String("roles/iam.serviceAccountTokenCreator"),
Members: pulumi.StringArray{
sa.Email.ApplyT(func(email string) (string, error) {
return fmt.Sprintf("serviceAccount:%v", email), nil
}).(pulumi.StringOutput),
},
})
if err != nil {
return err
}
topic, err := pubsub.NewTopic(ctx, "topic", nil)
if err != nil {
return err
}
_, err = pubsub.NewSubscription(ctx, "subscription", &pubsub.SubscriptionArgs{
Topic: topic.Name,
PushConfig: &pubsub.SubscriptionPushConfigArgs{
PushEndpoint: _default.Statuses.ApplyT(func(statuses []cloudrun.ServiceStatus) (*string, error) {
return &statuses[0].Url, nil
}).(pulumi.StringPtrOutput),
OidcToken: &pubsub.SubscriptionPushConfigOidcTokenArgs{
ServiceAccountEmail: sa.Email,
},
Attributes: pulumi.StringMap{
"x-goog-version": pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudrun.Service;
import com.pulumi.gcp.cloudrun.ServiceArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTrafficArgs;
import com.pulumi.gcp.serviceAccount.Account;
import com.pulumi.gcp.serviceAccount.AccountArgs;
import com.pulumi.gcp.cloudrun.IamBinding;
import com.pulumi.gcp.cloudrun.IamBindingArgs;
import com.pulumi.gcp.projects.IAMBinding;
import com.pulumi.gcp.projects.IAMBindingArgs;
import com.pulumi.gcp.pubsub.Topic;
import com.pulumi.gcp.pubsub.Subscription;
import com.pulumi.gcp.pubsub.SubscriptionArgs;
import com.pulumi.gcp.pubsub.inputs.SubscriptionPushConfigArgs;
import com.pulumi.gcp.pubsub.inputs.SubscriptionPushConfigOidcTokenArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Service("default", ServiceArgs.builder()
.location("us-central1")
.template(ServiceTemplateArgs.builder()
.spec(ServiceTemplateSpecArgs.builder()
.containers(ServiceTemplateSpecContainerArgs.builder()
.image("gcr.io/cloudrun/hello")
.build())
.build())
.build())
.traffics(ServiceTrafficArgs.builder()
.percent(100)
.latestRevision(true)
.build())
.build());
var sa = new Account("sa", AccountArgs.builder()
.accountId("cloud-run-pubsub-invoker")
.displayName("Cloud Run Pub/Sub Invoker")
.build());
var binding = new IamBinding("binding", IamBindingArgs.builder()
.location(default_.location())
.service(default_.name())
.role("roles/run.invoker")
.members(sa.email().applyValue(email -> String.format("serviceAccount:%s", email)))
.build());
var project = new IAMBinding("project", IAMBindingArgs.builder()
.role("roles/iam.serviceAccountTokenCreator")
.members(sa.email().applyValue(email -> String.format("serviceAccount:%s", email)))
.build());
var topic = new Topic("topic");
var subscription = new Subscription("subscription", SubscriptionArgs.builder()
.topic(topic.name())
.pushConfig(SubscriptionPushConfigArgs.builder()
.pushEndpoint(default_.statuses().applyValue(statuses -> statuses[0].url()))
.oidcToken(SubscriptionPushConfigOidcTokenArgs.builder()
.serviceAccountEmail(sa.email())
.build())
.attributes(Map.of("x-goog-version", "v1"))
.build())
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.cloudrun.Service("default",
location="us-central1",
template=gcp.cloudrun.ServiceTemplateArgs(
spec=gcp.cloudrun.ServiceTemplateSpecArgs(
containers=[gcp.cloudrun.ServiceTemplateSpecContainerArgs(
image="gcr.io/cloudrun/hello",
)],
),
),
traffics=[gcp.cloudrun.ServiceTrafficArgs(
percent=100,
latest_revision=True,
)])
sa = gcp.service_account.Account("sa",
account_id="cloud-run-pubsub-invoker",
display_name="Cloud Run Pub/Sub Invoker")
binding = gcp.cloudrun.IamBinding("binding",
location=default.location,
service=default.name,
role="roles/run.invoker",
members=[sa.email.apply(lambda email: f"serviceAccount:{email}")])
project = gcp.projects.IAMBinding("project",
role="roles/iam.serviceAccountTokenCreator",
members=[sa.email.apply(lambda email: f"serviceAccount:{email}")])
topic = gcp.pubsub.Topic("topic")
subscription = gcp.pubsub.Subscription("subscription",
topic=topic.name,
push_config=gcp.pubsub.SubscriptionPushConfigArgs(
push_endpoint=default.statuses[0].url,
oidc_token=gcp.pubsub.SubscriptionPushConfigOidcTokenArgs(
service_account_email=sa.email,
),
attributes={
"x-goog-version": "v1",
},
))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.cloudrun.Service("default", {
location: "us-central1",
template: {
spec: {
containers: [{
image: "gcr.io/cloudrun/hello",
}],
},
},
traffics: [{
percent: 100,
latestRevision: true,
}],
});
const sa = new gcp.serviceaccount.Account("sa", {
accountId: "cloud-run-pubsub-invoker",
displayName: "Cloud Run Pub/Sub Invoker",
});
const binding = new gcp.cloudrun.IamBinding("binding", {
location: _default.location,
service: _default.name,
role: "roles/run.invoker",
members: [pulumi.interpolate`serviceAccount:${sa.email}`],
});
const project = new gcp.projects.IAMBinding("project", {
role: "roles/iam.serviceAccountTokenCreator",
members: [pulumi.interpolate`serviceAccount:${sa.email}`],
});
const topic = new gcp.pubsub.Topic("topic", {});
const subscription = new gcp.pubsub.Subscription("subscription", {
topic: topic.name,
pushConfig: {
pushEndpoint: _default.statuses.apply(statuses => statuses[0].url),
oidcToken: {
serviceAccountEmail: sa.email,
},
attributes: {
"x-goog-version": "v1",
},
},
});
resources:
default:
type: gcp:cloudrun:Service
properties:
location: us-central1
template:
spec:
containers:
- image: gcr.io/cloudrun/hello
traffics:
- percent: 100
latestRevision: true
sa:
type: gcp:serviceAccount:Account
properties:
accountId: cloud-run-pubsub-invoker
displayName: Cloud Run Pub/Sub Invoker
binding:
type: gcp:cloudrun:IamBinding
properties:
location: ${default.location}
service: ${default.name}
role: roles/run.invoker
members:
- serviceAccount:${sa.email}
project:
type: gcp:projects:IAMBinding
properties:
role: roles/iam.serviceAccountTokenCreator
members:
- serviceAccount:${sa.email}
topic:
type: gcp:pubsub:Topic
subscription:
type: gcp:pubsub:Subscription
properties:
topic: ${topic.name}
pushConfig:
pushEndpoint: ${default.statuses[0].url}
oidcToken:
serviceAccountEmail: ${sa.email}
attributes:
x-goog-version: v1
Cloud Run Service Basic
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.CloudRun.Service("default", new()
{
Location = "us-central1",
Template = new Gcp.CloudRun.Inputs.ServiceTemplateArgs
{
Spec = new Gcp.CloudRun.Inputs.ServiceTemplateSpecArgs
{
Containers = new[]
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerArgs
{
Image = "us-docker.pkg.dev/cloudrun/container/hello",
},
},
},
},
Traffics = new[]
{
new Gcp.CloudRun.Inputs.ServiceTrafficArgs
{
LatestRevision = true,
Percent = 100,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrun"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudrun.NewService(ctx, "default", &cloudrun.ServiceArgs{
Location: pulumi.String("us-central1"),
Template: &cloudrun.ServiceTemplateArgs{
Spec: &cloudrun.ServiceTemplateSpecArgs{
Containers: cloudrun.ServiceTemplateSpecContainerArray{
&cloudrun.ServiceTemplateSpecContainerArgs{
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
},
},
},
},
Traffics: cloudrun.ServiceTrafficArray{
&cloudrun.ServiceTrafficArgs{
LatestRevision: pulumi.Bool(true),
Percent: pulumi.Int(100),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudrun.Service;
import com.pulumi.gcp.cloudrun.ServiceArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTrafficArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Service("default", ServiceArgs.builder()
.location("us-central1")
.template(ServiceTemplateArgs.builder()
.spec(ServiceTemplateSpecArgs.builder()
.containers(ServiceTemplateSpecContainerArgs.builder()
.image("us-docker.pkg.dev/cloudrun/container/hello")
.build())
.build())
.build())
.traffics(ServiceTrafficArgs.builder()
.latestRevision(true)
.percent(100)
.build())
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.cloudrun.Service("default",
location="us-central1",
template=gcp.cloudrun.ServiceTemplateArgs(
spec=gcp.cloudrun.ServiceTemplateSpecArgs(
containers=[gcp.cloudrun.ServiceTemplateSpecContainerArgs(
image="us-docker.pkg.dev/cloudrun/container/hello",
)],
),
),
traffics=[gcp.cloudrun.ServiceTrafficArgs(
latest_revision=True,
percent=100,
)])
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.cloudrun.Service("default", {
location: "us-central1",
template: {
spec: {
containers: [{
image: "us-docker.pkg.dev/cloudrun/container/hello",
}],
},
},
traffics: [{
latestRevision: true,
percent: 100,
}],
});
resources:
default:
type: gcp:cloudrun:Service
properties:
location: us-central1
template:
spec:
containers:
- image: us-docker.pkg.dev/cloudrun/container/hello
traffics:
- latestRevision: true
percent: 100
Cloud Run Service Sql
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var instance = new Gcp.Sql.DatabaseInstance("instance", new()
{
Region = "us-east1",
DatabaseVersion = "MYSQL_5_7",
Settings = new Gcp.Sql.Inputs.DatabaseInstanceSettingsArgs
{
Tier = "db-f1-micro",
},
DeletionProtection = true,
});
var @default = new Gcp.CloudRun.Service("default", new()
{
Location = "us-central1",
Template = new Gcp.CloudRun.Inputs.ServiceTemplateArgs
{
Spec = new Gcp.CloudRun.Inputs.ServiceTemplateSpecArgs
{
Containers = new[]
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerArgs
{
Image = "us-docker.pkg.dev/cloudrun/container/hello",
},
},
},
Metadata = new Gcp.CloudRun.Inputs.ServiceTemplateMetadataArgs
{
Annotations =
{
{ "autoscaling.knative.dev/maxScale", "1000" },
{ "run.googleapis.com/cloudsql-instances", instance.ConnectionName },
{ "run.googleapis.com/client-name", "demo" },
},
},
},
AutogenerateRevisionName = true,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrun"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/sql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instance, err := sql.NewDatabaseInstance(ctx, "instance", &sql.DatabaseInstanceArgs{
Region: pulumi.String("us-east1"),
DatabaseVersion: pulumi.String("MYSQL_5_7"),
Settings: &sql.DatabaseInstanceSettingsArgs{
Tier: pulumi.String("db-f1-micro"),
},
DeletionProtection: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = cloudrun.NewService(ctx, "default", &cloudrun.ServiceArgs{
Location: pulumi.String("us-central1"),
Template: &cloudrun.ServiceTemplateArgs{
Spec: &cloudrun.ServiceTemplateSpecArgs{
Containers: cloudrun.ServiceTemplateSpecContainerArray{
&cloudrun.ServiceTemplateSpecContainerArgs{
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
},
},
},
Metadata: &cloudrun.ServiceTemplateMetadataArgs{
Annotations: pulumi.StringMap{
"autoscaling.knative.dev/maxScale": pulumi.String("1000"),
"run.googleapis.com/cloudsql-instances": instance.ConnectionName,
"run.googleapis.com/client-name": pulumi.String("demo"),
},
},
},
AutogenerateRevisionName: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.sql.DatabaseInstance;
import com.pulumi.gcp.sql.DatabaseInstanceArgs;
import com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsArgs;
import com.pulumi.gcp.cloudrun.Service;
import com.pulumi.gcp.cloudrun.ServiceArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateMetadataArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var instance = new DatabaseInstance("instance", DatabaseInstanceArgs.builder()
.region("us-east1")
.databaseVersion("MYSQL_5_7")
.settings(DatabaseInstanceSettingsArgs.builder()
.tier("db-f1-micro")
.build())
.deletionProtection("true")
.build());
var default_ = new Service("default", ServiceArgs.builder()
.location("us-central1")
.template(ServiceTemplateArgs.builder()
.spec(ServiceTemplateSpecArgs.builder()
.containers(ServiceTemplateSpecContainerArgs.builder()
.image("us-docker.pkg.dev/cloudrun/container/hello")
.build())
.build())
.metadata(ServiceTemplateMetadataArgs.builder()
.annotations(Map.ofEntries(
Map.entry("autoscaling.knative.dev/maxScale", "1000"),
Map.entry("run.googleapis.com/cloudsql-instances", instance.connectionName()),
Map.entry("run.googleapis.com/client-name", "demo")
))
.build())
.build())
.autogenerateRevisionName(true)
.build());
}
}
import pulumi
import pulumi_gcp as gcp
instance = gcp.sql.DatabaseInstance("instance",
region="us-east1",
database_version="MYSQL_5_7",
settings=gcp.sql.DatabaseInstanceSettingsArgs(
tier="db-f1-micro",
),
deletion_protection=True)
default = gcp.cloudrun.Service("default",
location="us-central1",
template=gcp.cloudrun.ServiceTemplateArgs(
spec=gcp.cloudrun.ServiceTemplateSpecArgs(
containers=[gcp.cloudrun.ServiceTemplateSpecContainerArgs(
image="us-docker.pkg.dev/cloudrun/container/hello",
)],
),
metadata=gcp.cloudrun.ServiceTemplateMetadataArgs(
annotations={
"autoscaling.knative.dev/maxScale": "1000",
"run.googleapis.com/cloudsql-instances": instance.connection_name,
"run.googleapis.com/client-name": "demo",
},
),
),
autogenerate_revision_name=True)
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const instance = new gcp.sql.DatabaseInstance("instance", {
region: "us-east1",
databaseVersion: "MYSQL_5_7",
settings: {
tier: "db-f1-micro",
},
deletionProtection: true,
});
const _default = new gcp.cloudrun.Service("default", {
location: "us-central1",
template: {
spec: {
containers: [{
image: "us-docker.pkg.dev/cloudrun/container/hello",
}],
},
metadata: {
annotations: {
"autoscaling.knative.dev/maxScale": "1000",
"run.googleapis.com/cloudsql-instances": instance.connectionName,
"run.googleapis.com/client-name": "demo",
},
},
},
autogenerateRevisionName: true,
});
resources:
default:
type: gcp:cloudrun:Service
properties:
location: us-central1
template:
spec:
containers:
- image: us-docker.pkg.dev/cloudrun/container/hello
metadata:
annotations:
autoscaling.knative.dev/maxScale: '1000'
run.googleapis.com/cloudsql-instances: ${instance.connectionName}
run.googleapis.com/client-name: demo
autogenerateRevisionName: true
instance:
type: gcp:sql:DatabaseInstance
properties:
region: us-east1
databaseVersion: MYSQL_5_7
settings:
tier: db-f1-micro
deletionProtection: 'true'
Cloud Run Service Noauth
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.CloudRun.Service("default", new()
{
Location = "us-central1",
Template = new Gcp.CloudRun.Inputs.ServiceTemplateArgs
{
Spec = new Gcp.CloudRun.Inputs.ServiceTemplateSpecArgs
{
Containers = new[]
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerArgs
{
Image = "us-docker.pkg.dev/cloudrun/container/hello",
},
},
},
},
});
var noauthIAMPolicy = Gcp.Organizations.GetIAMPolicy.Invoke(new()
{
Bindings = new[]
{
new Gcp.Organizations.Inputs.GetIAMPolicyBindingInputArgs
{
Role = "roles/run.invoker",
Members = new[]
{
"allUsers",
},
},
},
});
var noauthIamPolicy = new Gcp.CloudRun.IamPolicy("noauthIamPolicy", new()
{
Location = @default.Location,
Project = @default.Project,
Service = @default.Name,
PolicyData = noauthIAMPolicy.Apply(getIAMPolicyResult => getIAMPolicyResult.PolicyData),
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrun"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudrun.NewService(ctx, "default", &cloudrun.ServiceArgs{
Location: pulumi.String("us-central1"),
Template: &cloudrun.ServiceTemplateArgs{
Spec: &cloudrun.ServiceTemplateSpecArgs{
Containers: cloudrun.ServiceTemplateSpecContainerArray{
&cloudrun.ServiceTemplateSpecContainerArgs{
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
},
},
},
},
})
if err != nil {
return err
}
noauthIAMPolicy, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{
Bindings: []organizations.GetIAMPolicyBinding{
{
Role: "roles/run.invoker",
Members: []string{
"allUsers",
},
},
},
}, nil)
if err != nil {
return err
}
_, err = cloudrun.NewIamPolicy(ctx, "noauthIamPolicy", &cloudrun.IamPolicyArgs{
Location: _default.Location,
Project: _default.Project,
Service: _default.Name,
PolicyData: *pulumi.String(noauthIAMPolicy.PolicyData),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudrun.Service;
import com.pulumi.gcp.cloudrun.ServiceArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecArgs;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetIAMPolicyArgs;
import com.pulumi.gcp.cloudrun.IamPolicy;
import com.pulumi.gcp.cloudrun.IamPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Service("default", ServiceArgs.builder()
.location("us-central1")
.template(ServiceTemplateArgs.builder()
.spec(ServiceTemplateSpecArgs.builder()
.containers(ServiceTemplateSpecContainerArgs.builder()
.image("us-docker.pkg.dev/cloudrun/container/hello")
.build())
.build())
.build())
.build());
final var noauthIAMPolicy = OrganizationsFunctions.getIAMPolicy(GetIAMPolicyArgs.builder()
.bindings(GetIAMPolicyBindingArgs.builder()
.role("roles/run.invoker")
.members("allUsers")
.build())
.build());
var noauthIamPolicy = new IamPolicy("noauthIamPolicy", IamPolicyArgs.builder()
.location(default_.location())
.project(default_.project())
.service(default_.name())
.policyData(noauthIAMPolicy.applyValue(getIAMPolicyResult -> getIAMPolicyResult.policyData()))
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.cloudrun.Service("default",
location="us-central1",
template=gcp.cloudrun.ServiceTemplateArgs(
spec=gcp.cloudrun.ServiceTemplateSpecArgs(
containers=[gcp.cloudrun.ServiceTemplateSpecContainerArgs(
image="us-docker.pkg.dev/cloudrun/container/hello",
)],
),
))
noauth_iam_policy = gcp.organizations.get_iam_policy(bindings=[gcp.organizations.GetIAMPolicyBindingArgs(
role="roles/run.invoker",
members=["allUsers"],
)])
noauth_iam_policy = gcp.cloudrun.IamPolicy("noauthIamPolicy",
location=default.location,
project=default.project,
service=default.name,
policy_data=noauth_iam_policy.policy_data)
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.cloudrun.Service("default", {
location: "us-central1",
template: {
spec: {
containers: [{
image: "us-docker.pkg.dev/cloudrun/container/hello",
}],
},
},
});
const noauthIAMPolicy = gcp.organizations.getIAMPolicy({
bindings: [{
role: "roles/run.invoker",
members: ["allUsers"],
}],
});
const noauthIamPolicy = new gcp.cloudrun.IamPolicy("noauthIamPolicy", {
location: _default.location,
project: _default.project,
service: _default.name,
policyData: noauthIAMPolicy.then(noauthIAMPolicy => noauthIAMPolicy.policyData),
});
resources:
default:
type: gcp:cloudrun:Service
properties:
location: us-central1
template:
spec:
containers:
- image: us-docker.pkg.dev/cloudrun/container/hello
noauthIamPolicy:
type: gcp:cloudrun:IamPolicy
properties:
location: ${default.location}
project: ${default.project}
service: ${default.name}
policyData: ${noauthIAMPolicy.policyData}
variables:
noauthIAMPolicy:
fn::invoke:
Function: gcp:organizations:getIAMPolicy
Arguments:
bindings:
- role: roles/run.invoker
members:
- allUsers
Cloud Run Service Probes
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.CloudRun.Service("default", new()
{
Location = "us-central1",
Template = new Gcp.CloudRun.Inputs.ServiceTemplateArgs
{
Spec = new Gcp.CloudRun.Inputs.ServiceTemplateSpecArgs
{
Containers = new[]
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerArgs
{
Image = "us-docker.pkg.dev/cloudrun/container/hello",
StartupProbe = new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerStartupProbeArgs
{
InitialDelaySeconds = 0,
TimeoutSeconds = 1,
PeriodSeconds = 3,
FailureThreshold = 1,
TcpSocket = new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerStartupProbeTcpSocketArgs
{
Port = 8080,
},
},
LivenessProbe = new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerLivenessProbeArgs
{
HttpGet = new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerLivenessProbeHttpGetArgs
{
Path = "/",
},
},
},
},
},
},
Traffics = new[]
{
new Gcp.CloudRun.Inputs.ServiceTrafficArgs
{
Percent = 100,
LatestRevision = true,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrun"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudrun.NewService(ctx, "default", &cloudrun.ServiceArgs{
Location: pulumi.String("us-central1"),
Template: &cloudrun.ServiceTemplateArgs{
Spec: &cloudrun.ServiceTemplateSpecArgs{
Containers: cloudrun.ServiceTemplateSpecContainerArray{
&cloudrun.ServiceTemplateSpecContainerArgs{
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
StartupProbe: &cloudrun.ServiceTemplateSpecContainerStartupProbeArgs{
InitialDelaySeconds: pulumi.Int(0),
TimeoutSeconds: pulumi.Int(1),
PeriodSeconds: pulumi.Int(3),
FailureThreshold: pulumi.Int(1),
TcpSocket: &cloudrun.ServiceTemplateSpecContainerStartupProbeTcpSocketArgs{
Port: pulumi.Int(8080),
},
},
LivenessProbe: &cloudrun.ServiceTemplateSpecContainerLivenessProbeArgs{
HttpGet: &cloudrun.ServiceTemplateSpecContainerLivenessProbeHttpGetArgs{
Path: pulumi.String("/"),
},
},
},
},
},
},
Traffics: cloudrun.ServiceTrafficArray{
&cloudrun.ServiceTrafficArgs{
Percent: pulumi.Int(100),
LatestRevision: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudrun.Service;
import com.pulumi.gcp.cloudrun.ServiceArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTrafficArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Service("default", ServiceArgs.builder()
.location("us-central1")
.template(ServiceTemplateArgs.builder()
.spec(ServiceTemplateSpecArgs.builder()
.containers(ServiceTemplateSpecContainerArgs.builder()
.image("us-docker.pkg.dev/cloudrun/container/hello")
.startupProbe(ServiceTemplateSpecContainerStartupProbeArgs.builder()
.initialDelaySeconds(0)
.timeoutSeconds(1)
.periodSeconds(3)
.failureThreshold(1)
.tcpSocket(ServiceTemplateSpecContainerStartupProbeTcpSocketArgs.builder()
.port(8080)
.build())
.build())
.livenessProbe(ServiceTemplateSpecContainerLivenessProbeArgs.builder()
.httpGet(ServiceTemplateSpecContainerLivenessProbeHttpGetArgs.builder()
.path("/")
.build())
.build())
.build())
.build())
.build())
.traffics(ServiceTrafficArgs.builder()
.percent(100)
.latestRevision(true)
.build())
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.cloudrun.Service("default",
location="us-central1",
template=gcp.cloudrun.ServiceTemplateArgs(
spec=gcp.cloudrun.ServiceTemplateSpecArgs(
containers=[gcp.cloudrun.ServiceTemplateSpecContainerArgs(
image="us-docker.pkg.dev/cloudrun/container/hello",
startup_probe=gcp.cloudrun.ServiceTemplateSpecContainerStartupProbeArgs(
initial_delay_seconds=0,
timeout_seconds=1,
period_seconds=3,
failure_threshold=1,
tcp_socket=gcp.cloudrun.ServiceTemplateSpecContainerStartupProbeTcpSocketArgs(
port=8080,
),
),
liveness_probe=gcp.cloudrun.ServiceTemplateSpecContainerLivenessProbeArgs(
http_get=gcp.cloudrun.ServiceTemplateSpecContainerLivenessProbeHttpGetArgs(
path="/",
),
),
)],
),
),
traffics=[gcp.cloudrun.ServiceTrafficArgs(
percent=100,
latest_revision=True,
)])
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.cloudrun.Service("default", {
location: "us-central1",
template: {
spec: {
containers: [{
image: "us-docker.pkg.dev/cloudrun/container/hello",
startupProbe: {
initialDelaySeconds: 0,
timeoutSeconds: 1,
periodSeconds: 3,
failureThreshold: 1,
tcpSocket: {
port: 8080,
},
},
livenessProbe: {
httpGet: {
path: "/",
},
},
}],
},
},
traffics: [{
percent: 100,
latestRevision: true,
}],
});
resources:
default:
type: gcp:cloudrun:Service
properties:
location: us-central1
template:
spec:
containers:
- image: us-docker.pkg.dev/cloudrun/container/hello
startupProbe:
initialDelaySeconds: 0
timeoutSeconds: 1
periodSeconds: 3
failureThreshold: 1
tcpSocket:
port: 8080
livenessProbe:
httpGet:
path: /
traffics:
- percent: 100
latestRevision: true
Cloud Run Service Multicontainer
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.CloudRun.Service("default", new()
{
Location = "us-central1",
Metadata = new Gcp.CloudRun.Inputs.ServiceMetadataArgs
{
Annotations =
{
{ "run.googleapis.com/launch-stage", "BETA" },
},
},
Template = new Gcp.CloudRun.Inputs.ServiceTemplateArgs
{
Metadata = new Gcp.CloudRun.Inputs.ServiceTemplateMetadataArgs
{
Annotations =
{
{ "run.googleapis.com/container-dependencies", JsonSerializer.Serialize(new Dictionary<string, object?>
{
["hello-1"] = new[]
{
"hello-2",
},
}) },
},
},
Spec = new Gcp.CloudRun.Inputs.ServiceTemplateSpecArgs
{
Containers = new[]
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerArgs
{
Name = "hello-1",
Ports = new[]
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerPortArgs
{
ContainerPort = 8080,
},
},
Image = "us-docker.pkg.dev/cloudrun/container/hello",
VolumeMounts = new[]
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerVolumeMountArgs
{
Name = "shared-volume",
MountPath = "/mnt/shared",
},
},
},
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerArgs
{
Name = "hello-2",
Image = "us-docker.pkg.dev/cloudrun/container/hello",
Envs = new[]
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerEnvArgs
{
Name = "PORT",
Value = "8081",
},
},
StartupProbe = new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerStartupProbeArgs
{
HttpGet = new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerStartupProbeHttpGetArgs
{
Port = 8081,
},
},
VolumeMounts = new[]
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecContainerVolumeMountArgs
{
Name = "shared-volume",
MountPath = "/mnt/shared",
},
},
},
},
Volumes = new[]
{
new Gcp.CloudRun.Inputs.ServiceTemplateSpecVolumeArgs
{
Name = "shared-volume",
EmptyDir = new Gcp.CloudRun.Inputs.ServiceTemplateSpecVolumeEmptyDirArgs
{
Medium = "Memory",
SizeLimit = "128Mi",
},
},
},
},
},
}, new CustomResourceOptions
{
Provider = google_beta,
});
});
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrun"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"hello-1": []string{
"hello-2",
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = cloudrun.NewService(ctx, "default", &cloudrun.ServiceArgs{
Location: pulumi.String("us-central1"),
Metadata: &cloudrun.ServiceMetadataArgs{
Annotations: pulumi.StringMap{
"run.googleapis.com/launch-stage": pulumi.String("BETA"),
},
},
Template: &cloudrun.ServiceTemplateArgs{
Metadata: &cloudrun.ServiceTemplateMetadataArgs{
Annotations: pulumi.StringMap{
"run.googleapis.com/container-dependencies": pulumi.String(json0),
},
},
Spec: &cloudrun.ServiceTemplateSpecArgs{
Containers: cloudrun.ServiceTemplateSpecContainerArray{
&cloudrun.ServiceTemplateSpecContainerArgs{
Name: pulumi.String("hello-1"),
Ports: cloudrun.ServiceTemplateSpecContainerPortArray{
&cloudrun.ServiceTemplateSpecContainerPortArgs{
ContainerPort: pulumi.Int(8080),
},
},
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
VolumeMounts: cloudrun.ServiceTemplateSpecContainerVolumeMountArray{
&cloudrun.ServiceTemplateSpecContainerVolumeMountArgs{
Name: pulumi.String("shared-volume"),
MountPath: pulumi.String("/mnt/shared"),
},
},
},
&cloudrun.ServiceTemplateSpecContainerArgs{
Name: pulumi.String("hello-2"),
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
Envs: cloudrun.ServiceTemplateSpecContainerEnvArray{
&cloudrun.ServiceTemplateSpecContainerEnvArgs{
Name: pulumi.String("PORT"),
Value: pulumi.String("8081"),
},
},
StartupProbe: &cloudrun.ServiceTemplateSpecContainerStartupProbeArgs{
HttpGet: &cloudrun.ServiceTemplateSpecContainerStartupProbeHttpGetArgs{
Port: pulumi.Int(8081),
},
},
VolumeMounts: cloudrun.ServiceTemplateSpecContainerVolumeMountArray{
&cloudrun.ServiceTemplateSpecContainerVolumeMountArgs{
Name: pulumi.String("shared-volume"),
MountPath: pulumi.String("/mnt/shared"),
},
},
},
},
Volumes: cloudrun.ServiceTemplateSpecVolumeArray{
&cloudrun.ServiceTemplateSpecVolumeArgs{
Name: pulumi.String("shared-volume"),
EmptyDir: &cloudrun.ServiceTemplateSpecVolumeEmptyDirArgs{
Medium: pulumi.String("Memory"),
SizeLimit: pulumi.String("128Mi"),
},
},
},
},
},
}, pulumi.Provider(google_beta))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudrun.Service;
import com.pulumi.gcp.cloudrun.ServiceArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceMetadataArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateMetadataArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Service("default", ServiceArgs.builder()
.location("us-central1")
.metadata(ServiceMetadataArgs.builder()
.annotations(Map.of("run.googleapis.com/launch-stage", "BETA"))
.build())
.template(ServiceTemplateArgs.builder()
.metadata(ServiceTemplateMetadataArgs.builder()
.annotations(Map.of("run.googleapis.com/container-dependencies", serializeJson(
jsonObject(
jsonProperty("hello-1", jsonArray("hello-2"))
))))
.build())
.spec(ServiceTemplateSpecArgs.builder()
.containers(
ServiceTemplateSpecContainerArgs.builder()
.name("hello-1")
.ports(ServiceTemplateSpecContainerPortArgs.builder()
.containerPort(8080)
.build())
.image("us-docker.pkg.dev/cloudrun/container/hello")
.volumeMounts(ServiceTemplateSpecContainerVolumeMountArgs.builder()
.name("shared-volume")
.mountPath("/mnt/shared")
.build())
.build(),
ServiceTemplateSpecContainerArgs.builder()
.name("hello-2")
.image("us-docker.pkg.dev/cloudrun/container/hello")
.envs(ServiceTemplateSpecContainerEnvArgs.builder()
.name("PORT")
.value("8081")
.build())
.startupProbe(ServiceTemplateSpecContainerStartupProbeArgs.builder()
.httpGet(ServiceTemplateSpecContainerStartupProbeHttpGetArgs.builder()
.port(8081)
.build())
.build())
.volumeMounts(ServiceTemplateSpecContainerVolumeMountArgs.builder()
.name("shared-volume")
.mountPath("/mnt/shared")
.build())
.build())
.volumes(ServiceTemplateSpecVolumeArgs.builder()
.name("shared-volume")
.emptyDir(ServiceTemplateSpecVolumeEmptyDirArgs.builder()
.medium("Memory")
.sizeLimit("128Mi")
.build())
.build())
.build())
.build())
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}
import pulumi
import json
import pulumi_gcp as gcp
default = gcp.cloudrun.Service("default",
location="us-central1",
metadata=gcp.cloudrun.ServiceMetadataArgs(
annotations={
"run.googleapis.com/launch-stage": "BETA",
},
),
template=gcp.cloudrun.ServiceTemplateArgs(
metadata=gcp.cloudrun.ServiceTemplateMetadataArgs(
annotations={
"run.googleapis.com/container-dependencies": json.dumps({
"hello-1": ["hello-2"],
}),
},
),
spec=gcp.cloudrun.ServiceTemplateSpecArgs(
containers=[
gcp.cloudrun.ServiceTemplateSpecContainerArgs(
name="hello-1",
ports=[gcp.cloudrun.ServiceTemplateSpecContainerPortArgs(
container_port=8080,
)],
image="us-docker.pkg.dev/cloudrun/container/hello",
volume_mounts=[gcp.cloudrun.ServiceTemplateSpecContainerVolumeMountArgs(
name="shared-volume",
mount_path="/mnt/shared",
)],
),
gcp.cloudrun.ServiceTemplateSpecContainerArgs(
name="hello-2",
image="us-docker.pkg.dev/cloudrun/container/hello",
envs=[gcp.cloudrun.ServiceTemplateSpecContainerEnvArgs(
name="PORT",
value="8081",
)],
startup_probe=gcp.cloudrun.ServiceTemplateSpecContainerStartupProbeArgs(
http_get=gcp.cloudrun.ServiceTemplateSpecContainerStartupProbeHttpGetArgs(
port=8081,
),
),
volume_mounts=[gcp.cloudrun.ServiceTemplateSpecContainerVolumeMountArgs(
name="shared-volume",
mount_path="/mnt/shared",
)],
),
],
volumes=[gcp.cloudrun.ServiceTemplateSpecVolumeArgs(
name="shared-volume",
empty_dir=gcp.cloudrun.ServiceTemplateSpecVolumeEmptyDirArgs(
medium="Memory",
size_limit="128Mi",
),
)],
),
),
opts=pulumi.ResourceOptions(provider=google_beta))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.cloudrun.Service("default", {
location: "us-central1",
metadata: {
annotations: {
"run.googleapis.com/launch-stage": "BETA",
},
},
template: {
metadata: {
annotations: {
"run.googleapis.com/container-dependencies": JSON.stringify({
"hello-1": ["hello-2"],
}),
},
},
spec: {
containers: [
{
name: "hello-1",
ports: [{
containerPort: 8080,
}],
image: "us-docker.pkg.dev/cloudrun/container/hello",
volumeMounts: [{
name: "shared-volume",
mountPath: "/mnt/shared",
}],
},
{
name: "hello-2",
image: "us-docker.pkg.dev/cloudrun/container/hello",
envs: [{
name: "PORT",
value: "8081",
}],
startupProbe: {
httpGet: {
port: 8081,
},
},
volumeMounts: [{
name: "shared-volume",
mountPath: "/mnt/shared",
}],
},
],
volumes: [{
name: "shared-volume",
emptyDir: {
medium: "Memory",
sizeLimit: "128Mi",
},
}],
},
},
}, {
provider: google_beta,
});
resources:
default:
type: gcp:cloudrun:Service
properties:
location: us-central1
metadata:
annotations:
run.googleapis.com/launch-stage: BETA
template:
metadata:
annotations:
run.googleapis.com/container-dependencies:
fn::toJSON:
hello-1:
- hello-2
spec:
containers:
- name: hello-1
ports:
- containerPort: 8080
image: us-docker.pkg.dev/cloudrun/container/hello
volumeMounts:
- name: shared-volume
mountPath: /mnt/shared
- name: hello-2
image: us-docker.pkg.dev/cloudrun/container/hello
envs:
- name: PORT
value: '8081'
startupProbe:
httpGet:
port: 8081
volumeMounts:
- name: shared-volume
mountPath: /mnt/shared
volumes:
- name: shared-volume
emptyDir:
medium: Memory
sizeLimit: 128Mi
options:
provider: ${["google-beta"]}
Create Service Resource
new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
@overload
def Service(resource_name: str,
opts: Optional[ResourceOptions] = None,
autogenerate_revision_name: Optional[bool] = None,
location: Optional[str] = None,
metadata: Optional[ServiceMetadataArgs] = None,
name: Optional[str] = None,
project: Optional[str] = None,
template: Optional[ServiceTemplateArgs] = None,
traffics: Optional[Sequence[ServiceTrafficArgs]] = None)
@overload
def Service(resource_name: str,
args: ServiceArgs,
opts: Optional[ResourceOptions] = None)
func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
public Service(String name, ServiceArgs args)
public Service(String name, ServiceArgs args, CustomResourceOptions options)
type: gcp:cloudrun:Service
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- 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 ServiceArgs
- 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 ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Service Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Service resource accepts the following input properties:
- Location string
The location of the cloud run instance. eg us-central1
- Autogenerate
Revision boolName If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- Metadata
Service
Metadata Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- Name string
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Template
Service
Template template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- Traffics
List<Service
Traffic> (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- Location string
The location of the cloud run instance. eg us-central1
- Autogenerate
Revision boolName If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- Metadata
Service
Metadata Args Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- Name string
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Template
Service
Template Args template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- Traffics
[]Service
Traffic Args (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- location String
The location of the cloud run instance. eg us-central1
- autogenerate
Revision BooleanName If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- metadata
Service
Metadata Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- name String
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- template
Service
Template template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- traffics
List<Service
Traffic> (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- location string
The location of the cloud run instance. eg us-central1
- autogenerate
Revision booleanName If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- metadata
Service
Metadata Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- name string
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- template
Service
Template template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- traffics
Service
Traffic[] (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- location str
The location of the cloud run instance. eg us-central1
- autogenerate_
revision_ boolname If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- metadata
Service
Metadata Args Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- name str
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- template
Service
Template Args template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- traffics
Sequence[Service
Traffic Args] (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- location String
The location of the cloud run instance. eg us-central1
- autogenerate
Revision BooleanName If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- metadata Property Map
Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- name String
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- template Property Map
template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- traffics List<Property Map>
(Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Statuses
List<Service
Status> (Output) Status of the condition, one of True, False, Unknown.
- Id string
The provider-assigned unique ID for this managed resource.
- Statuses
[]Service
Status (Output) Status of the condition, one of True, False, Unknown.
- id String
The provider-assigned unique ID for this managed resource.
- statuses
List<Service
Status> (Output) Status of the condition, one of True, False, Unknown.
- id string
The provider-assigned unique ID for this managed resource.
- statuses
Service
Status[] (Output) Status of the condition, one of True, False, Unknown.
- id str
The provider-assigned unique ID for this managed resource.
- statuses
Sequence[Service
Status] (Output) Status of the condition, one of True, False, Unknown.
- id String
The provider-assigned unique ID for this managed resource.
- statuses List<Property Map>
(Output) Status of the condition, one of True, False, Unknown.
Look up Existing Service Resource
Get an existing Service 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?: ServiceState, opts?: CustomResourceOptions): Service
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
autogenerate_revision_name: Optional[bool] = None,
location: Optional[str] = None,
metadata: Optional[ServiceMetadataArgs] = None,
name: Optional[str] = None,
project: Optional[str] = None,
statuses: Optional[Sequence[ServiceStatusArgs]] = None,
template: Optional[ServiceTemplateArgs] = None,
traffics: Optional[Sequence[ServiceTrafficArgs]] = None) -> Service
func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)
public static Service get(String name, Output<String> id, ServiceState 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.
- Autogenerate
Revision boolName If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- Location string
The location of the cloud run instance. eg us-central1
- Metadata
Service
Metadata Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- Name string
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Statuses
List<Service
Status> (Output) Status of the condition, one of True, False, Unknown.
- Template
Service
Template template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- Traffics
List<Service
Traffic> (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- Autogenerate
Revision boolName If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- Location string
The location of the cloud run instance. eg us-central1
- Metadata
Service
Metadata Args Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- Name string
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Statuses
[]Service
Status Args (Output) Status of the condition, one of True, False, Unknown.
- Template
Service
Template Args template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- Traffics
[]Service
Traffic Args (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- autogenerate
Revision BooleanName If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- location String
The location of the cloud run instance. eg us-central1
- metadata
Service
Metadata Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- name String
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- statuses
List<Service
Status> (Output) Status of the condition, one of True, False, Unknown.
- template
Service
Template template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- traffics
List<Service
Traffic> (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- autogenerate
Revision booleanName If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- location string
The location of the cloud run instance. eg us-central1
- metadata
Service
Metadata Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- name string
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- statuses
Service
Status[] (Output) Status of the condition, one of True, False, Unknown.
- template
Service
Template template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- traffics
Service
Traffic[] (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- autogenerate_
revision_ boolname If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- location str
The location of the cloud run instance. eg us-central1
- metadata
Service
Metadata Args Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- name str
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- statuses
Sequence[Service
Status Args] (Output) Status of the condition, one of True, False, Unknown.
- template
Service
Template Args template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- traffics
Sequence[Service
Traffic Args] (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- autogenerate
Revision BooleanName If set to
true
, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set totrue
whiletemplate.metadata.name
is also set. (For legacy support, iftemplate.metadata.name
is unset in state while this field is set to false, the revision name will still autogenerate.)- location String
The location of the cloud run instance. eg us-central1
- metadata Property Map
Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
(Optional) Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.
- name String
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- statuses List<Property Map>
(Output) Status of the condition, one of True, False, Unknown.
- template Property Map
template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source.
- traffics List<Property Map>
(Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
Supporting Types
ServiceMetadata, ServiceMetadataArgs
- Annotations Dictionary<string, string>
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- Generation int
(Output) A sequence number representing a specific generation of the desired state.
- Labels Dictionary<string, string>
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- Namespace string
In Cloud Run the namespace must be equal to either the project ID or project number.
- Resource
Version string (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- Self
Link string (Output) SelfLink is a URL representing this object.
- Uid string
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
- Annotations map[string]string
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- Generation int
(Output) A sequence number representing a specific generation of the desired state.
- Labels map[string]string
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- Namespace string
In Cloud Run the namespace must be equal to either the project ID or project number.
- Resource
Version string (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- Self
Link string (Output) SelfLink is a URL representing this object.
- Uid string
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
- annotations Map<String,String>
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- generation Integer
(Output) A sequence number representing a specific generation of the desired state.
- labels Map<String,String>
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- namespace String
In Cloud Run the namespace must be equal to either the project ID or project number.
- resource
Version String (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- self
Link String (Output) SelfLink is a URL representing this object.
- uid String
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
- annotations {[key: string]: string}
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- generation number
(Output) A sequence number representing a specific generation of the desired state.
- labels {[key: string]: string}
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- namespace string
In Cloud Run the namespace must be equal to either the project ID or project number.
- resource
Version string (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- self
Link string (Output) SelfLink is a URL representing this object.
- uid string
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
- annotations Mapping[str, str]
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- generation int
(Output) A sequence number representing a specific generation of the desired state.
- labels Mapping[str, str]
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- namespace str
In Cloud Run the namespace must be equal to either the project ID or project number.
- resource_
version str (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- self_
link str (Output) SelfLink is a URL representing this object.
- uid str
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
- annotations Map<String>
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- generation Number
(Output) A sequence number representing a specific generation of the desired state.
- labels Map<String>
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- namespace String
In Cloud Run the namespace must be equal to either the project ID or project number.
- resource
Version String (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- self
Link String (Output) SelfLink is a URL representing this object.
- uid String
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
ServiceStatus, ServiceStatusArgs
- Conditions
List<Service
Status Condition> (Output) Array of observed Service Conditions, indicating the current ready state of the service. Structure is documented below.
- Latest
Created stringRevision Name (Output) From ConfigurationStatus. LatestCreatedRevisionName is the last revision that was created from this Service's Configuration. It might not be ready yet, for that use LatestReadyRevisionName.
- Latest
Ready stringRevision Name (Output) From ConfigurationStatus. LatestReadyRevisionName holds the name of the latest Revision stamped out from this Service's Configuration that has had its "Ready" condition become "True".
- Observed
Generation int (Output) ObservedGeneration is the 'Generation' of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False.
- Traffics
List<Service
Status Traffic> (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- Url string
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- Conditions
[]Service
Status Condition (Output) Array of observed Service Conditions, indicating the current ready state of the service. Structure is documented below.
- Latest
Created stringRevision Name (Output) From ConfigurationStatus. LatestCreatedRevisionName is the last revision that was created from this Service's Configuration. It might not be ready yet, for that use LatestReadyRevisionName.
- Latest
Ready stringRevision Name (Output) From ConfigurationStatus. LatestReadyRevisionName holds the name of the latest Revision stamped out from this Service's Configuration that has had its "Ready" condition become "True".
- Observed
Generation int (Output) ObservedGeneration is the 'Generation' of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False.
- Traffics
[]Service
Status Traffic (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- Url string
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- conditions
List<Service
Status Condition> (Output) Array of observed Service Conditions, indicating the current ready state of the service. Structure is documented below.
- latest
Created StringRevision Name (Output) From ConfigurationStatus. LatestCreatedRevisionName is the last revision that was created from this Service's Configuration. It might not be ready yet, for that use LatestReadyRevisionName.
- latest
Ready StringRevision Name (Output) From ConfigurationStatus. LatestReadyRevisionName holds the name of the latest Revision stamped out from this Service's Configuration that has had its "Ready" condition become "True".
- observed
Generation Integer (Output) ObservedGeneration is the 'Generation' of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False.
- traffics
List<Service
Status Traffic> (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- url String
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- conditions
Service
Status Condition[] (Output) Array of observed Service Conditions, indicating the current ready state of the service. Structure is documented below.
- latest
Created stringRevision Name (Output) From ConfigurationStatus. LatestCreatedRevisionName is the last revision that was created from this Service's Configuration. It might not be ready yet, for that use LatestReadyRevisionName.
- latest
Ready stringRevision Name (Output) From ConfigurationStatus. LatestReadyRevisionName holds the name of the latest Revision stamped out from this Service's Configuration that has had its "Ready" condition become "True".
- observed
Generation number (Output) ObservedGeneration is the 'Generation' of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False.
- traffics
Service
Status Traffic[] (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- url string
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- conditions
Sequence[Service
Status Condition] (Output) Array of observed Service Conditions, indicating the current ready state of the service. Structure is documented below.
- latest_
created_ strrevision_ name (Output) From ConfigurationStatus. LatestCreatedRevisionName is the last revision that was created from this Service's Configuration. It might not be ready yet, for that use LatestReadyRevisionName.
- latest_
ready_ strrevision_ name (Output) From ConfigurationStatus. LatestReadyRevisionName holds the name of the latest Revision stamped out from this Service's Configuration that has had its "Ready" condition become "True".
- observed_
generation int (Output) ObservedGeneration is the 'Generation' of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False.
- traffics
Sequence[Service
Status Traffic] (Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- url str
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- conditions List<Property Map>
(Output) Array of observed Service Conditions, indicating the current ready state of the service. Structure is documented below.
- latest
Created StringRevision Name (Output) From ConfigurationStatus. LatestCreatedRevisionName is the last revision that was created from this Service's Configuration. It might not be ready yet, for that use LatestReadyRevisionName.
- latest
Ready StringRevision Name (Output) From ConfigurationStatus. LatestReadyRevisionName holds the name of the latest Revision stamped out from this Service's Configuration that has had its "Ready" condition become "True".
- observed
Generation Number (Output) ObservedGeneration is the 'Generation' of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False.
- traffics List<Property Map>
(Output) Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.
- url String
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
ServiceStatusCondition, ServiceStatusConditionArgs
- Message string
(Output) Human readable message indicating details about the current status.
- Reason string
(Output) One-word CamelCase reason for the condition's current status.
- Status string
(Output) Status of the condition, one of True, False, Unknown.
- Type string
(Output) Type of domain mapping condition.
- Message string
(Output) Human readable message indicating details about the current status.
- Reason string
(Output) One-word CamelCase reason for the condition's current status.
- Status string
(Output) Status of the condition, one of True, False, Unknown.
- Type string
(Output) Type of domain mapping condition.
- message String
(Output) Human readable message indicating details about the current status.
- reason String
(Output) One-word CamelCase reason for the condition's current status.
- status String
(Output) Status of the condition, one of True, False, Unknown.
- type String
(Output) Type of domain mapping condition.
- message string
(Output) Human readable message indicating details about the current status.
- reason string
(Output) One-word CamelCase reason for the condition's current status.
- status string
(Output) Status of the condition, one of True, False, Unknown.
- type string
(Output) Type of domain mapping condition.
- message String
(Output) Human readable message indicating details about the current status.
- reason String
(Output) One-word CamelCase reason for the condition's current status.
- status String
(Output) Status of the condition, one of True, False, Unknown.
- type String
(Output) Type of domain mapping condition.
ServiceStatusTraffic, ServiceStatusTrafficArgs
- Latest
Revision bool LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- Percent int
Percent specifies percent of the traffic to this Revision or Configuration.
- Revision
Name string RevisionName of a specific revision to which to send this portion of traffic.
- Tag string
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- Url string
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- Latest
Revision bool LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- Percent int
Percent specifies percent of the traffic to this Revision or Configuration.
- Revision
Name string RevisionName of a specific revision to which to send this portion of traffic.
- Tag string
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- Url string
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- latest
Revision Boolean LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- percent Integer
Percent specifies percent of the traffic to this Revision or Configuration.
- revision
Name String RevisionName of a specific revision to which to send this portion of traffic.
- tag String
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- url String
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- latest
Revision boolean LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- percent number
Percent specifies percent of the traffic to this Revision or Configuration.
- revision
Name string RevisionName of a specific revision to which to send this portion of traffic.
- tag string
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- url string
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- latest_
revision bool LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- percent int
Percent specifies percent of the traffic to this Revision or Configuration.
- revision_
name str RevisionName of a specific revision to which to send this portion of traffic.
- tag str
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- url str
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- latest
Revision Boolean LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- percent Number
Percent specifies percent of the traffic to this Revision or Configuration.
- revision
Name String RevisionName of a specific revision to which to send this portion of traffic.
- tag String
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- url String
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
ServiceTemplate, ServiceTemplateArgs
- Metadata
Service
Template Metadata Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
- Spec
Service
Template Spec RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.
- Metadata
Service
Template Metadata Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
- Spec
Service
Template Spec RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.
- metadata
Service
Template Metadata Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
- spec
Service
Template Spec RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.
- metadata
Service
Template Metadata Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
- spec
Service
Template Spec RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.
- metadata
Service
Template Metadata Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
- spec
Service
Template Spec RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.
- metadata Property Map
Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.
- spec Property Map
RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.
ServiceTemplateMetadata, ServiceTemplateMetadataArgs
- Annotations Dictionary<string, string>
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- Generation int
(Output) A sequence number representing a specific generation of the desired state.
- Labels Dictionary<string, string>
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- Name string
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated.
- Namespace string
In Cloud Run the namespace must be equal to either the project ID or project number.
- Resource
Version string (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- Self
Link string (Output) SelfLink is a URL representing this object.
- Uid string
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
- Annotations map[string]string
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- Generation int
(Output) A sequence number representing a specific generation of the desired state.
- Labels map[string]string
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- Name string
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated.
- Namespace string
In Cloud Run the namespace must be equal to either the project ID or project number.
- Resource
Version string (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- Self
Link string (Output) SelfLink is a URL representing this object.
- Uid string
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
- annotations Map<String,String>
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- generation Integer
(Output) A sequence number representing a specific generation of the desired state.
- labels Map<String,String>
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- name String
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated.
- namespace String
In Cloud Run the namespace must be equal to either the project ID or project number.
- resource
Version String (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- self
Link String (Output) SelfLink is a URL representing this object.
- uid String
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
- annotations {[key: string]: string}
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- generation number
(Output) A sequence number representing a specific generation of the desired state.
- labels {[key: string]: string}
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- name string
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated.
- namespace string
In Cloud Run the namespace must be equal to either the project ID or project number.
- resource
Version string (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- self
Link string (Output) SelfLink is a URL representing this object.
- uid string
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
- annotations Mapping[str, str]
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- generation int
(Output) A sequence number representing a specific generation of the desired state.
- labels Mapping[str, str]
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- name str
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated.
- namespace str
In Cloud Run the namespace must be equal to either the project ID or project number.
- resource_
version str (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- self_
link str (Output) SelfLink is a URL representing this object.
- uid str
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
- annotations Map<String>
Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config. If the provider plan shows a diff where a server-side annotation is added, you can add it to your config or apply the lifecycle.ignore_changes rule to the metadata.0.annotations field. Annotations with
run.googleapis.com/
andautoscaling.knative.dev
are restricted. Use the following annotation keys to configure features on a Service:run.googleapis.com/binary-authorization-breakglass
sets the Binary Authorization breakglass.run.googleapis.com/binary-authorization
sets the Binary Authorization.run.googleapis.com/client-name
sets the client name calling the Cloud Run API.run.googleapis.com/custom-audiences
sets the custom audiences that can be used in the audience field of ID token for authenticated requests.run.googleapis.com/description
sets a user defined description for the Service.run.googleapis.com/ingress
sets the ingress settings for the Service. For example,"run.googleapis.com/ingress" = "all"
.run.googleapis.com/launch-stage
sets the launch stage when a preview feature is used. For example,"run.googleapis.com/launch-stage": "BETA"
- generation Number
(Output) A sequence number representing a specific generation of the desired state.
- labels Map<String>
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes.
- name String
Name must be unique within a Google Cloud project and region. Is required when creating resources. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated.
- namespace String
In Cloud Run the namespace must be equal to either the project ID or project number.
- resource
Version String (Output) An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. They may only be valid for a particular resource or set of resources.
- self
Link String (Output) SelfLink is a URL representing this object.
- uid String
(Output) UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
ServiceTemplateSpec, ServiceTemplateSpecArgs
- Container
Concurrency int ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:
- Containers
List<Service
Template Spec Container> Containers defines the unit of execution for this Revision. Structure is documented below.
- Service
Account stringName Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
- Serving
State string (Output, Deprecated) ServingState holds a value describing the state the resources are in for this Revision. It is expected that the system will manipulate this based on routability and load.
Warning:
serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- Timeout
Seconds int TimeoutSeconds holds the max duration the instance is allowed for responding to a request.
- Volumes
List<Service
Template Spec Volume> Volume represents a named volume in a container. Structure is documented below.
- Container
Concurrency int ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:
- Containers
[]Service
Template Spec Container Containers defines the unit of execution for this Revision. Structure is documented below.
- Service
Account stringName Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
- Serving
State string (Output, Deprecated) ServingState holds a value describing the state the resources are in for this Revision. It is expected that the system will manipulate this based on routability and load.
Warning:
serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- Timeout
Seconds int TimeoutSeconds holds the max duration the instance is allowed for responding to a request.
- Volumes
[]Service
Template Spec Volume Volume represents a named volume in a container. Structure is documented below.
- container
Concurrency Integer ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:
- containers
List<Service
Template Spec Container> Containers defines the unit of execution for this Revision. Structure is documented below.
- service
Account StringName Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
- serving
State String (Output, Deprecated) ServingState holds a value describing the state the resources are in for this Revision. It is expected that the system will manipulate this based on routability and load.
Warning:
serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- timeout
Seconds Integer TimeoutSeconds holds the max duration the instance is allowed for responding to a request.
- volumes
List<Service
Template Spec Volume> Volume represents a named volume in a container. Structure is documented below.
- container
Concurrency number ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:
- containers
Service
Template Spec Container[] Containers defines the unit of execution for this Revision. Structure is documented below.
- service
Account stringName Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
- serving
State string (Output, Deprecated) ServingState holds a value describing the state the resources are in for this Revision. It is expected that the system will manipulate this based on routability and load.
Warning:
serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- timeout
Seconds number TimeoutSeconds holds the max duration the instance is allowed for responding to a request.
- volumes
Service
Template Spec Volume[] Volume represents a named volume in a container. Structure is documented below.
- container_
concurrency int ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:
- containers
Sequence[Service
Template Spec Container] Containers defines the unit of execution for this Revision. Structure is documented below.
- service_
account_ strname Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
- serving_
state str (Output, Deprecated) ServingState holds a value describing the state the resources are in for this Revision. It is expected that the system will manipulate this based on routability and load.
Warning:
serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- timeout_
seconds int TimeoutSeconds holds the max duration the instance is allowed for responding to a request.
- volumes
Sequence[Service
Template Spec Volume] Volume represents a named volume in a container. Structure is documented below.
- container
Concurrency Number ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:
- containers List<Property Map>
Containers defines the unit of execution for this Revision. Structure is documented below.
- service
Account StringName Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.
- serving
State String (Output, Deprecated) ServingState holds a value describing the state the resources are in for this Revision. It is expected that the system will manipulate this based on routability and load.
Warning:
serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.serving_state
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- timeout
Seconds Number TimeoutSeconds holds the max duration the instance is allowed for responding to a request.
- volumes List<Property Map>
Volume represents a named volume in a container. Structure is documented below.
ServiceTemplateSpecContainer, ServiceTemplateSpecContainerArgs
- Image string
Docker image name. This is most often a reference to a container located in the container registry, such as gcr.io/cloudrun/hello
- Args List<string>
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
- Commands List<string>
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
- Env
Froms List<ServiceTemplate Spec Container Env From> (Optional, Deprecated) List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below.
Warning:
env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- Envs
List<Service
Template Spec Container Env> List of environment variables to set in the container. Structure is documented below.
- Liveness
Probe ServiceTemplate Spec Container Liveness Probe Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Structure is documented below.
- Name string
Name of the container
- Ports
List<Service
Template Spec Container Port> List of open ports in the container. Structure is documented below.
- Resources
Service
Template Spec Container Resources Compute Resources required by this container. Used to set values such as max memory Structure is documented below.
- Startup
Probe ServiceTemplate Spec Container Startup Probe Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below.
- Volume
Mounts List<ServiceTemplate Spec Container Volume Mount> Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.
- Working
Dir string (Optional, Deprecated) Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
Warning:
working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.
- Image string
Docker image name. This is most often a reference to a container located in the container registry, such as gcr.io/cloudrun/hello
- Args []string
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
- Commands []string
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
- Env
Froms []ServiceTemplate Spec Container Env From (Optional, Deprecated) List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below.
Warning:
env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- Envs
[]Service
Template Spec Container Env List of environment variables to set in the container. Structure is documented below.
- Liveness
Probe ServiceTemplate Spec Container Liveness Probe Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Structure is documented below.
- Name string
Name of the container
- Ports
[]Service
Template Spec Container Port List of open ports in the container. Structure is documented below.
- Resources
Service
Template Spec Container Resources Compute Resources required by this container. Used to set values such as max memory Structure is documented below.
- Startup
Probe ServiceTemplate Spec Container Startup Probe Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below.
- Volume
Mounts []ServiceTemplate Spec Container Volume Mount Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.
- Working
Dir string (Optional, Deprecated) Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
Warning:
working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.
- image String
Docker image name. This is most often a reference to a container located in the container registry, such as gcr.io/cloudrun/hello
- args List<String>
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
- commands List<String>
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
- env
Froms List<ServiceTemplate Spec Container Env From> (Optional, Deprecated) List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below.
Warning:
env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- envs
List<Service
Template Spec Container Env> List of environment variables to set in the container. Structure is documented below.
- liveness
Probe ServiceTemplate Spec Container Liveness Probe Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Structure is documented below.
- name String
Name of the container
- ports
List<Service
Template Spec Container Port> List of open ports in the container. Structure is documented below.
- resources
Service
Template Spec Container Resources Compute Resources required by this container. Used to set values such as max memory Structure is documented below.
- startup
Probe ServiceTemplate Spec Container Startup Probe Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below.
- volume
Mounts List<ServiceTemplate Spec Container Volume Mount> Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.
- working
Dir String (Optional, Deprecated) Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
Warning:
working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.
- image string
Docker image name. This is most often a reference to a container located in the container registry, such as gcr.io/cloudrun/hello
- args string[]
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
- commands string[]
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
- env
Froms ServiceTemplate Spec Container Env From[] (Optional, Deprecated) List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below.
Warning:
env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- envs
Service
Template Spec Container Env[] List of environment variables to set in the container. Structure is documented below.
- liveness
Probe ServiceTemplate Spec Container Liveness Probe Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Structure is documented below.
- name string
Name of the container
- ports
Service
Template Spec Container Port[] List of open ports in the container. Structure is documented below.
- resources
Service
Template Spec Container Resources Compute Resources required by this container. Used to set values such as max memory Structure is documented below.
- startup
Probe ServiceTemplate Spec Container Startup Probe Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below.
- volume
Mounts ServiceTemplate Spec Container Volume Mount[] Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.
- working
Dir string (Optional, Deprecated) Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
Warning:
working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.
- image str
Docker image name. This is most often a reference to a container located in the container registry, such as gcr.io/cloudrun/hello
- args Sequence[str]
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
- commands Sequence[str]
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
- env_
froms Sequence[ServiceTemplate Spec Container Env From] (Optional, Deprecated) List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below.
Warning:
env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- envs
Sequence[Service
Template Spec Container Env] List of environment variables to set in the container. Structure is documented below.
- liveness_
probe ServiceTemplate Spec Container Liveness Probe Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Structure is documented below.
- name str
Name of the container
- ports
Sequence[Service
Template Spec Container Port] List of open ports in the container. Structure is documented below.
- resources
Service
Template Spec Container Resources Compute Resources required by this container. Used to set values such as max memory Structure is documented below.
- startup_
probe ServiceTemplate Spec Container Startup Probe Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below.
- volume_
mounts Sequence[ServiceTemplate Spec Container Volume Mount] Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.
- working_
dir str (Optional, Deprecated) Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
Warning:
working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.
- image String
Docker image name. This is most often a reference to a container located in the container registry, such as gcr.io/cloudrun/hello
- args List<String>
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
- commands List<String>
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.
- env
Froms List<Property Map> (Optional, Deprecated) List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below.
Warning:
env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.env_from
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- envs List<Property Map>
List of environment variables to set in the container. Structure is documented below.
- liveness
Probe Property Map Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Structure is documented below.
- name String
Name of the container
- ports List<Property Map>
List of open ports in the container. Structure is documented below.
- resources Property Map
Compute Resources required by this container. Used to set values such as max memory Structure is documented below.
- startup
Probe Property Map Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below.
- volume
Mounts List<Property Map> Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.
- working
Dir String (Optional, Deprecated) Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
Warning:
working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.working_dir
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.
ServiceTemplateSpecContainerEnv, ServiceTemplateSpecContainerEnvArgs
- Name string
Name of the environment variable.
- Value string
Defaults to "".
- Value
From ServiceTemplate Spec Container Env Value From Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.
- Name string
Name of the environment variable.
- Value string
Defaults to "".
- Value
From ServiceTemplate Spec Container Env Value From Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.
- name String
Name of the environment variable.
- value String
Defaults to "".
- value
From ServiceTemplate Spec Container Env Value From Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.
- name string
Name of the environment variable.
- value string
Defaults to "".
- value
From ServiceTemplate Spec Container Env Value From Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.
- name str
Name of the environment variable.
- value str
Defaults to "".
- value_
from ServiceTemplate Spec Container Env Value From Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.
- name String
Name of the environment variable.
- value String
Defaults to "".
- value
From Property Map Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.
ServiceTemplateSpecContainerEnvFrom, ServiceTemplateSpecContainerEnvFromArgs
- Config
Map ServiceRef Template Spec Container Env From Config Map Ref The ConfigMap to select from. Structure is documented below.
- Prefix string
An optional identifier to prepend to each key in the ConfigMap.
- Secret
Ref ServiceTemplate Spec Container Env From Secret Ref The Secret to select from. Structure is documented below.
- Config
Map ServiceRef Template Spec Container Env From Config Map Ref The ConfigMap to select from. Structure is documented below.
- Prefix string
An optional identifier to prepend to each key in the ConfigMap.
- Secret
Ref ServiceTemplate Spec Container Env From Secret Ref The Secret to select from. Structure is documented below.
- config
Map ServiceRef Template Spec Container Env From Config Map Ref The ConfigMap to select from. Structure is documented below.
- prefix String
An optional identifier to prepend to each key in the ConfigMap.
- secret
Ref ServiceTemplate Spec Container Env From Secret Ref The Secret to select from. Structure is documented below.
- config
Map ServiceRef Template Spec Container Env From Config Map Ref The ConfigMap to select from. Structure is documented below.
- prefix string
An optional identifier to prepend to each key in the ConfigMap.
- secret
Ref ServiceTemplate Spec Container Env From Secret Ref The Secret to select from. Structure is documented below.
- config_
map_ Serviceref Template Spec Container Env From Config Map Ref The ConfigMap to select from. Structure is documented below.
- prefix str
An optional identifier to prepend to each key in the ConfigMap.
- secret_
ref ServiceTemplate Spec Container Env From Secret Ref The Secret to select from. Structure is documented below.
- config
Map Property MapRef The ConfigMap to select from. Structure is documented below.
- prefix String
An optional identifier to prepend to each key in the ConfigMap.
- secret
Ref Property Map The Secret to select from. Structure is documented below.
ServiceTemplateSpecContainerEnvFromConfigMapRef, ServiceTemplateSpecContainerEnvFromConfigMapRefArgs
- Local
Object ServiceReference Template Spec Container Env From Config Map Ref Local Object Reference The ConfigMap to select from. Structure is documented below.
- Optional bool
Specify whether the ConfigMap must be defined
- Local
Object ServiceReference Template Spec Container Env From Config Map Ref Local Object Reference The ConfigMap to select from. Structure is documented below.
- Optional bool
Specify whether the ConfigMap must be defined
- local
Object ServiceReference Template Spec Container Env From Config Map Ref Local Object Reference The ConfigMap to select from. Structure is documented below.
- optional Boolean
Specify whether the ConfigMap must be defined
- local
Object ServiceReference Template Spec Container Env From Config Map Ref Local Object Reference The ConfigMap to select from. Structure is documented below.
- optional boolean
Specify whether the ConfigMap must be defined
- local_
object_ Servicereference Template Spec Container Env From Config Map Ref Local Object Reference The ConfigMap to select from. Structure is documented below.
- optional bool
Specify whether the ConfigMap must be defined
- local
Object Property MapReference The ConfigMap to select from. Structure is documented below.
- optional Boolean
Specify whether the ConfigMap must be defined
ServiceTemplateSpecContainerEnvFromConfigMapRefLocalObjectReference, ServiceTemplateSpecContainerEnvFromConfigMapRefLocalObjectReferenceArgs
- Name string
Name of the referent.
- Name string
Name of the referent.
- name String
Name of the referent.
- name string
Name of the referent.
- name str
Name of the referent.
- name String
Name of the referent.
ServiceTemplateSpecContainerEnvFromSecretRef, ServiceTemplateSpecContainerEnvFromSecretRefArgs
- Local
Object ServiceReference Template Spec Container Env From Secret Ref Local Object Reference The Secret to select from. Structure is documented below.
- Optional bool
Specify whether the Secret must be defined
- Local
Object ServiceReference Template Spec Container Env From Secret Ref Local Object Reference The Secret to select from. Structure is documented below.
- Optional bool
Specify whether the Secret must be defined
- local
Object ServiceReference Template Spec Container Env From Secret Ref Local Object Reference The Secret to select from. Structure is documented below.
- optional Boolean
Specify whether the Secret must be defined
- local
Object ServiceReference Template Spec Container Env From Secret Ref Local Object Reference The Secret to select from. Structure is documented below.
- optional boolean
Specify whether the Secret must be defined
- local_
object_ Servicereference Template Spec Container Env From Secret Ref Local Object Reference The Secret to select from. Structure is documented below.
- optional bool
Specify whether the Secret must be defined
- local
Object Property MapReference The Secret to select from. Structure is documented below.
- optional Boolean
Specify whether the Secret must be defined
ServiceTemplateSpecContainerEnvFromSecretRefLocalObjectReference, ServiceTemplateSpecContainerEnvFromSecretRefLocalObjectReferenceArgs
- Name string
Name of the referent.
- Name string
Name of the referent.
- name String
Name of the referent.
- name string
Name of the referent.
- name str
Name of the referent.
- name String
Name of the referent.
ServiceTemplateSpecContainerEnvValueFrom, ServiceTemplateSpecContainerEnvValueFromArgs
- Secret
Key ServiceRef Template Spec Container Env Value From Secret Key Ref Selects a key (version) of a secret in Secret Manager. Structure is documented below.
- Secret
Key ServiceRef Template Spec Container Env Value From Secret Key Ref Selects a key (version) of a secret in Secret Manager. Structure is documented below.
- secret
Key ServiceRef Template Spec Container Env Value From Secret Key Ref Selects a key (version) of a secret in Secret Manager. Structure is documented below.
- secret
Key ServiceRef Template Spec Container Env Value From Secret Key Ref Selects a key (version) of a secret in Secret Manager. Structure is documented below.
- secret_
key_ Serviceref Template Spec Container Env Value From Secret Key Ref Selects a key (version) of a secret in Secret Manager. Structure is documented below.
- secret
Key Property MapRef Selects a key (version) of a secret in Secret Manager. Structure is documented below.
ServiceTemplateSpecContainerEnvValueFromSecretKeyRef, ServiceTemplateSpecContainerEnvValueFromSecretKeyRefArgs
- Key string
A Cloud Secret Manager secret version. Must be 'latest' for the latest version or an integer for a specific version.
- Name string
The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: :projects/{project-id|project-number}/secrets/. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
- Key string
A Cloud Secret Manager secret version. Must be 'latest' for the latest version or an integer for a specific version.
- Name string
The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: :projects/{project-id|project-number}/secrets/. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
- key String
A Cloud Secret Manager secret version. Must be 'latest' for the latest version or an integer for a specific version.
- name String
The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: :projects/{project-id|project-number}/secrets/. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
- key string
A Cloud Secret Manager secret version. Must be 'latest' for the latest version or an integer for a specific version.
- name string
The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: :projects/{project-id|project-number}/secrets/. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
- key str
A Cloud Secret Manager secret version. Must be 'latest' for the latest version or an integer for a specific version.
- name str
The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: :projects/{project-id|project-number}/secrets/. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
- key String
A Cloud Secret Manager secret version. Must be 'latest' for the latest version or an integer for a specific version.
- name String
The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: :projects/{project-id|project-number}/secrets/. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
ServiceTemplateSpecContainerLivenessProbe, ServiceTemplateSpecContainerLivenessProbeArgs
- Failure
Threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- Grpc
Service
Template Spec Container Liveness Probe Grpc GRPC specifies an action involving a GRPC port. Structure is documented below.
- Http
Get ServiceTemplate Spec Container Liveness Probe Http Get HttpGet specifies the http request to perform. Structure is documented below.
- Initial
Delay intSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 3600.
- Period
Seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.
- Timeout
Seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
- Failure
Threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- Grpc
Service
Template Spec Container Liveness Probe Grpc GRPC specifies an action involving a GRPC port. Structure is documented below.
- Http
Get ServiceTemplate Spec Container Liveness Probe Http Get HttpGet specifies the http request to perform. Structure is documented below.
- Initial
Delay intSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 3600.
- Period
Seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.
- Timeout
Seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
- failure
Threshold Integer Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- grpc
Service
Template Spec Container Liveness Probe Grpc GRPC specifies an action involving a GRPC port. Structure is documented below.
- http
Get ServiceTemplate Spec Container Liveness Probe Http Get HttpGet specifies the http request to perform. Structure is documented below.
- initial
Delay IntegerSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 3600.
- period
Seconds Integer How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.
- timeout
Seconds Integer Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
- failure
Threshold number Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- grpc
Service
Template Spec Container Liveness Probe Grpc GRPC specifies an action involving a GRPC port. Structure is documented below.
- http
Get ServiceTemplate Spec Container Liveness Probe Http Get HttpGet specifies the http request to perform. Structure is documented below.
- initial
Delay numberSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 3600.
- period
Seconds number How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.
- timeout
Seconds number Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
- failure_
threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- grpc
Service
Template Spec Container Liveness Probe Grpc GRPC specifies an action involving a GRPC port. Structure is documented below.
- http_
get ServiceTemplate Spec Container Liveness Probe Http Get HttpGet specifies the http request to perform. Structure is documented below.
- initial_
delay_ intseconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 3600.
- period_
seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.
- timeout_
seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
- failure
Threshold Number Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- grpc Property Map
GRPC specifies an action involving a GRPC port. Structure is documented below.
- http
Get Property Map HttpGet specifies the http request to perform. Structure is documented below.
- initial
Delay NumberSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 3600.
- period
Seconds Number How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.
- timeout
Seconds Number Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
ServiceTemplateSpecContainerLivenessProbeGrpc, ServiceTemplateSpecContainerLivenessProbeGrpcArgs
- Port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- Service string
The 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.
- Port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- Service string
The 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.
- port Integer
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- service String
The 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.
- port number
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- service string
The 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.
- port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- service str
The 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.
- port Number
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- service String
The 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.
ServiceTemplateSpecContainerLivenessProbeHttpGet, ServiceTemplateSpecContainerLivenessProbeHttpGetArgs
- Http
Headers List<ServiceTemplate Spec Container Liveness Probe Http Get Http Header> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- Path string
Path to access on the HTTP server. If set, it should not be empty string.
- Port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- Http
Headers []ServiceTemplate Spec Container Liveness Probe Http Get Http Header Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- Path string
Path to access on the HTTP server. If set, it should not be empty string.
- Port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- http
Headers List<ServiceTemplate Spec Container Liveness Probe Http Get Http Header> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path String
Path to access on the HTTP server. If set, it should not be empty string.
- port Integer
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- http
Headers ServiceTemplate Spec Container Liveness Probe Http Get Http Header[] Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path string
Path to access on the HTTP server. If set, it should not be empty string.
- port number
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- http_
headers Sequence[ServiceTemplate Spec Container Liveness Probe Http Get Http Header] Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path str
Path to access on the HTTP server. If set, it should not be empty string.
- port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- http
Headers List<Property Map> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path String
Path to access on the HTTP server. If set, it should not be empty string.
- port Number
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeader, ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeaderArgs
ServiceTemplateSpecContainerPort, ServiceTemplateSpecContainerPortArgs
- Container
Port int Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to "8080".
- Name string
If specified, used to specify which protocol to use. Allowed values are "http1" (HTTP/1) and "h2c" (HTTP/2 end-to-end). Defaults to "http1".
- Protocol string
Protocol for port. Must be "TCP". Defaults to "TCP".
- Container
Port int Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to "8080".
- Name string
If specified, used to specify which protocol to use. Allowed values are "http1" (HTTP/1) and "h2c" (HTTP/2 end-to-end). Defaults to "http1".
- Protocol string
Protocol for port. Must be "TCP". Defaults to "TCP".
- container
Port Integer Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to "8080".
- name String
If specified, used to specify which protocol to use. Allowed values are "http1" (HTTP/1) and "h2c" (HTTP/2 end-to-end). Defaults to "http1".
- protocol String
Protocol for port. Must be "TCP". Defaults to "TCP".
- container
Port number Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to "8080".
- name string
If specified, used to specify which protocol to use. Allowed values are "http1" (HTTP/1) and "h2c" (HTTP/2 end-to-end). Defaults to "http1".
- protocol string
Protocol for port. Must be "TCP". Defaults to "TCP".
- container_
port int Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to "8080".
- name str
If specified, used to specify which protocol to use. Allowed values are "http1" (HTTP/1) and "h2c" (HTTP/2 end-to-end). Defaults to "http1".
- protocol str
Protocol for port. Must be "TCP". Defaults to "TCP".
- container
Port Number Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to "8080".
- name String
If specified, used to specify which protocol to use. Allowed values are "http1" (HTTP/1) and "h2c" (HTTP/2 end-to-end). Defaults to "http1".
- protocol String
Protocol for port. Must be "TCP". Defaults to "TCP".
ServiceTemplateSpecContainerResources, ServiceTemplateSpecContainerResourcesArgs
- Limits Dictionary<string, string>
Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- Requests Dictionary<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. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- Limits map[string]string
Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- Requests map[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. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- limits Map<String,String>
Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- requests Map<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. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- limits {[key: string]: string}
Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- requests {[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. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- limits Mapping[str, str]
Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- requests Mapping[str, str]
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. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- limits Map<String>
Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- requests Map<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. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
ServiceTemplateSpecContainerStartupProbe, ServiceTemplateSpecContainerStartupProbeArgs
- Failure
Threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- Grpc
Service
Template Spec Container Startup Probe Grpc GRPC specifies an action involving a GRPC port. Structure is documented below.
- Http
Get ServiceTemplate Spec Container Startup Probe Http Get HttpGet specifies the http request to perform. Structure is documented below.
- Initial
Delay intSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 240.
- Period
Seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240.
- Tcp
Socket ServiceTemplate Spec Container Startup Probe Tcp Socket TcpSocket specifies an action involving a TCP port. Structure is documented below.
- Timeout
Seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds.
- Failure
Threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- Grpc
Service
Template Spec Container Startup Probe Grpc GRPC specifies an action involving a GRPC port. Structure is documented below.
- Http
Get ServiceTemplate Spec Container Startup Probe Http Get HttpGet specifies the http request to perform. Structure is documented below.
- Initial
Delay intSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 240.
- Period
Seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240.
- Tcp
Socket ServiceTemplate Spec Container Startup Probe Tcp Socket TcpSocket specifies an action involving a TCP port. Structure is documented below.
- Timeout
Seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds.
- failure
Threshold Integer Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- grpc
Service
Template Spec Container Startup Probe Grpc GRPC specifies an action involving a GRPC port. Structure is documented below.
- http
Get ServiceTemplate Spec Container Startup Probe Http Get HttpGet specifies the http request to perform. Structure is documented below.
- initial
Delay IntegerSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 240.
- period
Seconds Integer How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240.
- tcp
Socket ServiceTemplate Spec Container Startup Probe Tcp Socket TcpSocket specifies an action involving a TCP port. Structure is documented below.
- timeout
Seconds Integer Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds.
- failure
Threshold number Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- grpc
Service
Template Spec Container Startup Probe Grpc GRPC specifies an action involving a GRPC port. Structure is documented below.
- http
Get ServiceTemplate Spec Container Startup Probe Http Get HttpGet specifies the http request to perform. Structure is documented below.
- initial
Delay numberSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 240.
- period
Seconds number How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240.
- tcp
Socket ServiceTemplate Spec Container Startup Probe Tcp Socket TcpSocket specifies an action involving a TCP port. Structure is documented below.
- timeout
Seconds number Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds.
- failure_
threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- grpc
Service
Template Spec Container Startup Probe Grpc GRPC specifies an action involving a GRPC port. Structure is documented below.
- http_
get ServiceTemplate Spec Container Startup Probe Http Get HttpGet specifies the http request to perform. Structure is documented below.
- initial_
delay_ intseconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 240.
- period_
seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240.
- tcp_
socket ServiceTemplate Spec Container Startup Probe Tcp Socket TcpSocket specifies an action involving a TCP port. Structure is documented below.
- timeout_
seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds.
- failure
Threshold Number Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- grpc Property Map
GRPC specifies an action involving a GRPC port. Structure is documented below.
- http
Get Property Map HttpGet specifies the http request to perform. Structure is documented below.
- initial
Delay NumberSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 240.
- period
Seconds Number How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240.
- tcp
Socket Property Map TcpSocket specifies an action involving a TCP port. Structure is documented below.
- timeout
Seconds Number Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds.
ServiceTemplateSpecContainerStartupProbeGrpc, ServiceTemplateSpecContainerStartupProbeGrpcArgs
- Port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- Service string
The 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.
- Port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- Service string
The 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.
- port Integer
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- service String
The 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.
- port number
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- service string
The 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.
- port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- service str
The 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.
- port Number
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- service String
The 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.
ServiceTemplateSpecContainerStartupProbeHttpGet, ServiceTemplateSpecContainerStartupProbeHttpGetArgs
- Http
Headers List<ServiceTemplate Spec Container Startup Probe Http Get Http Header> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- Path string
Path to access on the HTTP server. If set, it should not be empty string.
- Port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- Http
Headers []ServiceTemplate Spec Container Startup Probe Http Get Http Header Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- Path string
Path to access on the HTTP server. If set, it should not be empty string.
- Port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- http
Headers List<ServiceTemplate Spec Container Startup Probe Http Get Http Header> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path String
Path to access on the HTTP server. If set, it should not be empty string.
- port Integer
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- http
Headers ServiceTemplate Spec Container Startup Probe Http Get Http Header[] Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path string
Path to access on the HTTP server. If set, it should not be empty string.
- port number
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- http_
headers Sequence[ServiceTemplate Spec Container Startup Probe Http Get Http Header] Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path str
Path to access on the HTTP server. If set, it should not be empty string.
- port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- http
Headers List<Property Map> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path String
Path to access on the HTTP server. If set, it should not be empty string.
- port Number
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
ServiceTemplateSpecContainerStartupProbeHttpGetHttpHeader, ServiceTemplateSpecContainerStartupProbeHttpGetHttpHeaderArgs
ServiceTemplateSpecContainerStartupProbeTcpSocket, ServiceTemplateSpecContainerStartupProbeTcpSocketArgs
- Port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- Port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- port Integer
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- port number
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- port int
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
- port Number
Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort.
ServiceTemplateSpecContainerVolumeMount, ServiceTemplateSpecContainerVolumeMountArgs
- mount_
path str Path within the container at which the volume should be mounted. Must not contain ':'.
- name str
This must match the Name of a Volume.
ServiceTemplateSpecVolume, ServiceTemplateSpecVolumeArgs
- Name string
Volume's name.
- Empty
Dir ServiceTemplate Spec Volume Empty Dir - Secret
Service
Template Spec Volume Secret The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below.
- Name string
Volume's name.
- Empty
Dir ServiceTemplate Spec Volume Empty Dir - Secret
Service
Template Spec Volume Secret The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below.
- name String
Volume's name.
- empty
Dir ServiceTemplate Spec Volume Empty Dir - secret
Service
Template Spec Volume Secret The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below.
- name string
Volume's name.
- empty
Dir ServiceTemplate Spec Volume Empty Dir - secret
Service
Template Spec Volume Secret The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below.
- name str
Volume's name.
- empty_
dir ServiceTemplate Spec Volume Empty Dir - secret
Service
Template Spec Volume Secret The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below.
- name String
Volume's name.
- empty
Dir Property Map - secret Property Map
The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below.
ServiceTemplateSpecVolumeEmptyDir, ServiceTemplateSpecVolumeEmptyDirArgs
- Medium string
The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory.
- Size
Limit string Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
- Medium string
The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory.
- Size
Limit string Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
- medium String
The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory.
- size
Limit String Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
- medium string
The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory.
- size
Limit string Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
- medium str
The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory.
- size_
limit str Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
- medium String
The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory.
- size
Limit String Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
ServiceTemplateSpecVolumeSecret, ServiceTemplateSpecVolumeSecretArgs
- Secret
Name string The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: {alias}:projects/{project-id|project-number}/secrets/{secret-name}. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
- Default
Mode int Mode bits to use on created files by default. Must be a value between 0000 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
- Items
List<Service
Template Spec Volume Secret Item> If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below.
- Secret
Name string The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: {alias}:projects/{project-id|project-number}/secrets/{secret-name}. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
- Default
Mode int Mode bits to use on created files by default. Must be a value between 0000 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
- Items
[]Service
Template Spec Volume Secret Item If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below.
- secret
Name String The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: {alias}:projects/{project-id|project-number}/secrets/{secret-name}. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
- default
Mode Integer Mode bits to use on created files by default. Must be a value between 0000 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
- items
List<Service
Template Spec Volume Secret Item> If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below.
- secret
Name string The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: {alias}:projects/{project-id|project-number}/secrets/{secret-name}. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
- default
Mode number Mode bits to use on created files by default. Must be a value between 0000 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
- items
Service
Template Spec Volume Secret Item[] If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below.
- secret_
name str The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: {alias}:projects/{project-id|project-number}/secrets/{secret-name}. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
- default_
mode int Mode bits to use on created files by default. Must be a value between 0000 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
- items
Sequence[Service
Template Spec Volume Secret Item] If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below.
- secret
Name String The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: {alias}:projects/{project-id|project-number}/secrets/{secret-name}. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation.
- default
Mode Number Mode bits to use on created files by default. Must be a value between 0000 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
- items List<Property Map>
If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below.
ServiceTemplateSpecVolumeSecretItem, ServiceTemplateSpecVolumeSecretItemArgs
- Key string
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
- Path string
The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
- Mode int
Mode bits to use on this file, must be a value between 0000 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
- Key string
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
- Path string
The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
- Mode int
Mode bits to use on this file, must be a value between 0000 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
- key String
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
- path String
The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
- mode Integer
Mode bits to use on this file, must be a value between 0000 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
- key string
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
- path string
The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
- mode number
Mode bits to use on this file, must be a value between 0000 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
- key str
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
- path str
The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
- mode int
Mode bits to use on this file, must be a value between 0000 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
- key String
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
- path String
The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
- mode Number
Mode bits to use on this file, must be a value between 0000 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
ServiceTraffic, ServiceTrafficArgs
- Percent int
Percent specifies percent of the traffic to this Revision or Configuration.
- Latest
Revision bool LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- Revision
Name string RevisionName of a specific revision to which to send this portion of traffic.
- Tag string
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- Url string
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- Percent int
Percent specifies percent of the traffic to this Revision or Configuration.
- Latest
Revision bool LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- Revision
Name string RevisionName of a specific revision to which to send this portion of traffic.
- Tag string
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- Url string
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- percent Integer
Percent specifies percent of the traffic to this Revision or Configuration.
- latest
Revision Boolean LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- revision
Name String RevisionName of a specific revision to which to send this portion of traffic.
- tag String
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- url String
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- percent number
Percent specifies percent of the traffic to this Revision or Configuration.
- latest
Revision boolean LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- revision
Name string RevisionName of a specific revision to which to send this portion of traffic.
- tag string
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- url string
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- percent int
Percent specifies percent of the traffic to this Revision or Configuration.
- latest_
revision bool LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- revision_
name str RevisionName of a specific revision to which to send this portion of traffic.
- tag str
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- url str
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
- percent Number
Percent specifies percent of the traffic to this Revision or Configuration.
- latest
Revision Boolean LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.
- revision
Name String RevisionName of a specific revision to which to send this portion of traffic.
- tag String
Tag is optionally used to expose a dedicated url for referencing this target exclusively.
- url String
(Output) URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
Import
Service can be imported using any of these accepted formats
$ pulumi import gcp:cloudrun/service:Service default locations/{{location}}/namespaces/{{project}}/services/{{name}}
$ pulumi import gcp:cloudrun/service:Service default {{location}}/{{project}}/{{name}}
$ pulumi import gcp:cloudrun/service:Service default {{location}}/{{name}}
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.