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:
22
release/clouddeploy/README.md
Normal file
22
release/clouddeploy/README.md
Normal 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>
|
||||
```
|
||||
21
release/clouddeploy/crash-target.yaml
Normal file
21
release/clouddeploy/crash-target.yaml
Normal 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_
|
||||
11
release/clouddeploy/delivery-pipeline.yaml
Normal file
11
release/clouddeploy/delivery-pipeline.yaml
Normal 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
|
||||
15
release/clouddeploy/skaffold.yaml
Normal file
15
release/clouddeploy/skaffold.yaml
Normal 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: { }
|
||||
Reference in New Issue
Block a user