https://github.com/codota/devops-eval-cluster
https://github.com/codota/devops-eval-cluster
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codota/devops-eval-cluster
- Owner: codota
- Created: 2025-06-16T10:44:57.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-07-02T06:28:15.000Z (6 months ago)
- Last Synced: 2025-07-02T07:33:12.938Z (6 months ago)
- Language: HCL
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# devop-eval-cluster
A GKE cluster terraform definition, used to set up an evaluation for devops candidates.
It sets up a simple GKE cluster with a gateway, that can be used to expose public services.
It also defines a cloud sql postgres database, that can be used by these services.
## Setup
```
cd terraform/
terraform apply
```
This will take a few minutes to run.
After it is done:
```
export DB_URL=$(terraform output -raw database_url)
gcloud container clusters get-credentials devops-eval-cluster --project devops-eval-463110 --region us-central1
```
Then clone the [service repo](https://github.com/codota/devops-eval-service) and run
```
docker buildx build --platform linux/amd64 . -t us-central1-docker.pkg.dev/devops-eval-463110/docker-repository/tasks-service:1.0.5 --push
helm upgrade --install -n eval --create-namespace tasks helm/ --set "database.url=$DB_URL"
```
This should setup the service with a couple of issues that cause it to not work.
You will get an error if you run
```
curl devops-eval.tabnine.com/api/tasks
```