-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'google:master' into master
- Loading branch information
Showing
65 changed files
with
2,343 additions
and
1,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
deployment/clouddeploy/gke-workers/environments/oss-vdb-test/debian-cve-convert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: debian-cve-convert | ||
spec: | ||
schedule: "0 */1 * * *" | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
activeDeadlineSeconds: 3600 | ||
template: | ||
spec: | ||
containers: | ||
- name: debian-cve-convert | ||
image: debian-cve-convert | ||
imagePullPolicy: Always | ||
env: | ||
- name: GOOGLE_CLOUD_PROJECT | ||
value: oss-vdb-test | ||
- name: OUTPUT_GCS_BUCKET | ||
value: osv-test-cve-osv-conversion | ||
securityContext: | ||
privileged: true | ||
resources: | ||
requests: | ||
cpu: 1 | ||
memory: "1G" | ||
limits: | ||
cpu: 1 | ||
memory: "2G" | ||
restartPolicy: OnFailure | ||
volumes: | ||
- name: "ssd" | ||
hostPath: | ||
path: "/mnt/disks/ssd0" |
1 change: 1 addition & 0 deletions
1
deployment/clouddeploy/gke-workers/environments/oss-vdb-test/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
resources: | ||
- ../../base | ||
- debian-cve-convert.yaml | ||
patches: | ||
- path: workers.yaml | ||
- path: scaler.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,21 @@ metadata: | |
description: OSV API pipeline | ||
serialPipeline: | ||
stages: | ||
- targetId: staging-api | ||
- targetId: staging-api-multi | ||
profiles: [ staging ] | ||
- targetId: production-api | ||
- targetId: production-api-multi | ||
profiles: [ prod ] | ||
--- | ||
|
||
apiVersion: deploy.cloud.google.com/v1 | ||
kind: Target | ||
metadata: | ||
name: staging-api-multi | ||
description: multi-target oss-vdb-test API instances | ||
multiTarget: | ||
targetIds: [staging-api, staging-api-batch] | ||
--- | ||
|
||
apiVersion: deploy.cloud.google.com/v1 | ||
kind: Target | ||
metadata: | ||
|
@@ -25,6 +34,32 @@ executionConfigs: | |
serviceAccount: [email protected] | ||
--- | ||
|
||
apiVersion: deploy.cloud.google.com/v1 | ||
kind: Target | ||
metadata: | ||
name: staging-api-batch | ||
description: oss-vdb-test API batch query instance | ||
run: | ||
location: projects/oss-vdb-test/locations/us-central1 | ||
deployParameters: | ||
serviceName: "osv-grpc-backend-batch" | ||
containerConcurrency: "1" | ||
executionConfigs: | ||
- usages: | ||
- RENDER | ||
- DEPLOY | ||
serviceAccount: [email protected] | ||
--- | ||
|
||
apiVersion: deploy.cloud.google.com/v1 | ||
kind: Target | ||
metadata: | ||
name: production-api-multi | ||
description: multi-target oss-vdb API instances | ||
multiTarget: | ||
targetIds: [production-api, production-api-batch] | ||
--- | ||
|
||
apiVersion: deploy.cloud.google.com/v1 | ||
kind: Target | ||
metadata: | ||
|
@@ -37,3 +72,20 @@ executionConfigs: | |
- RENDER | ||
- DEPLOY | ||
serviceAccount: [email protected] | ||
--- | ||
|
||
apiVersion: deploy.cloud.google.com/v1 | ||
kind: Target | ||
metadata: | ||
name: production-api-batch | ||
description: oss-vdb API batch query instance | ||
run: | ||
location: projects/oss-vdb/locations/us-central1 | ||
deployParameters: | ||
serviceName: "osv-grpc-backend-batch" | ||
containerConcurrency: "1" | ||
executionConfigs: | ||
- usages: | ||
- RENDER | ||
- DEPLOY | ||
serviceAccount: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.