Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
simplify env header
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Jan 11, 2024
1 parent 5be4584 commit 03c64f8
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 17 deletions.
4 changes: 2 additions & 2 deletions content/departments/engineering/managed-services/cloud-ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ If you need assistance with MSP infrastructure, reach out to the [Core Services]
| Service ID | [`cloud-ops`](https://github.com/sourcegraph/managed-services/blob/main/services/cloud-ops/service.yaml) |
| Owners | **cloud** |
| Service kind | Cloud Run service |
| Environments | [prod environment](#prod-environment) |
| Environments | [prod](#prod) |
| Docker image | `us-central1-docker.pkg.dev/control-plane-5e9ee072/docker/apiserver` |
| Source code | [`github.com/sourcegraph/controller` - `cmd/apiserver`](https://github.com/sourcegraph/controller/tree/HEAD/cmd/apiserver) |

## Environments

### prod environment
### prod

| PROPERTY | DETAILS |
|----------------|----------------------------------------------------------------------------------------------------|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ If you need assistance with MSP infrastructure, reach out to the [Core Services]
| Service ID | [`cody-analytics`](https://github.com/sourcegraph/managed-services/blob/main/services/cody-analytics/service.yaml) |
| Owners | **cody-strat** |
| Service kind | Cloud Run service |
| Environments | [dev environment](#dev-environment) |
| Environments | [dev](#dev) |
| Docker image | `us-central1-docker.pkg.dev/sourcegraph-dev/cody-analytics/service` |
| Source code | [`github.com/sourcegraph/cody-analytics` - `.`](https://github.com/sourcegraph/cody-analytics/tree/HEAD/.) |

## Environments

### dev environment
### dev

| PROPERTY | DETAILS |
|----------------|--------------------------------------------------------------------------------------------------------|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ If you need assistance with MSP infrastructure, reach out to the [Core Services]
| Service ID | [`gatekeeper`](https://github.com/sourcegraph/managed-services/blob/main/services/gatekeeper/service.yaml) |
| Owners | **cody-services** |
| Service kind | Cloud Run job |
| Environments | [prod environment](#prod-environment) |
| Environments | [prod](#prod) |
| Docker image | `us.gcr.io/sourcegraph-dev/abuse-ban-bot` |
| Source code | [`github.com/sourcegraph/abuse-ban-bot` - `.`](https://github.com/sourcegraph/abuse-ban-bot/tree/HEAD/.) |

## Environments

### prod environment
### prod

| PROPERTY | DETAILS |
|------------|-----------------------------------------------------------------------------------------------------|
Expand Down
60 changes: 58 additions & 2 deletions content/departments/engineering/managed-services/msp-testbed.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ If you need assistance with MSP infrastructure, reach out to the [Core Services]
| Service ID | [`msp-testbed`](https://github.com/sourcegraph/managed-services/blob/main/services/msp-testbed/service.yaml) |
| Owners | **core-services** |
| Service kind | Cloud Run service |
| Environments | [test environment](#test-environment) |
| Environments | [test](#test), [robert](#robert) |
| Docker image | `us.gcr.io/sourcegraph-dev/msp-example` |
| Source code | [`github.com/sourcegraph/sourcegraph` - `cmd/msp-example`](https://github.com/sourcegraph/sourcegraph/tree/HEAD/cmd/msp-example) |

## Environments

### test environment
### test

| PROPERTY | DETAILS |
|------------|-----------------------------------------------------------------------------------------------------------------------------------|
Expand Down Expand Up @@ -77,3 +77,59 @@ sg msp pg connect -write-access msp-testbed test
| Dataset Project | `msp-testbed-test-77589aae45d0` |
| Dataset ID | `msp_testbed` |
| Tables | [`example`](https://github.com/sourcegraph/managed-services/blob/main/services/msp-testbed/example.bigquerytable.json) |

### robert

| PROPERTY | DETAILS |
|------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
| Project ID | [`msp-testbed-robert-7be9`](https://console.cloud.google.com/run?project=msp-testbed-robert-7be9) |
| Category | **test** |
| Resources | [robert Redis](#robert-redis), [robert PostgreSQL instance](#robert-postgresql-instance), [robert BigQuery dataset](#robert-bigquery-dataset) |
| Alerts | [GCP monitoring](https://console.cloud.google.com/monitoring/alerting?project=msp-testbed-robert-7be9) |
| Domain | [msp-testbed.sgdev.org](https://msp-testbed.sgdev.org) |

MSP infrastructure access needs to be requested using Entitle for time-bound privileges.
Test environments have less stringent requirements.

| ACCESS | ENTITLE REQUEST TEMPLATE |
|--------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| GCP project read access | [Entitle request for the 'Engineering Projects' folder](https://app.entitle.io/request?data=eyJkdXJhdGlvbiI6IjIxNjAwIiwianVzdGlmaWNhdGlvbiI6IkVOVEVSIEpVU1RJRklDQVRJT04gSEVSRSIsInJvbGVJZHMiOlt7ImlkIjoiZGY3NWJkNWMtYmUxOC00MjhmLWEzNjYtYzlhYTU1MGIwODIzIiwidGhyb3VnaCI6ImRmNzViZDVjLWJlMTgtNDI4Zi1hMzY2LWM5YWE1NTBiMDgyMyIsInR5cGUiOiJyb2xlIn1dfQ%3D%3D) |
| GCP project write access | [Entitle request for the 'Engineering Projects' folder](https://app.entitle.io/request?data=eyJkdXJhdGlvbiI6IjIxNjAwIiwianVzdGlmaWNhdGlvbiI6IkVOVEVSIEpVU1RJRklDQVRJT04gSEVSRSIsInJvbGVJZHMiOlt7ImlkIjoiYzJkMTUwOGEtMGQ0ZS00MjA1LWFiZWUtOGY1ODg1ZGY3ZDE4IiwidGhyb3VnaCI6ImMyZDE1MDhhLTBkNGUtNDIwNS1hYmVlLThmNTg4NWRmN2QxOCIsInR5cGUiOiJyb2xlIn1dfQ%3D%3D) |

#### robert Cloud Run

| PROPERTY | DETAILS |
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Console | [Cloud Run service](https://console.cloud.google.com/run?project=msp-testbed-robert-7be9) |
| Logs | [GCP logging](https://console.cloud.google.com/logs/query;query=resource.type%20%3D%20%22cloud_run_revision%22%20-logName%3D~%22logs%2Frun.googleapis.com%252Frequests%22;summaryFields=jsonPayload%252FInstrumentationScope,jsonPayload%252FBody,jsonPayload%252FAttributes%252Ferror:false:32:end?project=msp-testbed-robert-7be9) |

#### robert Redis

| PROPERTY | DETAILS |
|----------|-----------------------------------------------------------------------------------------------------------------------------|
| Console | [Memorystore Redis instances](https://console.cloud.google.com/memorystore/redis/instances?project=msp-testbed-robert-7be9) |

#### robert PostgreSQL instance

| PROPERTY | DETAILS |
|-----------|-------------------------------------------------------------------------------------------------------|
| Console | [Cloud SQL instances](https://console.cloud.google.com/sql/instances?project=msp-testbed-robert-7be9) |
| Databases | `primary` |

To connect to the PostgreSQL instance in this environment, use `sg msp` in the [`sourcegraph/managed-services`](https://github.com/sourcegraph/managed-services) repository:

```bash
# For read-only access
sg msp pg connect msp-testbed robert

# For write access - use with caution!
sg msp pg connect -write-access msp-testbed robert
```

#### robert BigQuery dataset

| PROPERTY | DETAILS |
|-----------------|------------------------------------------------------------------------------------------------------------------------|
| Dataset Project | `msp-testbed-robert-7be9` |
| Dataset ID | `msp_testbed` |
| Tables | [`example`](https://github.com/sourcegraph/managed-services/blob/main/services/msp-testbed/example.bigquerytable.json) |
4 changes: 2 additions & 2 deletions content/departments/engineering/managed-services/pings.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ If you need assistance with MSP infrastructure, reach out to the [Core Services]
| Service ID | [`pings`](https://github.com/sourcegraph/managed-services/blob/main/services/pings/service.yaml) |
| Owners | **core-services** |
| Service kind | Cloud Run service |
| Environments | [prod environment](#prod-environment) |
| Environments | [prod](#prod) |
| Docker image | `index.docker.io/sourcegraph/pings` |
| Source code | [`github.com/sourcegraph/sourcegraph` - `cmd/pings`](https://github.com/sourcegraph/sourcegraph/tree/HEAD/cmd/pings) |

## Environments

### prod environment
### prod

| PROPERTY | DETAILS |
|------------|--------------------------------------------------------------------------------------------------------|
Expand Down
4 changes: 2 additions & 2 deletions content/departments/engineering/managed-services/sams.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ If you need assistance with MSP infrastructure, reach out to the [Core Services]
| Service ID | [`sams`](https://github.com/sourcegraph/managed-services/blob/main/services/sams/service.yaml) |
| Owners | **core-services** |
| Service kind | Cloud Run service |
| Environments | [dev environment](#dev-environment) |
| Environments | [dev](#dev) |
| Docker image | `us-central1-docker.pkg.dev/sourcegraph-dev/sams/accounts-server` |
| Source code | [`github.com/sourcegraph/accounts.sourcegraph.com` - `cmd/accounts-server`](https://github.com/sourcegraph/accounts.sourcegraph.com/tree/HEAD/cmd/accounts-server) |

## Environments

### dev environment
### dev

| PROPERTY | DETAILS |
|----------------|-----------------------------------------------------------------------------------------------------------------------------|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ If you need assistance with MSP infrastructure, reach out to the [Core Services]
| Service ID | [`support-integration`](https://github.com/sourcegraph/managed-services/blob/main/services/support-integration/service.yaml) |
| Owners | **Customer Support** |
| Service kind | Cloud Run service |
| Environments | [prod environment](#prod-environment) |
| Environments | [prod](#prod) |
| Docker image | `index.docker.io/sourcegraph/support-integration` |
| Source code | [`github.com/sourcegraph/support-integration` - `.`](https://github.com/sourcegraph/support-integration/tree/HEAD/.) |

## Environments

### prod environment
### prod

| PROPERTY | DETAILS |
|----------------|---------------------------------------------------------------------------------------------------------------|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ If you need assistance with MSP infrastructure, reach out to the [Core Services]
| Service ID | [`telemetry-gateway`](https://github.com/sourcegraph/managed-services/blob/main/services/telemetry-gateway/service.yaml) |
| Owners | **core-services** |
| Service kind | Cloud Run service |
| Environments | [dev environment](#dev-environment), [prod environment](#prod-environment) |
| Environments | [dev](#dev), [prod](#prod) |
| Docker image | `index.docker.io/sourcegraph/telemetry-gateway` |
| Source code | [`github.com/sourcegraph/sourcegraph` - `cmd/telemetry-gateway`](https://github.com/sourcegraph/sourcegraph/tree/HEAD/cmd/telemetry-gateway) |

## Environments

### dev environment
### dev

| PROPERTY | DETAILS |
|------------|-----------------------------------------------------------------------------------------------------------|
Expand All @@ -47,7 +47,7 @@ Test environments have less stringent requirements.
| Console | [Cloud Run service](https://console.cloud.google.com/run?project=telemetry-gateway-dev-0050) |
| Logs | [GCP logging](https://console.cloud.google.com/logs/query;query=resource.type%20%3D%20%22cloud_run_revision%22%20-logName%3D~%22logs%2Frun.googleapis.com%252Frequests%22;summaryFields=jsonPayload%252FInstrumentationScope,jsonPayload%252FBody,jsonPayload%252FAttributes%252Ferror:false:32:end?project=telemetry-gateway-dev-0050) |

### prod environment
### prod

| PROPERTY | DETAILS |
|------------|------------------------------------------------------------------------------------------------------------|
Expand Down

0 comments on commit 03c64f8

Please sign in to comment.