{"id":22685909,"url":"https://github.com/sverrirab/kube-test-container","last_synced_at":"2025-04-12T19:36:24.495Z","repository":{"id":45719386,"uuid":"79261179","full_name":"sverrirab/kube-test-container","owner":"sverrirab","description":"Kubernetes Test Container","archived":false,"fork":false,"pushed_at":"2019-02-28T20:30:25.000Z","size":874,"stargazers_count":30,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T13:53:59.726Z","etag":null,"topics":["docker","helm","kubernetes","testing"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/sverrirab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-17T19:03:49.000Z","updated_at":"2024-06-17T08:08:53.000Z","dependencies_parsed_at":"2022-08-31T13:10:51.517Z","dependency_job_id":null,"html_url":"https://github.com/sverrirab/kube-test-container","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sverrirab%2Fkube-test-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sverrirab%2Fkube-test-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sverrirab%2Fkube-test-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sverrirab%2Fkube-test-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sverrirab","download_url":"https://codeload.github.com/sverrirab/kube-test-container/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248623414,"owners_count":21135247,"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":["docker","helm","kubernetes","testing"],"created_at":"2024-12-09T22:18:29.824Z","updated_at":"2025-04-12T19:36:24.457Z","avatar_url":"https://github.com/sverrirab.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes Test Container\n\nThis is a very simple [![](https://images.microbadger.com/badges/image/sverrirab/kube-test-container:v1.0.svg)](https://microbadger.com/images/sverrirab/kube-test-container:v1.0 \"Get your own image badge on microbadger.com\") container that you can use to test your [Kubernetes](https://kubernetes.io) cluster.\n\nSimply create a deployment and service with the yaml file:\n\n```bash\nkubectl create -f ./kubernetes/kube-test-container.yaml\n```\n\nThe containers have already been uploaded so you don't need to build anything here.  But the full \nsource is provided here if you want to extend this (Pull Request welcome).\n\n## Scale the deployment\n\n```bash\nkubectl scale deployment kube-test-container --replicas=30\n```\n\n## Automatic scaling\n\nTurn on automatic scaling with [HPA](https://kubernetes.io/docs/user-guide/horizontal-pod-autoscaling/)\n\n```bash\nkubectl autoscale deployment kube-test-container --min=10 --max=20\n```\n\n## View the status\n\n```bash\nkubectl get deploy,svc kube-test-container\n```\n\n## View the status page and generate load\n\nView the external IP Address using the Load Balancer IP `http://IPADDRESS/`.  You will see the correct address marked \nas `EXTERNAL-IP` in the service status (see above).\n\nIf you click the \"Let one use too much RAM\" `http://IPADDRESS/ram` or \"Let one use too much CPU\" `http://IPADDRESS/cpu`\nto trigger one of the container to use too much RAM / CPU (this will grow unbound).  \n\nClick \"Fetch multiple status pages\" for requesting status `http://IPADDRESS/status`\n\n## External load testing\n\nYou can use your favorite benchmarking tool.  The simplest for many would be Apache Benchmark:\n\n\n```bash\nab -n 1000 -c 10 http://IPADDRESS/status\n```\n\n## Testing upgrades\n\nThere are three different versions of this component that only differ in reporting a different version:\n\n* sverrirab/kube-test-container:v1.0\n* sverrirab/kube-test-container:v1.1\n* sverrirab/kube-test-container:v1.2\n\n```bash\nkubectl set image deployment/kube-test-container kube-test-container=sverrirab/kube-test-container:v1.1\n```\n\n## Cleanup\n\n```bash\nkubectl delete deploy,svc kube-test-container\n```\n\n# Helm installation\n\nFor testing your cluster with [Helm](https://github.com/kubernetes/helm):\n\n```bash\nhelm repo add kube-test-container https://raw.githubusercontent.com/sverrirab/kube-test-container/master/helm/charts/\n```\n\nTo see available versions:\n```bash\nhelm search --versions kube-test-container\n```\n\nAnd to install:\n```bash\nhelm install --version 1.1.0 --name ktc kube-test-container/kube-test-container\n```\n\n# Screenshot\n\n![Screen Shot](./docs/screenshot.png \"Kube-Test-Container in action\")\n\n# Building and testing\n\nIf you want to make modifications you can use the `./build.sh` script to build a local docker container\nand `./run.sh` to test it locally through `http://localhost:8000/`.\n\n# License\n\nMIT License - read the LICENSE file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsverrirab%2Fkube-test-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsverrirab%2Fkube-test-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsverrirab%2Fkube-test-container/lists"}