{"id":18260070,"url":"https://github.com/roppa/linkerd-example","last_synced_at":"2025-07-04T06:09:38.368Z","repository":{"id":146092731,"uuid":"146460504","full_name":"roppa/linkerd-example","owner":"roppa","description":"Example GoLang and Linkerd using Docker and Docker Compose","archived":false,"fork":false,"pushed_at":"2018-08-28T14:35:16.000Z","size":3922,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T18:36:29.106Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roppa.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":"2018-08-28T14:33:21.000Z","updated_at":"2018-08-28T14:35:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"c28987ae-136a-49f9-a6d7-c863c449aa7f","html_url":"https://github.com/roppa/linkerd-example","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/roppa%2Flinkerd-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Flinkerd-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Flinkerd-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Flinkerd-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roppa","download_url":"https://codeload.github.com/roppa/linkerd-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947825,"owners_count":21023058,"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-11-05T10:41:54.336Z","updated_at":"2025-04-08T23:44:43.398Z","avatar_url":"https://github.com/roppa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example linkerd with Go grpc\n\nWe want to have lots of services and not much configuration. Sounds good. Hence linkerd. Specify resources and let linkerd handle the load balancing etc.\n\nFirst, build the docker image for the Go grpc service locally as this will be referred to in the docker-compose file:\n\n```bash\ndocker build -t go-server  ./go-server\n```\n\nNext, run docker-compose `docker-compose up build`. This spins up 2 of grpc servers.\n\nThen, do some server calls using:\n\n```bash\ngo run ./go-client/main.go\n```\n\nVisit [the Linkerd admin/requests page](http://localhost:9990/requests).\n\nTo test you can run `./ping.sh [NUMBER]`, for example `./ping.sh 10` would call the service 10 times.\n\nVoila.\n\nTo add more servers you will need to:\n\n  - add new servers in the docker-compose.yml file like this, including a port:\n    ```\n      server-2:\n       image: go-server\n       container_name: server-2\n       environment:\n         - PORT=[YOUR_NEW_PORT]\n       ports:\n         - [YOUR_NEW_PORT]:[YOUR_NEW_PORT]\n    ```\n  - add image name and port to `linkerd/disco/helloworld.Greeter`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Flinkerd-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froppa%2Flinkerd-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Flinkerd-example/lists"}