{"id":19523879,"url":"https://github.com/eitansuez/minitsb-rake","last_synced_at":"2025-04-26T09:32:49.444Z","repository":{"id":177664861,"uuid":"659314786","full_name":"eitansuez/minitsb-rake","owner":"eitansuez","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-24T20:03:17.000Z","size":67,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T10:51:10.474Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eitansuez.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-27T15:08:39.000Z","updated_at":"2023-08-14T21:49:06.000Z","dependencies_parsed_at":"2023-10-24T20:40:06.220Z","dependency_job_id":null,"html_url":"https://github.com/eitansuez/minitsb-rake","commit_stats":null,"previous_names":["eitansuez/minitsb-rake"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fminitsb-rake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fminitsb-rake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fminitsb-rake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fminitsb-rake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eitansuez","download_url":"https://codeload.github.com/eitansuez/minitsb-rake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250967782,"owners_count":21515659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T00:45:03.905Z","updated_at":"2025-04-26T09:32:49.045Z","avatar_url":"https://github.com/eitansuez.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Readme\n\nThis repository is derived from Bart Van Bos' excellent [tsb-single-vm](https://github.com/tetratecx/tsb-single-vm).\n\nThe idea is to leverage [rake](https://ruby.github.io/rake/) for provisioning TSB.\n\nFor learning Rake, I recommend Jim Weirich's two presentations:\n\n1. [Basic Rake](https://youtu.be/AFPWDzHWjEY)\n1. [Power Rake](https://youtu.be/KaEqZtulOus)\n\n## Basic recipe\n\n1. Provision the VM.  See instructions in the terraform subdirectory's [readme file](terraform/readme.md).\n\n1. Ssh onto the VM\n\n    ```shell\n    gcloud compute ssh ubuntu@tsb-vm\n    ```\n\n1. Before proceeding, check on the status of `cloud-init` to make sure the VM setup is complete:\n\n     ```shell\n     cloud-init status\n     ```\n\n1. On the VM, copy `config.yaml.template` to a file name `config.yaml` and edit it as follows:\n\n    a. Under `tsb_repo`, enter your credentials.\n\n    b. Select a scenario from the 'scenarios/' subdirectory.  Alternatively [build your own scenario](#scenario-convention).\n\n1. Install tools kubectl, k9s, k3d, istioctl, tctl, vcluster, and step cli:\n\n    ```shell\n    ./install-tools.sh\n    ```\n\n1. Install TSB:\n\n    ```shell\n    rake\n    ```\n\n## Scenario convention\n\nUnder the `scenarios` directory, create a new directory named after your new scenario.\n\nThe contents of your scenario directory must include three files:\n\n1. `topology.yaml`: a list of `clusters`.  For each cluster, at the very least supply a name.  Fields `region` and `zone` are optional, and are useful for specifying locality.  Designate the management plane cluster with `is_mp: true`.  Workload clusters are onboarded by default.  Can optionally specify not to onboard a workload cluster with `onboard_cluster: false`.  See existing scenarios for an example of a topology.\n\n1. `deploy.sh`: a script that applies Kubernetes and TSB resources to build a scenario (deploy an application, configure ingress, etc..).  This script is often accompanied with Kubernetes and TSB yaml files that are applied by the script.  See existing scenarios for an example.\n\n1. `info.sh`: a script that outputs any information you wish the user to have including sample commands to exercise or generate a load against a deployed application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feitansuez%2Fminitsb-rake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feitansuez%2Fminitsb-rake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feitansuez%2Fminitsb-rake/lists"}