{"id":15068511,"url":"https://github.com/cjimti/go-vol","last_synced_at":"2026-01-03T06:11:00.898Z","repository":{"id":57598978,"uuid":"127346981","full_name":"cjimti/go-vol","owner":"cjimti","description":"Kubernetes volume testing container.","archived":false,"fork":false,"pushed_at":"2018-03-29T21:38:57.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T23:14:33.683Z","etag":null,"topics":["docker","docker-container","docker-image","filesystem","go","golang","k8s","kubernetes","testing","testing-tools","volume"],"latest_commit_sha":null,"homepage":"","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/cjimti.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":"2018-03-29T21:01:09.000Z","updated_at":"2019-07-15T12:19:45.000Z","dependencies_parsed_at":"2022-09-26T19:52:57.651Z","dependency_job_id":null,"html_url":"https://github.com/cjimti/go-vol","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/cjimti%2Fgo-vol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjimti%2Fgo-vol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjimti%2Fgo-vol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjimti%2Fgo-vol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjimti","download_url":"https://codeload.github.com/cjimti/go-vol/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243848985,"owners_count":20357685,"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","docker-container","docker-image","filesystem","go","golang","k8s","kubernetes","testing","testing-tools","volume"],"created_at":"2024-09-25T01:37:54.035Z","updated_at":"2025-10-23T02:35:18.583Z","avatar_url":"https://github.com/cjimti.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Docker Container Image Size](https://shields.beevelop.com/docker/image/image-size/cjimti/go-vol/latest.svg)](https://hub.docker.com/r/cjimti/go-vol/)\n[![Docker Container Layers](https://shields.beevelop.com/docker/image/layers/cjimti/go-vol/latest.svg)](https://hub.docker.com/r/cjimti/go-vol/)\n[![Docker Container Pulls](https://img.shields.io/docker/pulls/cjimti/go-vol.svg)](https://hub.docker.com/r/cjimti/go-vol/)\n\n# GO Vol\n\nGo Vol is for testing [Kubernetes] volumes. Pods will write a file to the specified path with a file consisting the environment variable vales for NODE_NAME and POD_NAME. This helps test and debug issues where Pods are not correctly connecting to a volume. The list of files on the volume is available from an http endpoint on a specified port.\n\n## Test with [Docker]\n\nRun the container from a terminal:\n```bash\ndocker run --rm -it -p 8080:80 -v \"$(pwd)\"/files:/files \\\n    -e VOL_PATH=\"/files\" -e PORT=80 \\\n    -e NODE_NAME=n1.imti.cloud \\\n    -e POD_NAME=go-vol-xxx2 \\\n    cjimti/go-vol\n```\n\nBrowse to http://localhost:8080 and you should see JSON output similar to the one below:\n\n```json\n{\n  \"client_ip\": \"172.17.0.1\",\n  \"count\": 2,\n  \"file\": \"/files/gv_n1.imti.cloud_go-vol-xxx2.txt\",\n  \"files\": [\n    \".gitignore\",\n    \"gv_n1.imti.cloud_go-vol-xxx2.txt\",\n    \"gv_n1.imti.cloud_go-vol-xxxx.txt\",\n    \"hello-world.txt\"\n  ],\n  \"message\": \"go-vol\",\n  \"node_name\": \"n1.imti.cloud\",\n  \"pod_ip\": \"\",\n  \"pod_name\": \"go-vol-xxx2\",\n  \"pod_namepage\": \"\",\n  \"service_account\": \"\",\n  \"status_message\": \"OK\",\n  \"time\": \"2018-03-29T20:56:00.3109565Z\",\n  \"uuid_call\": \"0fe81ee2-1e5f-40e5-79ac-ae219af26a3a\",\n  \"uuid_instance\": \"f118620f-3194-46fc-76c5-d32b5d7bfe01\",\n  \"version\": 1,\n  \"version_msg\": \"version 1\"\n}\n```\n\n## Test with [Kubernetes]\n\n```bash\ncd k8s\n\nkubectl create -f ./setup-rookfs.yml\nkubectl create -f ./go-vol-service.yml\nkubectl create -f ./go-vol-deployment.yml\n```\n\nFind the new nodePort service:\n```bash\nkubectl get service --selector=app=go-vol-service\n```\n```bash\nNAME             TYPE       CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE\ngo-vol-service   NodePort   10.104.151.78   \u003cnone\u003e        80:31020/TCP   19m\n```\n\n[Kubernetes] assigned port 31020 on my cluster, so I browse to http://n1.imti.cloud:31020. Port assignment is random since I did not specify a port in the provided configuration.\n\n\n\n## Resources\n- [Docker]\n- [Kubernetes]\n\n\n[Docker]: https://www.docker.com/\n[Kubernetes]: https://kubernetes.io/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjimti%2Fgo-vol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjimti%2Fgo-vol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjimti%2Fgo-vol/lists"}