Skip to content

AN-246 Create prod pools with Batch API enabled #388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion local-dev/render-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e

VAULT_TOKEN=${1:-$(cat $HOME/.vault-token)}
DSDE_TOOLBOX_DOCKER_IMAGE=broadinstitute/dsde-toolbox:dev
VAULT_SERVICE_ACCOUNT_PATH=secret/dsde/terra/kernel/integration/toolsalpha/buffer/app-sa
VAULT_SERVICE_ACCOUNT_PATH=secret/dsde/terra/kernel/integration/buffertest/buffer/app-sa
VAULT_JANITOR_CLIENT_SERVICE_ACCOUNT_PATH=secret/dsde/terra/kernel/integration/tools/crl_janitor/client-sa
SERVICE_ACCOUNT_OUTPUT_FILE_PATH="$(dirname $0)"/../src/test/resources/rendered/sa-account.json
JANITOR_CLIENT_SERVICE_ACCOUNT_OUTPUT_FILE_PATH="$(dirname $0)"/../src/test/resources/rendered/janitor-client-sa-account.json
Expand Down
2 changes: 1 addition & 1 deletion local-dev/run_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export BUFFER_CRL_JANITOR_CLIENT_CREDENTIAL_FILE_PATH="$(dirname $0)"/../src/tes
export BUFFER_CRL_JANITOR_TRACK_RESOURCE_PROJECT_ID=terra-kernel-k8s
export BUFFER_CRL_JANITOR_TRACK_RESOURCE_TOPIC_ID=crljanitor-tools-pubsub-topic
export BUFFER_CRL_TEST_RESOURCE_TIME_TO_LIVE=1h
export BUFFER_POOL_CONFIG_PATH=config/toolsalpha
export BUFFER_POOL_CONFIG_PATH=config/buffertest
export SPRING_PROFILES_INCLUDE=human-readable-logging
export TERRA_COMMON_STAIRWAY_FORCE_CLEAN_START=true
export TERRA_COMMON_TRACING_STACKDRIVER_EXPORT_ENABLED=false
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/config/prod/pool_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ poolConfigs:
- poolId: "cwb_ws_prod_v7"
size: 3000
resourceConfigName: "cwb_ws_prod_v7"
- poolId: "cwb_ws_prod_v8"
size: 3000
resourceConfigName: "cwb_ws_prod_v8"
- poolId: "datarepo_v1"
size: 1000
resourceConfigName: "datarepo_v1"
Expand All @@ -13,3 +16,6 @@ poolConfigs:
- poolId: "vpc_sc_v11"
size: 1000
resourceConfigName: "vpc_sc_v11"
- poolId: "vpc_sc_v12"
size: 1000
resourceConfigName: "vpc_sc_v12"
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Community Workbench buffered workspace template
---
configName: "cwb_ws_prod_v8"
gcpProjectConfig:
projectIdSchema:
prefix: "terra"
scheme: "RANDOM_CHAR"
# firecloud.org/prod/CommunityWorkbench
parentFolderId: "710468670182"
billingAccount: "0106B0-41CAA9-427C96"
enabledApis:
- "bigquery-json.googleapis.com"
- "batch.googleapis.com"
- "compute.googleapis.com"
- "container.googleapis.com"
- "containerregistry.googleapis.com"
- "cloudbilling.googleapis.com"
- "clouderrorreporting.googleapis.com"
- "cloudkms.googleapis.com"
- "cloudtrace.googleapis.com"
- "dataflow.googleapis.com"
- "dataproc.googleapis.com"
- "dns.googleapis.com"
- "lifesciences.googleapis.com"
- "logging.googleapis.com"
- "monitoring.googleapis.com"
- "storage-api.googleapis.com"
- "storage-component.googleapis.com"
network:
enableNetworkMonitoring: "false"
enablePrivateGoogleAccess: "true"
kubernetesEngine:
createGkeDefaultServiceAccount: "true"
42 changes: 42 additions & 0 deletions src/main/resources/config/prod/resource-config/vpc_sc_v12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Projects with VPC-SC configuration
---
configName: "vpc_sc_v12"
gcpProjectConfig:
projectIdSchema:
prefix: "terra-vpc-sc"
scheme: "RANDOM_CHAR"
# firecloud.org/prod/for_vpc_sc_unclaimed
parentFolderId: "160283235721"
billingAccount: "0106B0-41CAA9-427C96"
enabledApis:
- "bigquery-json.googleapis.com"
- "batch.googleapis.com"
- "compute.googleapis.com"
- "container.googleapis.com"
- "cloudbilling.googleapis.com"
- "clouderrorreporting.googleapis.com"
- "cloudkms.googleapis.com"
- "cloudtrace.googleapis.com"
- "containerregistry.googleapis.com"
- "dataflow.googleapis.com"
- "dataproc.googleapis.com"
- "dns.googleapis.com"
- "lifesciences.googleapis.com"
- "logging.googleapis.com"
- "monitoring.googleapis.com"
- "serviceusage.googleapis.com"
- "storage-api.googleapis.com"
- "storage-component.googleapis.com"
network:
enableNetworkMonitoring: "true"
enablePrivateGoogleAccess: "true"
enableCloudRegistryPrivateGoogleAccess: "true"
enableArtifactRegistryPrivateGoogleAccess: "true"
blockBatchInternetAccess: "true"
kubernetesEngine:
createGkeDefaultServiceAccount: "true"
serviceUsage:
bigQuery:
overrideBigQueryDailyUsageQuota: true
bigQueryDailyUsageQuotaOverrideValueMebibytes: 38146972 # 40 TB
securityGroup: "high"
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class PoolSchemaTest {
/** List of pool config folders for all environments, e.g. prod, staging, dev. */
private static final List<String> POOL_CONFIG_FOLDERS =
ImmutableList.of(
"alpha/", "buffertest/", "dev/", "prod/", "perf/", "staging/", "tools/", "toolsalpha/");
"alpha/", "buffertest/", "dev/", "prod/", "perf/", "staging/", "tools/");

@Test
public void testConfigValid() {
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ buffer:
janitor-track-resource-project-id: terra-kernel-k8s
janitor-track-resource-topic-id: crljanitor-tools-pubsub-topic
pool:
config-path: config/toolsalpha
config-path: config/buffertest
Loading