Google Cloud (GCP) Classic

v6.44.0 published on Tuesday, Nov 29, 2022 by Pulumi

Service

Service acts as a top-level container that manages a set of Routes and Configurations which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership. Service acts only as an orchestrator of the underlying Routes and Configurations (much as a kubernetes Deployment orchestrates ReplicaSets).

The Service’s controller will track the statuses of its owned Configuration and Route, reflecting their statuses and conditions as its own.

See also: https://github.com/knative/specs/blob/main/specs/serving/overview.md

To get more information about Service, see:

Warning: google_cloudrun_service creates a Managed Google Cloud Run Service. If you need to create a Cloud Run Service on Anthos(GKE/VMWare) then you will need to create it using the kubernetes alpha provider. Have a look at the Cloud Run Anthos example below.

Example Usage

Cloud Run Service Pubsub

using System.Collections.Generic;
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.StringOutput),
				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 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 defaultService = 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 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 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{
				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 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
        {
            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,
            },
        },
    }, new CustomResourceOptions
    {
        Provider = google_beta,
    });

});
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"),
			Metadata: &cloudrun.ServiceMetadataArgs{
				Annotations: pulumi.StringMap{
					"run.googleapis.com/launch-stage": pulumi.String("BETA"),
				},
			},
			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),
				},
			},
		}, 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.ServiceTemplateSpecArgs;
import com.pulumi.gcp.cloudrun.inputs.ServiceTrafficArgs;
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()
                .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(), CustomResourceOptions.builder()
                .provider(google_beta)
                .build());

    }
}
import pulumi
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(
        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,
    )],
    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: {
        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,
    }],
}, {
    provider: google_beta,
});
resources:
  default:
    type: gcp:cloudrun:Service
    properties:
      location: us-central1
      metadata:
        annotations:
          run.googleapis.com/launch-stage: BETA
      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
    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

AutogenerateRevisionName bool

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.metadata.name is unset in state while this field is set to false, the revision name will still autogenerate.)

Metadata ServiceMetadataArgs

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

Name string

Volume's name.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Template ServiceTemplateArgs

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. Structure is documented below.

Traffics List<ServiceTrafficArgs>

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

AutogenerateRevisionName bool

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.metadata.name is unset in state while this field is set to false, the revision name will still autogenerate.)

Metadata ServiceMetadataArgs

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

Name string

Volume's name.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Template ServiceTemplateArgs

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. Structure is documented below.

Traffics []ServiceTrafficArgs

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

autogenerateRevisionName Boolean

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.metadata.name is unset in state while this field is set to false, the revision name will still autogenerate.)

metadata ServiceMetadataArgs

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

name String

Volume's name.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

template ServiceTemplateArgs

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. Structure is documented below.

traffics List<ServiceTrafficArgs>

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

autogenerateRevisionName boolean

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.metadata.name is unset in state while this field is set to false, the revision name will still autogenerate.)

metadata ServiceMetadataArgs

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

name string

Volume's name.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

template ServiceTemplateArgs

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. Structure is documented below.

traffics ServiceTrafficArgs[]

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_name bool

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.metadata.name is unset in state while this field is set to false, the revision name will still autogenerate.)

metadata ServiceMetadataArgs

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

name str

Volume's name.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

template ServiceTemplateArgs

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. Structure is documented below.

traffics Sequence[ServiceTrafficArgs]

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

autogenerateRevisionName Boolean

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.metadata.name is unset in state while this field is set to false, the revision name will still autogenerate.)

metadata Property Map

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

name String

Volume's name.

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. Structure is documented below.

traffics List<Property Map>

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<ServiceStatus>

The current status of the Service.

Id string

The provider-assigned unique ID for this managed resource.

Statuses []ServiceStatus

The current status of the Service.

id String

The provider-assigned unique ID for this managed resource.

statuses List<ServiceStatus>

The current status of the Service.

id string

The provider-assigned unique ID for this managed resource.

statuses ServiceStatus[]

The current status of the Service.

id str

The provider-assigned unique ID for this managed resource.

statuses Sequence[ServiceStatus]

The current status of the Service.

id String

The provider-assigned unique ID for this managed resource.

statuses List<Property Map>

The current status of the Service.

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.
The following state arguments are supported:
AutogenerateRevisionName bool

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.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 ServiceMetadataArgs

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

Name string

Volume's name.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Statuses List<ServiceStatusArgs>

The current status of the Service.

Template ServiceTemplateArgs

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. Structure is documented below.

Traffics List<ServiceTrafficArgs>

Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.

AutogenerateRevisionName bool

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.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 ServiceMetadataArgs

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

Name string

Volume's name.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Statuses []ServiceStatusArgs

The current status of the Service.

Template ServiceTemplateArgs

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. Structure is documented below.

Traffics []ServiceTrafficArgs

Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.

autogenerateRevisionName Boolean

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.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 ServiceMetadataArgs

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

name String

Volume's name.

project String

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

statuses List<ServiceStatusArgs>

The current status of the Service.

template ServiceTemplateArgs

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. Structure is documented below.

traffics List<ServiceTrafficArgs>

Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.

autogenerateRevisionName boolean

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.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 ServiceMetadataArgs

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

name string

Volume's name.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

statuses ServiceStatusArgs[]

The current status of the Service.

template ServiceTemplateArgs

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. Structure is documented below.

traffics ServiceTrafficArgs[]

Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.

autogenerate_revision_name bool

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.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 ServiceMetadataArgs

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

name str

Volume's name.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

statuses Sequence[ServiceStatusArgs]

The current status of the Service.

template ServiceTemplateArgs

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. Structure is documented below.

traffics Sequence[ServiceTrafficArgs]

Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.

autogenerateRevisionName Boolean

If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.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

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

name String

Volume's name.

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>

The current status of the Service.

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. Structure is documented below.

traffics List<Property Map>

Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.

Supporting Types

ServiceMetadata

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
Generation int

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. More info: http://kubernetes.io/docs/user-guide/labels

Namespace string

In Cloud Run the namespace must be equal to either the project ID or project number.

ResourceVersion string

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

SelfLink string

SelfLink is a URL representing this object.

Uid string

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
Generation int

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. More info: http://kubernetes.io/docs/user-guide/labels

Namespace string

In Cloud Run the namespace must be equal to either the project ID or project number.

ResourceVersion string

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

SelfLink string

SelfLink is a URL representing this object.

Uid string

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
generation Integer

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. More info: http://kubernetes.io/docs/user-guide/labels

namespace String

In Cloud Run the namespace must be equal to either the project ID or project number.

resourceVersion String

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

selfLink String

SelfLink is a URL representing this object.

uid String

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
generation number

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. More info: http://kubernetes.io/docs/user-guide/labels

namespace string

In Cloud Run the namespace must be equal to either the project ID or project number.

resourceVersion string

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

selfLink string

SelfLink is a URL representing this object.

uid string

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
generation int

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. More info: http://kubernetes.io/docs/user-guide/labels

namespace str

In Cloud Run the namespace must be equal to either the project ID or project number.

resource_version str

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

self_link str

SelfLink is a URL representing this object.

uid str

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
generation Number

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. More info: http://kubernetes.io/docs/user-guide/labels

namespace String

In Cloud Run the namespace must be equal to either the project ID or project number.

resourceVersion String

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

selfLink String

SelfLink is a URL representing this object.

uid String

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

ServiceStatus

Conditions List<ServiceStatusCondition>
LatestCreatedRevisionName string
LatestReadyRevisionName string
ObservedGeneration int
Url string

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 []ServiceStatusCondition
LatestCreatedRevisionName string
LatestReadyRevisionName string
ObservedGeneration int
Url string

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<ServiceStatusCondition>
latestCreatedRevisionName String
latestReadyRevisionName String
observedGeneration Integer
url String

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 ServiceStatusCondition[]
latestCreatedRevisionName string
latestReadyRevisionName string
observedGeneration number
url string

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[ServiceStatusCondition]
latest_created_revision_name str
latest_ready_revision_name str
observed_generation int
url str

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>
latestCreatedRevisionName String
latestReadyRevisionName String
observedGeneration Number
url String

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

Message string
Reason string
Status string
Type string
Message string
Reason string
Status string
Type string
message String
reason String
status String
type String
message string
reason string
status string
type string
message str
reason str
status str
type str
message String
reason String
status String
type String

ServiceTemplate

Metadata ServiceTemplateMetadata

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

Spec ServiceTemplateSpec

RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.

Metadata ServiceTemplateMetadata

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

Spec ServiceTemplateSpec

RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.

metadata ServiceTemplateMetadata

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

spec ServiceTemplateSpec

RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.

metadata ServiceTemplateMetadata

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

spec ServiceTemplateSpec

RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.

metadata ServiceTemplateMetadata

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

spec ServiceTemplateSpec

RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.

metadata Property Map

Metadata associated with this Service, including name, namespace, labels, and annotations. Structure is documented below.

spec Property Map

RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.

ServiceTemplateMetadata

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
Generation int

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. More info: http://kubernetes.io/docs/user-guide/labels

Name string

Volume's name.

Namespace string

In Cloud Run the namespace must be equal to either the project ID or project number.

ResourceVersion string

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

SelfLink string

SelfLink is a URL representing this object.

Uid string

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
Generation int

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. More info: http://kubernetes.io/docs/user-guide/labels

Name string

Volume's name.

Namespace string

In Cloud Run the namespace must be equal to either the project ID or project number.

ResourceVersion string

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

SelfLink string

SelfLink is a URL representing this object.

Uid string

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
generation Integer

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. More info: http://kubernetes.io/docs/user-guide/labels

name String

Volume's name.

namespace String

In Cloud Run the namespace must be equal to either the project ID or project number.

resourceVersion String

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

selfLink String

SelfLink is a URL representing this object.

uid String

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
generation number

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. More info: http://kubernetes.io/docs/user-guide/labels

name string

Volume's name.

namespace string

In Cloud Run the namespace must be equal to either the project ID or project number.

resourceVersion string

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

selfLink string

SelfLink is a URL representing this object.

uid string

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
generation int

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. More info: http://kubernetes.io/docs/user-guide/labels

name str

Volume's name.

namespace str

In Cloud Run the namespace must be equal to either the project ID or project number.

resource_version str

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

self_link str

SelfLink is a URL representing this object.

uid str

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

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: http://kubernetes.io/docs/user-guide/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. Cloud Run (fully managed) uses the following annotation keys to configure features on a Service:

  • run.googleapis.com/ingress sets the ingress settings for the Service. For example, "run.googleapis.com/ingress" = "all".
generation Number

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. More info: http://kubernetes.io/docs/user-guide/labels

name String

Volume's name.

namespace String

In Cloud Run the namespace must be equal to either the project ID or project number.

resourceVersion String

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. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency

selfLink String

SelfLink is a URL representing this object.

uid String

UID is a unique id generated by the server on successful creation of a resource and is not allowed to change on PUT operations. More info: http://kubernetes.io/docs/user-guide/identifiers#uids

ServiceTemplateSpec

ContainerConcurrency int

ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:

Containers List<ServiceTemplateSpecContainer>

Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. The runtime contract is documented here: https://github.com/knative/serving/blob/main/docs/runtime-contract.md Structure is documented below.

ServiceAccountName string

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.

ServingState string

(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.

Deprecated:

Not supported by Cloud Run fully managed

TimeoutSeconds 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.

Volumes List<ServiceTemplateSpecVolume>

Volume represents a named volume in a container. Structure is documented below.

ContainerConcurrency int

ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:

Containers []ServiceTemplateSpecContainer

Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. The runtime contract is documented here: https://github.com/knative/serving/blob/main/docs/runtime-contract.md Structure is documented below.

ServiceAccountName string

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.

ServingState string

(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.

Deprecated:

Not supported by Cloud Run fully managed

TimeoutSeconds 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.

Volumes []ServiceTemplateSpecVolume

Volume represents a named volume in a container. Structure is documented below.

containerConcurrency Integer

ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:

containers List<ServiceTemplateSpecContainer>

Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. The runtime contract is documented here: https://github.com/knative/serving/blob/main/docs/runtime-contract.md Structure is documented below.

serviceAccountName String

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.

servingState String

(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.

Deprecated:

Not supported by Cloud Run fully managed

timeoutSeconds 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.

volumes List<ServiceTemplateSpecVolume>

Volume represents a named volume in a container. Structure is documented below.

containerConcurrency number

ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:

containers ServiceTemplateSpecContainer[]

Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. The runtime contract is documented here: https://github.com/knative/serving/blob/main/docs/runtime-contract.md Structure is documented below.

serviceAccountName string

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.

servingState string

(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.

Deprecated:

Not supported by Cloud Run fully managed

timeoutSeconds 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.

volumes ServiceTemplateSpecVolume[]

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[ServiceTemplateSpecContainer]

Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. The runtime contract is documented here: https://github.com/knative/serving/blob/main/docs/runtime-contract.md Structure is documented below.

service_account_name str

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

(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.

Deprecated:

Not supported by Cloud Run fully managed

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.

volumes Sequence[ServiceTemplateSpecVolume]

Volume represents a named volume in a container. Structure is documented below.

containerConcurrency Number

ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:

containers List<Property Map>

Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. The runtime contract is documented here: https://github.com/knative/serving/blob/main/docs/runtime-contract.md Structure is documented below.

serviceAccountName String

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.

servingState String

(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.

Deprecated:

Not supported by Cloud Run fully managed

timeoutSeconds 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.

volumes List<Property Map>

Volume represents a named volume in a container. Structure is documented below.

ServiceTemplateSpecContainer

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 More info: https://kubernetes.io/docs/concepts/containers/images

Args List<string>

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

Commands List<string>

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

EnvFroms List<ServiceTemplateSpecContainerEnvFrom>

(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.

Deprecated:

Not supported by Cloud Run fully managed

Envs List<ServiceTemplateSpecContainerEnv>

List of environment variables to set in the container. Structure is documented below.

LivenessProbe ServiceTemplateSpecContainerLivenessProbe

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.

Ports List<ServiceTemplateSpecContainerPort>

List of open ports in the container. More Info: https://cloud.google.com/run/docs/reference/rest/v1/RevisionSpec#ContainerPort Structure is documented below.

Resources ServiceTemplateSpecContainerResources

Compute Resources required by this container. Used to set values such as max memory More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits Structure is documented below.

StartupProbe ServiceTemplateSpecContainerStartupProbe
VolumeMounts List<ServiceTemplateSpecContainerVolumeMount>

Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.

WorkingDir 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.

Deprecated:

Not supported by Cloud Run fully managed

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 More info: https://kubernetes.io/docs/concepts/containers/images

Args []string

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

Commands []string

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

EnvFroms []ServiceTemplateSpecContainerEnvFrom

(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.

Deprecated:

Not supported by Cloud Run fully managed

Envs []ServiceTemplateSpecContainerEnv

List of environment variables to set in the container. Structure is documented below.

LivenessProbe ServiceTemplateSpecContainerLivenessProbe

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.

Ports []ServiceTemplateSpecContainerPort

List of open ports in the container. More Info: https://cloud.google.com/run/docs/reference/rest/v1/RevisionSpec#ContainerPort Structure is documented below.

Resources ServiceTemplateSpecContainerResources

Compute Resources required by this container. Used to set values such as max memory More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits Structure is documented below.

StartupProbe ServiceTemplateSpecContainerStartupProbe
VolumeMounts []ServiceTemplateSpecContainerVolumeMount

Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.

WorkingDir 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.

Deprecated:

Not supported by Cloud Run fully managed

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 More info: https://kubernetes.io/docs/concepts/containers/images

args List<String>

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

commands List<String>

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

envFroms List<ServiceTemplateSpecContainerEnvFrom>

(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.

Deprecated:

Not supported by Cloud Run fully managed

envs List<ServiceTemplateSpecContainerEnv>

List of environment variables to set in the container. Structure is documented below.

livenessProbe ServiceTemplateSpecContainerLivenessProbe

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.

ports List<ServiceTemplateSpecContainerPort>

List of open ports in the container. More Info: https://cloud.google.com/run/docs/reference/rest/v1/RevisionSpec#ContainerPort Structure is documented below.

resources ServiceTemplateSpecContainerResources

Compute Resources required by this container. Used to set values such as max memory More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits Structure is documented below.

startupProbe ServiceTemplateSpecContainerStartupProbe
volumeMounts List<ServiceTemplateSpecContainerVolumeMount>

Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.

workingDir 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.

Deprecated:

Not supported by Cloud Run fully managed

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 More info: https://kubernetes.io/docs/concepts/containers/images

args string[]

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

commands string[]

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

envFroms ServiceTemplateSpecContainerEnvFrom[]

(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.

Deprecated:

Not supported by Cloud Run fully managed

envs ServiceTemplateSpecContainerEnv[]

List of environment variables to set in the container. Structure is documented below.

livenessProbe ServiceTemplateSpecContainerLivenessProbe

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.

ports ServiceTemplateSpecContainerPort[]

List of open ports in the container. More Info: https://cloud.google.com/run/docs/reference/rest/v1/RevisionSpec#ContainerPort Structure is documented below.

resources ServiceTemplateSpecContainerResources

Compute Resources required by this container. Used to set values such as max memory More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits Structure is documented below.

startupProbe ServiceTemplateSpecContainerStartupProbe
volumeMounts ServiceTemplateSpecContainerVolumeMount[]

Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.

workingDir 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.

Deprecated:

Not supported by Cloud Run fully managed

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 More info: https://kubernetes.io/docs/concepts/containers/images

args Sequence[str]

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

commands Sequence[str]

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

env_froms Sequence[ServiceTemplateSpecContainerEnvFrom]

(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.

Deprecated:

Not supported by Cloud Run fully managed

envs Sequence[ServiceTemplateSpecContainerEnv]

List of environment variables to set in the container. Structure is documented below.

liveness_probe ServiceTemplateSpecContainerLivenessProbe

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.

ports Sequence[ServiceTemplateSpecContainerPort]

List of open ports in the container. More Info: https://cloud.google.com/run/docs/reference/rest/v1/RevisionSpec#ContainerPort Structure is documented below.

resources ServiceTemplateSpecContainerResources

Compute Resources required by this container. Used to set values such as max memory More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits Structure is documented below.

startup_probe ServiceTemplateSpecContainerStartupProbe
volume_mounts Sequence[ServiceTemplateSpecContainerVolumeMount]

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.

Deprecated:

Not supported by Cloud Run fully managed

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 More info: https://kubernetes.io/docs/concepts/containers/images

args List<String>

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

commands List<String>

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

envFroms 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.

Deprecated:

Not supported by Cloud Run fully managed

envs List<Property Map>

List of environment variables to set in the container. Structure is documented below.

livenessProbe 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.

ports List<Property Map>

List of open ports in the container. More Info: https://cloud.google.com/run/docs/reference/rest/v1/RevisionSpec#ContainerPort Structure is documented below.

resources Property Map

Compute Resources required by this container. Used to set values such as max memory More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits Structure is documented below.

startupProbe Property Map
volumeMounts List<Property Map>

Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.

workingDir 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.

Deprecated:

Not supported by Cloud Run fully managed

ServiceTemplateSpecContainerEnv

Name string

Volume's name.

Value string

The header field value.

ValueFrom ServiceTemplateSpecContainerEnvValueFrom

Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.

Name string

Volume's name.

Value string

The header field value.

ValueFrom ServiceTemplateSpecContainerEnvValueFrom

Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.

name String

Volume's name.

value String

The header field value.

valueFrom ServiceTemplateSpecContainerEnvValueFrom

Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.

name string

Volume's name.

value string

The header field value.

valueFrom ServiceTemplateSpecContainerEnvValueFrom

Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.

name str

Volume's name.

value str

The header field value.

value_from ServiceTemplateSpecContainerEnvValueFrom

Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.

name String

Volume's name.

value String

The header field value.

valueFrom Property Map

Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.

ServiceTemplateSpecContainerEnvFrom

ConfigMapRef ServiceTemplateSpecContainerEnvFromConfigMapRef

The ConfigMap to select from. Structure is documented below.

Prefix string

An optional identifier to prepend to each key in the ConfigMap.

SecretRef ServiceTemplateSpecContainerEnvFromSecretRef

The Secret to select from. Structure is documented below.

ConfigMapRef ServiceTemplateSpecContainerEnvFromConfigMapRef

The ConfigMap to select from. Structure is documented below.

Prefix string

An optional identifier to prepend to each key in the ConfigMap.

SecretRef ServiceTemplateSpecContainerEnvFromSecretRef

The Secret to select from. Structure is documented below.

configMapRef ServiceTemplateSpecContainerEnvFromConfigMapRef

The ConfigMap to select from. Structure is documented below.

prefix String

An optional identifier to prepend to each key in the ConfigMap.

secretRef ServiceTemplateSpecContainerEnvFromSecretRef

The Secret to select from. Structure is documented below.

configMapRef ServiceTemplateSpecContainerEnvFromConfigMapRef

The ConfigMap to select from. Structure is documented below.

prefix string

An optional identifier to prepend to each key in the ConfigMap.

secretRef ServiceTemplateSpecContainerEnvFromSecretRef

The Secret to select from. Structure is documented below.

config_map_ref ServiceTemplateSpecContainerEnvFromConfigMapRef

The ConfigMap to select from. Structure is documented below.

prefix str

An optional identifier to prepend to each key in the ConfigMap.

secret_ref ServiceTemplateSpecContainerEnvFromSecretRef

The Secret to select from. Structure is documented below.

configMapRef Property Map

The ConfigMap to select from. Structure is documented below.

prefix String

An optional identifier to prepend to each key in the ConfigMap.

secretRef Property Map

The Secret to select from. Structure is documented below.

ServiceTemplateSpecContainerEnvFromConfigMapRef

LocalObjectReference ServiceTemplateSpecContainerEnvFromConfigMapRefLocalObjectReference

The Secret to select from. Structure is documented below.

Optional bool

Specify whether the Secret must be defined

LocalObjectReference ServiceTemplateSpecContainerEnvFromConfigMapRefLocalObjectReference

The Secret to select from. Structure is documented below.

Optional bool

Specify whether the Secret must be defined

localObjectReference ServiceTemplateSpecContainerEnvFromConfigMapRefLocalObjectReference

The Secret to select from. Structure is documented below.

optional Boolean

Specify whether the Secret must be defined

localObjectReference ServiceTemplateSpecContainerEnvFromConfigMapRefLocalObjectReference

The Secret to select from. Structure is documented below.

optional boolean

Specify whether the Secret must be defined

local_object_reference ServiceTemplateSpecContainerEnvFromConfigMapRefLocalObjectReference

The Secret to select from. Structure is documented below.

optional bool

Specify whether the Secret must be defined

localObjectReference Property Map

The Secret to select from. Structure is documented below.

optional Boolean

Specify whether the Secret must be defined

ServiceTemplateSpecContainerEnvFromConfigMapRefLocalObjectReference

Name string

Volume's name.

Name string

Volume's name.

name String

Volume's name.

name string

Volume's name.

name str

Volume's name.

name String

Volume's name.

ServiceTemplateSpecContainerEnvFromSecretRef

LocalObjectReference ServiceTemplateSpecContainerEnvFromSecretRefLocalObjectReference

The Secret to select from. Structure is documented below.

Optional bool

Specify whether the Secret must be defined

LocalObjectReference ServiceTemplateSpecContainerEnvFromSecretRefLocalObjectReference

The Secret to select from. Structure is documented below.

Optional bool

Specify whether the Secret must be defined

localObjectReference ServiceTemplateSpecContainerEnvFromSecretRefLocalObjectReference

The Secret to select from. Structure is documented below.

optional Boolean

Specify whether the Secret must be defined

localObjectReference ServiceTemplateSpecContainerEnvFromSecretRefLocalObjectReference

The Secret to select from. Structure is documented below.

optional boolean

Specify whether the Secret must be defined

local_object_reference ServiceTemplateSpecContainerEnvFromSecretRefLocalObjectReference

The Secret to select from. Structure is documented below.

optional bool

Specify whether the Secret must be defined

localObjectReference Property Map

The Secret to select from. Structure is documented below.

optional Boolean

Specify whether the Secret must be defined

ServiceTemplateSpecContainerEnvFromSecretRefLocalObjectReference

Name string

Volume's name.

Name string

Volume's name.

name String

Volume's name.

name string

Volume's name.

name str

Volume's name.

name String

Volume's name.

ServiceTemplateSpecContainerEnvValueFrom

SecretKeyRef ServiceTemplateSpecContainerEnvValueFromSecretKeyRef

Selects a key (version) of a secret in Secret Manager. Structure is documented below.

SecretKeyRef ServiceTemplateSpecContainerEnvValueFromSecretKeyRef

Selects a key (version) of a secret in Secret Manager. Structure is documented below.

secretKeyRef ServiceTemplateSpecContainerEnvValueFromSecretKeyRef

Selects a key (version) of a secret in Secret Manager. Structure is documented below.

secretKeyRef ServiceTemplateSpecContainerEnvValueFromSecretKeyRef

Selects a key (version) of a secret in Secret Manager. Structure is documented below.

secret_key_ref ServiceTemplateSpecContainerEnvValueFromSecretKeyRef

Selects a key (version) of a secret in Secret Manager. Structure is documented below.

secretKeyRef Property Map

Selects a key (version) of a secret in Secret Manager. Structure is documented below.

ServiceTemplateSpecContainerEnvValueFromSecretKeyRef

Key string

The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.

Name string

Volume's name.

Key string

The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.

Name string

Volume's name.

key String

The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.

name String

Volume's name.

key string

The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.

name string

Volume's name.

key str

The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.

name str

Volume's name.

key String

The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.

name String

Volume's name.

ServiceTemplateSpecContainerLivenessProbe

FailureThreshold int

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

Grpc ServiceTemplateSpecContainerLivenessProbeGrpc

GRPC specifies an action involving a GRPC port. Structure is documented below.

HttpGet ServiceTemplateSpecContainerLivenessProbeHttpGet

HttpGet specifies the http request to perform. Structure is documented below.

InitialDelaySeconds int

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.

PeriodSeconds int

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.

TimeoutSeconds 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.

FailureThreshold int

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

Grpc ServiceTemplateSpecContainerLivenessProbeGrpc

GRPC specifies an action involving a GRPC port. Structure is documented below.

HttpGet ServiceTemplateSpecContainerLivenessProbeHttpGet

HttpGet specifies the http request to perform. Structure is documented below.

InitialDelaySeconds int

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.

PeriodSeconds int

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.

TimeoutSeconds 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.

failureThreshold Integer

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

grpc ServiceTemplateSpecContainerLivenessProbeGrpc

GRPC specifies an action involving a GRPC port. Structure is documented below.

httpGet ServiceTemplateSpecContainerLivenessProbeHttpGet

HttpGet specifies the http request to perform. Structure is documented below.

initialDelaySeconds Integer

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.

periodSeconds Integer

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.

timeoutSeconds 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.

failureThreshold number

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

grpc ServiceTemplateSpecContainerLivenessProbeGrpc

GRPC specifies an action involving a GRPC port. Structure is documented below.

httpGet ServiceTemplateSpecContainerLivenessProbeHttpGet

HttpGet specifies the http request to perform. Structure is documented below.

initialDelaySeconds number

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.

periodSeconds number

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.

timeoutSeconds 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 ServiceTemplateSpecContainerLivenessProbeGrpc

GRPC specifies an action involving a GRPC port. Structure is documented below.

http_get ServiceTemplateSpecContainerLivenessProbeHttpGet

HttpGet specifies the http request to perform. Structure is documented below.

initial_delay_seconds int

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.

failureThreshold 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.

httpGet Property Map

HttpGet specifies the http request to perform. Structure is documented below.

initialDelaySeconds Number

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.

periodSeconds Number

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.

timeoutSeconds 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

Port int

Port number to access on the container. Number must be in the range 1 to 65535.

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.

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.

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.

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.

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.

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

HttpHeaders List<ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeader>

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

HttpHeaders []ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeader

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

httpHeaders List<ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeader>

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

httpHeaders ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeader[]

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

http_headers Sequence[ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeader]

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

httpHeaders List<Property Map>

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeader

Name string

Volume's name.

Value string

The header field value.

Name string

Volume's name.

Value string

The header field value.

name String

Volume's name.

value String

The header field value.

name string

Volume's name.

value string

The header field value.

name str

Volume's name.

value str

The header field value.

name String

Volume's name.

value String

The header field value.

ServiceTemplateSpecContainerPort

ContainerPort int

Port number the container listens on. This must be a valid port number, 0 < x < 65536.

Name string

Volume's name.

Protocol string

Protocol for port. Must be "TCP". Defaults to "TCP".

ContainerPort int

Port number the container listens on. This must be a valid port number, 0 < x < 65536.

Name string

Volume's name.

Protocol string

Protocol for port. Must be "TCP". Defaults to "TCP".

containerPort Integer

Port number the container listens on. This must be a valid port number, 0 < x < 65536.

name String

Volume's name.

protocol String

Protocol for port. Must be "TCP". Defaults to "TCP".

containerPort number

Port number the container listens on. This must be a valid port number, 0 < x < 65536.

name string

Volume's name.

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, 0 < x < 65536.

name str

Volume's name.

protocol str

Protocol for port. Must be "TCP". Defaults to "TCP".

containerPort Number

Port number the container listens on. This must be a valid port number, 0 < x < 65536.

name String

Volume's name.

protocol String

Protocol for port. Must be "TCP". Defaults to "TCP".

ServiceTemplateSpecContainerResources

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

FailureThreshold int

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

Grpc ServiceTemplateSpecContainerStartupProbeGrpc

GRPC specifies an action involving a GRPC port. Structure is documented below.

HttpGet ServiceTemplateSpecContainerStartupProbeHttpGet

HttpGet specifies the http request to perform. Structure is documented below.

InitialDelaySeconds int

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.

PeriodSeconds int

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.

TcpSocket ServiceTemplateSpecContainerStartupProbeTcpSocket

TcpSocket specifies an action involving a TCP port. Structure is documented below.

TimeoutSeconds 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.

FailureThreshold int

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

Grpc ServiceTemplateSpecContainerStartupProbeGrpc

GRPC specifies an action involving a GRPC port. Structure is documented below.

HttpGet ServiceTemplateSpecContainerStartupProbeHttpGet

HttpGet specifies the http request to perform. Structure is documented below.

InitialDelaySeconds int

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.

PeriodSeconds int

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.

TcpSocket ServiceTemplateSpecContainerStartupProbeTcpSocket

TcpSocket specifies an action involving a TCP port. Structure is documented below.

TimeoutSeconds 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.

failureThreshold Integer

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

grpc ServiceTemplateSpecContainerStartupProbeGrpc

GRPC specifies an action involving a GRPC port. Structure is documented below.

httpGet ServiceTemplateSpecContainerStartupProbeHttpGet

HttpGet specifies the http request to perform. Structure is documented below.

initialDelaySeconds Integer

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.

periodSeconds Integer

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.

tcpSocket ServiceTemplateSpecContainerStartupProbeTcpSocket

TcpSocket specifies an action involving a TCP port. Structure is documented below.

timeoutSeconds 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.

failureThreshold number

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

grpc ServiceTemplateSpecContainerStartupProbeGrpc

GRPC specifies an action involving a GRPC port. Structure is documented below.

httpGet ServiceTemplateSpecContainerStartupProbeHttpGet

HttpGet specifies the http request to perform. Structure is documented below.

initialDelaySeconds number

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.

periodSeconds number

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.

tcpSocket ServiceTemplateSpecContainerStartupProbeTcpSocket

TcpSocket specifies an action involving a TCP port. Structure is documented below.

timeoutSeconds 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 ServiceTemplateSpecContainerStartupProbeGrpc

GRPC specifies an action involving a GRPC port. Structure is documented below.

http_get ServiceTemplateSpecContainerStartupProbeHttpGet

HttpGet specifies the http request to perform. Structure is documented below.

initial_delay_seconds int

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.

tcp_socket ServiceTemplateSpecContainerStartupProbeTcpSocket

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 period_seconds.

failureThreshold 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.

httpGet Property Map

HttpGet specifies the http request to perform. Structure is documented below.

initialDelaySeconds Number

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.

periodSeconds Number

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 3600.

tcpSocket Property Map

TcpSocket specifies an action involving a TCP port. Structure is documented below.

timeoutSeconds 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.

ServiceTemplateSpecContainerStartupProbeGrpc

Port int

Port number to access on the container. Number must be in the range 1 to 65535.

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.

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.

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.

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.

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.

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

HttpHeaders List<ServiceTemplateSpecContainerStartupProbeHttpGetHttpHeader>

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

HttpHeaders []ServiceTemplateSpecContainerStartupProbeHttpGetHttpHeader

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

httpHeaders List<ServiceTemplateSpecContainerStartupProbeHttpGetHttpHeader>

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

httpHeaders ServiceTemplateSpecContainerStartupProbeHttpGetHttpHeader[]

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

http_headers Sequence[ServiceTemplateSpecContainerStartupProbeHttpGetHttpHeader]

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

httpHeaders List<Property Map>

Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.

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 '..'.

ServiceTemplateSpecContainerStartupProbeHttpGetHttpHeader

Name string

Volume's name.

Value string

The header field value.

Name string

Volume's name.

Value string

The header field value.

name String

Volume's name.

value String

The header field value.

name string

Volume's name.

value string

The header field value.

name str

Volume's name.

value str

The header field value.

name String

Volume's name.

value String

The header field value.

ServiceTemplateSpecContainerStartupProbeTcpSocket

Port int

Port number to access on the container. Number must be in the range 1 to 65535.

Port int

Port number to access on the container. Number must be in the range 1 to 65535.

port Integer

Port number to access on the container. Number must be in the range 1 to 65535.

port number

Port number to access on the container. Number must be in the range 1 to 65535.

port int

Port number to access on the container. Number must be in the range 1 to 65535.

port Number

Port number to access on the container. Number must be in the range 1 to 65535.

ServiceTemplateSpecContainerVolumeMount

MountPath string

Path within the container at which the volume should be mounted. Must not contain ':'.

Name string

Volume's name.

MountPath string

Path within the container at which the volume should be mounted. Must not contain ':'.

Name string

Volume's name.

mountPath String

Path within the container at which the volume should be mounted. Must not contain ':'.

name String

Volume's name.

mountPath string

Path within the container at which the volume should be mounted. Must not contain ':'.

name string

Volume's name.

mount_path str

Path within the container at which the volume should be mounted. Must not contain ':'.

name str

Volume's name.

mountPath String

Path within the container at which the volume should be mounted. Must not contain ':'.

name String

Volume's name.

ServiceTemplateSpecVolume

Name string

Volume's name.

Secret ServiceTemplateSpecVolumeSecret

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.

Secret ServiceTemplateSpecVolumeSecret

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.

secret ServiceTemplateSpecVolumeSecret

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.

secret ServiceTemplateSpecVolumeSecret

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.

secret ServiceTemplateSpecVolumeSecret

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.

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.

ServiceTemplateSpecVolumeSecret

SecretName 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.

DefaultMode 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<ServiceTemplateSpecVolumeSecretItem>

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.

SecretName 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.

DefaultMode 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 []ServiceTemplateSpecVolumeSecretItem

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.

secretName 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.

defaultMode 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<ServiceTemplateSpecVolumeSecretItem>

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.

secretName 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.

defaultMode 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 ServiceTemplateSpecVolumeSecretItem[]

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[ServiceTemplateSpecVolumeSecretItem]

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.

secretName 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.

defaultMode 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

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

Percent int

Percent specifies percent of the traffic to this Revision or Configuration.

LatestRevision 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.

RevisionName 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

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.

LatestRevision 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.

RevisionName 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

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.

latestRevision 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.

revisionName 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

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.

latestRevision 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.

revisionName 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

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

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.

latestRevision 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.

revisionName 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

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
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.