Loading deploy/crdb.sh +10 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,16 @@ export CRDB_DATABASE=${CRDB_DATABASE:-"tfs"} # Ref: https://www.cockroachlabs.com/docs/stable/recommended-production-settings.html export CRDB_DEPLOY_MODE=${CRDB_DEPLOY_MODE:-"single"} ### TESTING ### # If not already set, set the node's requested, and the limit, for CPU resources export CRDB_DEPLOY_NODE_CPUR=${CRDB_DEPLOY_NODE_CPUR:-"250m"} export CRDB_DEPLOY_NODE_CPUL=${CRDB_DEPLOY_NODE_CPUL:-"1"} # If not already set, set the node's requested, and the limit, for memory resources export CRDB_DEPLOY_NODE_MEMR=${CRDB_DEPLOY_NODE_MEMR:-"1Gi"} export CRDB_DEPLOY_NODE_MEMR=${CRDB_DEPLOY_NODE_MEML:-"2Gi"} ### TESTING ### # If not already set, disable flag for dropping database if exists. # WARNING: ACTIVATING THIS FLAG IMPLIES LOOSING THE DATABASE INFORMATION! # If CRDB_DROP_DATABASE_IF_EXISTS is "YES", the database pointed by variable CRDB_DATABASE will be dropped while Loading manifests/cockroachdb/cluster.yaml +5 −5 Original line number Diff line number Diff line Loading @@ -31,13 +31,13 @@ spec: storage: "60Gi" volumeMode: Filesystem resources: requests: requests: # TESTING # This is intentionally low to make it work on local k3d clusters. cpu: 4 memory: 4Gi cpu: 4 # "%CRDB_DEPLOY_NODE_CPUR% memory: 4Gi # %CRDB_DEPLOY_NODE_MEMR% limits: cpu: 8 memory: 8Gi cpu: 8 # "%CRDB_DEPLOY_NODE_CPUL%" memory: 8Gi # %CRDB_DEPLOY_NODE_MEMl% tlsEnabled: true # You can set either a version of the db or a specific image name # cockroachDBVersion: v22.2.8 Loading manifests/cockroachdb/single-node.yaml +5 −5 Original line number Diff line number Diff line Loading @@ -76,10 +76,10 @@ spec: value: "%CRDB_USERNAME%" - name: COCKROACH_PASSWORD value: "%CRDB_PASSWORD%" resources: resources: # TESTING requests: cpu: "250m" memory: 1Gi cpu: "250m" # "%CRDB_DEPLOY_NODE_CPUR%" memory: 1Gi # %CRDB_DEPLOY_NODE_MEMR% limits: cpu: "1" memory: 2Gi cpu: "1" # "%CRDB_DEPLOY_NODE_CPUL%" memory: 2Gi # %CRDB_DEPLOY_NODE_MEMl% Loading
deploy/crdb.sh +10 −0 Original line number Diff line number Diff line Loading @@ -53,6 +53,16 @@ export CRDB_DATABASE=${CRDB_DATABASE:-"tfs"} # Ref: https://www.cockroachlabs.com/docs/stable/recommended-production-settings.html export CRDB_DEPLOY_MODE=${CRDB_DEPLOY_MODE:-"single"} ### TESTING ### # If not already set, set the node's requested, and the limit, for CPU resources export CRDB_DEPLOY_NODE_CPUR=${CRDB_DEPLOY_NODE_CPUR:-"250m"} export CRDB_DEPLOY_NODE_CPUL=${CRDB_DEPLOY_NODE_CPUL:-"1"} # If not already set, set the node's requested, and the limit, for memory resources export CRDB_DEPLOY_NODE_MEMR=${CRDB_DEPLOY_NODE_MEMR:-"1Gi"} export CRDB_DEPLOY_NODE_MEMR=${CRDB_DEPLOY_NODE_MEML:-"2Gi"} ### TESTING ### # If not already set, disable flag for dropping database if exists. # WARNING: ACTIVATING THIS FLAG IMPLIES LOOSING THE DATABASE INFORMATION! # If CRDB_DROP_DATABASE_IF_EXISTS is "YES", the database pointed by variable CRDB_DATABASE will be dropped while Loading
manifests/cockroachdb/cluster.yaml +5 −5 Original line number Diff line number Diff line Loading @@ -31,13 +31,13 @@ spec: storage: "60Gi" volumeMode: Filesystem resources: requests: requests: # TESTING # This is intentionally low to make it work on local k3d clusters. cpu: 4 memory: 4Gi cpu: 4 # "%CRDB_DEPLOY_NODE_CPUR% memory: 4Gi # %CRDB_DEPLOY_NODE_MEMR% limits: cpu: 8 memory: 8Gi cpu: 8 # "%CRDB_DEPLOY_NODE_CPUL%" memory: 8Gi # %CRDB_DEPLOY_NODE_MEMl% tlsEnabled: true # You can set either a version of the db or a specific image name # cockroachDBVersion: v22.2.8 Loading
manifests/cockroachdb/single-node.yaml +5 −5 Original line number Diff line number Diff line Loading @@ -76,10 +76,10 @@ spec: value: "%CRDB_USERNAME%" - name: COCKROACH_PASSWORD value: "%CRDB_PASSWORD%" resources: resources: # TESTING requests: cpu: "250m" memory: 1Gi cpu: "250m" # "%CRDB_DEPLOY_NODE_CPUR%" memory: 1Gi # %CRDB_DEPLOY_NODE_MEMR% limits: cpu: "1" memory: 2Gi cpu: "1" # "%CRDB_DEPLOY_NODE_CPUL%" memory: 2Gi # %CRDB_DEPLOY_NODE_MEMl%