{"id":23428926,"url":"https://github.com/zackbradys/rgs-demo-app","last_synced_at":"2025-06-15T07:04:41.909Z","repository":{"id":200588012,"uuid":"704339676","full_name":"zackbradys/rgs-demo-app","owner":"zackbradys","description":"Rancher Government Solutions Demo App","archived":false,"fork":false,"pushed_at":"2024-01-13T04:04:56.000Z","size":1176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T13:23:11.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zackbradys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-13T03:57:16.000Z","updated_at":"2023-10-16T21:06:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"fff316bf-26c0-4931-9017-e0c417928647","html_url":"https://github.com/zackbradys/rgs-demo-app","commit_stats":null,"previous_names":["zackbradys/rgs-demo-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zackbradys/rgs-demo-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackbradys%2Frgs-demo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackbradys%2Frgs-demo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackbradys%2Frgs-demo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackbradys%2Frgs-demo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zackbradys","download_url":"https://codeload.github.com/zackbradys/rgs-demo-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackbradys%2Frgs-demo-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259935602,"owners_count":22934386,"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-12-23T07:15:58.369Z","updated_at":"2025-06-15T07:04:41.892Z","avatar_url":"https://github.com/zackbradys.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rancher/Kubernetes Demo Application\n\nThis is a Go demo application used for demonstrating Kubernetes and load balancing.\n\nIt will create a colored icon for each replica within a ReplicaSet and indicate which one\nmost recently served a response. Replicas which haven't been heard from will begin to fade\nout, until after a configurable number of seconds they will disappear. This is useful for\ndemonstrating scaling up/down or in the case of an application like [Rio](https://rio.io),\nfor showing scale-in of an upgraded application.\n\n## Environment Variables\n\n- `TITLE`: sets title in demo app\n- `SHOW_VERSION`: show version of app in ui (`VERSION` env var)\n- `REFRESH_INTERVAL`: interval in milliseconds for page to refresh (default: 1000)\n- `EXPIRE_INTERVAL`: how long a replica can go without being seen before we remove it from the display (default: 10s)\n- `REMOVE_INTERVAL`: how long after `EXPIRE_INTERVAL` until we remove the icon (default: 20s)\n- `SKIP_ERRORS`: set this to prevent errors from counting (useful on janky load balancers)\n- `METADATA`: extra text at bottom of info area\n- `COW_COLOR`: what color the cow background should be (default: black). Valid options are any color from the CSS pallete, including:\n  - red\n  - orange\n  - yellow\n  - olive\n  - green\n  - teal\n  - blue\n  - violet\n  - purple\n  - pink\n  - black\n\n## Build\n\n`docker build -t monachus/rancher-demo .`\n\n## Paths\n\nBy default the loaded page will reach back to `/demo` every `REFRESH_INTERVAL` and use the returned information to update the display. Other paths are:\n\n- `/info` - returns some additional information about the replica serving the request\n- `/load` - adds a 2s delay to the response from `/info` - use this for putting artificial load on the system and watching the replicas scale\n\n## Ports\n\nThe container will listen for traffic on port 8080.\n\n## Running\n\n1. Edit `base/configs/source-vars.yaml` and set the following:\n    - `MY_NAMESPACE`: the namespace into which the app will be deployed (default: `rancher-demo`). This will be created if it does not already exist.\n    - `URL_HOST`: the hostname portion of the URL that the ingress will answer on (default: `rancher-demo.home.monach.us`)\n2. Run `kubectl apply -k base` to deploy the application.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackbradys%2Frgs-demo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzackbradys%2Frgs-demo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackbradys%2Frgs-demo-app/lists"}