cloud-run-controller

module
v0.0.0-...-945ce85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2019 License: Apache-2.0

README

cloud-run-controller

A controller to populate kubernetes service from GCP Cloud Run

Usage

Service creation
apiVersion: cloud-run-controller.barpilot.io/v1alpha1
kind: Service
metadata:
  name: example-service
  annotation:
    removeOnDelete: "true"
spec:
  project: myProject
  location: us-central1
  service:
    apiVersion: serving.knative.dev/v1alpha1
    kind: Service
    metadata:
      name: service-nginx
    spec:
      runLatest:
        configuration:
          revisionTemplate:
            spec:
              container:
                image: nginx
                resources:
                  limits:
                    memory: 512Mi
              timeoutSeconds: 300
              containerConcurrency: 80
k8s service sync
apiVersion: cloud-run-controller.barpilot.io/v1alpha1
kind: RunServices
metadata:
  name: example-runservices
spec:
  project: myProject

this will create (and maintain)

$ kubectl get svc
NAME                   TYPE           CLUSTER-IP      EXTERNAL-IP                             PORT(S)    AGE
[...]
myruninstance          ExternalName   <none>          myruninstance-tn4meegzeq-uc.a.run.app   <none>     5m32s
[...]

Status

ALPHA

Directories

Path Synopsis
cmd
pkg
apis/cloudruncontroller/v1alpha1
Package v1alpha1 contains API Schema definitions for the cloud-run-controller v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=cloud-run-controller.barpilot.io
Package v1alpha1 contains API Schema definitions for the cloud-run-controller v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=cloud-run-controller.barpilot.io
run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL