Cloud Run
Definition
Cloud Run is a fully managed compute platform by Google Cloud that automatically scales stateless containers. It abstracts away infrastructure management, allowing developers to deploy and run containerized applications in any language without worrying about server provisioning or scaling. Cloud Run supports both HTTP and event-driven applications, providing a seamless integration with other Google Cloud services.
Secure Settings Example
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: secure-cloud-run-service
spec:
template:
spec:
containers:
- image: gcr.io/my-project/my-image
ports:
- containerPort: 8080
containerConcurrency: 1
serviceAccountName: my-secure-service-account
timeoutSeconds: 300
ingress:
visibility: "internal"
Insecure Settings Example
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: insecure-cloud-run-service
spec:
template:
spec:
containers:
- image: gcr.io/my-project/my-image
ports:
- containerPort: 8080
containerConcurrency: 80
serviceAccountName: default
timeoutSeconds: 600
ingress:
visibility: "external"