1
0
mirror of https://github.com/google/nomulus synced 2026-05-13 11:21:46 +00:00

Add folder and files for skeleton cloud deploy delivery pipeline. (#3029)

This commit is contained in:
Juan Celhay
2026-04-29 15:56:34 -04:00
committed by GitHub
parent fa15a66d9a
commit 859f356466
4 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# Cloud Deploy Configuration
This directory contains the Google Cloud Deploy configuration files for the Nomulus project.
## Files
### `delivery-pipeline.yaml`
Defines the `DeliveryPipeline` resource named `deploy-nomulus`. It sets up the serial pipeline for rolling out changes to different targets.
### Target Configurations (e.g., `crash-target.yaml`)
Files matching this format define the `Target` resources for Cloud Deploy. They specify the GKE cluster and other environment-specific settings for deployment.
### `skaffold.yaml`
Defines the Skaffold configuration used by Cloud Deploy to render and deploy the application manifests.
## Usage
You can apply or modify these configurations in Google Cloud by using the `gcloud` CLI. For example:
```bash
gcloud deploy apply --file=<config-file>.yaml --project=<project-id> --region=<region>
```

View File

@@ -0,0 +1,21 @@
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: crash
requireApproval: true
executionConfigs:
- usages:
- RENDER
- DEPLOY
- ANALYSIS
- POSTDEPLOY
executionTimeout: 3600s
defaultPool:
# Placeholder: Replace with artifact bucket name.
artifactStorage: gs://_artifact_bucket_
# Placeholder: Replace with project number.
serviceAccount: _project_number_-compute@developer.gserviceaccount.com
gke:
# Placeholder: Replace with project ID, location, and cluster name.
cluster: projects/_project_id_/locations/_location_/clusters/_cluster_name_

View File

@@ -0,0 +1,11 @@
apiVersion: deploy.cloud.google.com/v1
kind: DeliveryPipeline
metadata:
name: deploy-nomulus
description: deploy-nomulus is a Cloud native replacement for Spinnaker that enables
gradual rollouts and SLA-based canary analysis for Nomulus.
serialPipeline:
stages:
- targetId: crash
profiles:
- crash

View File

@@ -0,0 +1,15 @@
# skaffold.yaml
apiVersion: skaffold/v4beta7
kind: Config
metadata:
name: nomulus-skaffold
profiles:
- name: crash
manifests:
rawYaml:
- ../jetty/kubernetes/nomulus-crash-backend.yaml
- ../jetty/kubernetes/nomulus-crash-console.yaml
- ../jetty/kubernetes/nomulus-crash-frontend.yaml
- ../jetty/kubernetes/nomulus-crash-pubapi.yaml
deploy:
kubectl: { }