{"id":19154006,"url":"https://github.com/cjimti/go-echo","last_synced_at":"2025-10-27T00:02:50.115Z","repository":{"id":57610864,"uuid":"127316838","full_name":"cjimti/go-echo","owner":"cjimti","description":"TCP echo server.","archived":false,"fork":false,"pushed_at":"2018-03-30T03:49:15.000Z","size":12,"stargazers_count":22,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T04:53:07.764Z","etag":null,"topics":["docker","docker-container","docker-image","echo","golang","kubernetes","tcp","tcp-server","testing-tools"],"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/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-29T16:16:26.000Z","updated_at":"2024-12-08T00:53:07.000Z","dependencies_parsed_at":"2022-09-08T00:00:26.187Z","dependency_job_id":null,"html_url":"https://github.com/cjimti/go-echo","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-echo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjimti%2Fgo-echo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjimti%2Fgo-echo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjimti%2Fgo-echo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjimti","download_url":"https://codeload.github.com/cjimti/go-echo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252826235,"owners_count":21810082,"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","echo","golang","kubernetes","tcp","tcp-server","testing-tools"],"created_at":"2024-11-09T08:25:06.637Z","updated_at":"2025-10-27T00:02:50.076Z","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-echo/latest.svg)](https://hub.docker.com/r/cjimti/go-echo/)\n[![Docker Container Layers](https://shields.beevelop.com/docker/image/layers/cjimti/go-echo/latest.svg)](https://hub.docker.com/r/cjimti/go-echo/)\n[![Docker Container Pulls](https://img.shields.io/docker/pulls/cjimti/go-echo.svg)](https://hub.docker.com/r/cjimti/go-echo/)\n\n# GO (TCP) Echo\n\nA Simple go TCP echo server. Written to learn and test [Kubernetes] TCP networking.\n\n## Test with [Docker]\n\nRun the container from a terminal:\n```bash\ndocker run --rm -it -e TCP_PORT=2701 -e NODE_NAME=\"EchoNode\" -p 2701:2701 cjimti/go-echo\n```\n\nIn another terminal run:\n```bash\ntelnet localhost 2701\n```\n\n## Test with [Kubernetes]\n\n```bash\ncd k8s\nkubectl create -f . \n```\n\nYou should now have two TCP echo containers running:\n\n```bash\nkubectl get pods --selector=app=tcp-echo\n```\n\n```bash\nNAME                                   READY     STATUS    RESTARTS   AGE\ntcp-echo-deployment-777d856787-5fhb4   1/1       Running   0          27s\ntcp-echo-deployment-777d856787-rh9tp   1/1       Running   0          27s\n```\n\nYou should also have a service that connection port 32701 to the pods:\n\n```bash\nkubectl get service --selector=app=tcp-echo-service\n```\n\n```bash\nNAME               TYPE       CLUSTER-IP       EXTERNAL-IP   PORT(S)          AGE\ntcp-echo-service   NodePort   10.102.207.113   \u003cnone\u003e        2701:32701/TCP   35m\n\n```\n\nEcho some data, replace ANY_NODE_IP with a location of a node:\n```\ntelnet ANY_NODE_IP 32701\n```\n\nAfter connecting, type the word hello and hit return:\n```bash\nTrying x.x.x.x...\nConnected to node1.example.com.\nEscape character is '^]'.\nWelcome, you are connected to node node1.example.com.\nRunning on Pod tcp-echo-deployment-777d856787-rh9tp.\nIn namespace default.\nWith IP address 192.168.33.39.\nService default.\nhello\nhello\n```\n\n## Resources\n- [Expose Pod Information to Containers Through Environment Variables]\n- [Docker]\n- [Kubernetes]\n\n\n[Expose Pod Information to Containers Through Environment Variables]: https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/\n[Docker]: https://www.docker.com/\n[Kubernetes]: https://kubernetes.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjimti%2Fgo-echo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjimti%2Fgo-echo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjimti%2Fgo-echo/lists"}