{"id":21699685,"url":"https://github.com/cage1016/gokitconsulk8s","last_synced_at":"2025-04-12T13:14:20.176Z","repository":{"id":144267176,"uuid":"206255649","full_name":"cage1016/gokitconsulk8s","owner":"cage1016","description":"go kit microservice demo with consul \u0026 zipkin at kuberneters","archived":false,"fork":false,"pushed_at":"2019-11-28T08:12:12.000Z","size":465,"stargazers_count":11,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T13:14:13.994Z","etag":null,"topics":["consul","docker","go-kit","kubernertes","microservice","zipkin"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/cage1016.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-04T07:12:43.000Z","updated_at":"2021-11-22T14:02:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2cff0d7-07e4-4c97-8a64-13aa16f1bc6f","html_url":"https://github.com/cage1016/gokitconsulk8s","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/cage1016%2Fgokitconsulk8s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fgokitconsulk8s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fgokitconsulk8s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fgokitconsulk8s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cage1016","download_url":"https://codeload.github.com/cage1016/gokitconsulk8s/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571839,"owners_count":21126522,"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":["consul","docker","go-kit","kubernertes","microservice","zipkin"],"created_at":"2024-11-25T20:10:54.779Z","updated_at":"2025-04-12T13:14:20.171Z","avatar_url":"https://github.com/cage1016.png","language":"Shell","funding_links":["https://www.patreon.com/Cage"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to gokitconsulk8s 👋\u003c/h1\u003e\n\u003cp\u003e\n  \u003ca href=\"https://github.com/cage1016/gokitconsulk8s/blob/master/LICENSE\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" target=\"_blank\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/CageChung\"\u003e\n    \u003cimg alt=\"Twitter: CageChung\" src=\"https://img.shields.io/twitter/follow/CageChung.svg?style=social\" target=\"_blank\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e build go microservice with consul at kubernetes\n\n## Architecture\n\nThe gokitconsulk8s is comprised of 3 micorservice\n\n1. Router\n    - http\n    - grpc\n1. AddSvc\n    - sum\n    - concat\n1. FooSvc\n    - foo\n\n![](./docs/infa.png)\n\n## Install\n\nprepare __helm cluster__\n\n```sh\n$ cd consul-helm\n$ helm list\n$ helm install ./ -n cc\n...\n```\n\n## Usage\n\n```sh\nskaffold run\n```\n\n## Test\n\n```bash\n## gateway 8080 sum\n$ curl -X \"POST\" \"http://localhost:8080/api/addsvc/sum\" -H 'Content-Type: application/json; charset=utf-8' -d '{ \"a\": 3, \"b\": 34}'\n{\"rs\":37,\"err\":null}\n\n## gateway 8080 concat\n$ curl -X \"POST\" \"http://localhost:8080/api/addsvc/concat\" -H 'Content-Type: application/json; charset=utf-8' -d '{ \"a\": \"3\", \"b\": \"34\"}'\n{\"rs\":\"334\",\"err\":null}\n\n## gateway 8080 foo\n$ curl -X \"POST\" \"http://localhost:8080/api/foosvc/foo\" -H 'Content-Type: application/json; charset=utf-8' -d '{\"s\": \"3ddd\"}'\n{\"res\":\"3dddbar\",\"err\":null}\n\n## grpc 8081 sum\n$ grpcurl -plaintext -proto ./pb/addsvc/addsvc.proto -d '{\"a\": 3, \"b\":5}' localhost:8081 pb.Addsvc.Sum\n{\n  \"rs\": \"8\"\n}\n\n## grpc 8081 concat\n$ grpcurl -plaintext -proto ./pb/addsvc/addsvc.proto -d '{\"a\": \"3\", \"b\":\"5\"}' localhost:8081 pb.Addsvc.Concat\n{\n  \"rs\": \"35\"\n}\n\n## grpc 8081 foo\n$ grpcurl -plaintext -proto ./pb/foosvc/foosvc.proto -d '{\"s\": \"foo\"}' localhost:8081 pb.Foosvc.Foo\n{\n  \"res\": \"foobar\"\n}\n```\n\n__zipkin__\n\nvisit http://localhost:9411\n\n![](docs/screenshot-zipkin.png)\n\n## Author\n\n👤 **KAI-CHU CHUNG**\n\n* Twitter: [@CageChung](https://twitter.com/CageChung)\n* Github: [@cage1016](https://github.com/cage1016)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/cage1016/gokitconsulk8s/issues).\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n\u003ca href=\"https://www.patreon.com/Cage\"\u003e\n  \u003cimg src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" width=\"160\"\u003e\n\u003c/a\u003e\n\n## 📝 License\n\nCopyright © 2019 [KAI-CHU CHUNG](https://github.com/cage1016).\u003cbr /\u003e\nThis project is [MIT](https://github.com/cage1016/gokitconsulk8s/blob/master/LICENSE) licensed.\n\n***\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcage1016%2Fgokitconsulk8s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcage1016%2Fgokitconsulk8s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcage1016%2Fgokitconsulk8s/lists"}