{"id":37213529,"url":"https://github.com/p2sousa/codedu-go-hpa","last_synced_at":"2026-01-15T00:38:21.989Z","repository":{"id":102405060,"uuid":"197503113","full_name":"p2sousa/codedu-go-hpa","owner":"p2sousa","description":"Treinamento de microserviços na code.education: resolução do desafio em golang-k8s-hpa.","archived":true,"fork":false,"pushed_at":"2019-07-31T23:06:40.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-03T16:41:53.697Z","etag":null,"topics":["autoscaler","cloudbuild","dockerfile","golang","hpa","k8s","kubernetes"],"latest_commit_sha":null,"homepage":"","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/p2sousa.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-07-18T03:17:42.000Z","updated_at":"2024-06-19T08:22:59.718Z","dependencies_parsed_at":null,"dependency_job_id":"6a5023ec-e0d6-4bb3-ad04-dcf6d11f03b1","html_url":"https://github.com/p2sousa/codedu-go-hpa","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/p2sousa/codedu-go-hpa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2sousa%2Fcodedu-go-hpa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2sousa%2Fcodedu-go-hpa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2sousa%2Fcodedu-go-hpa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2sousa%2Fcodedu-go-hpa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p2sousa","download_url":"https://codeload.github.com/p2sousa/codedu-go-hpa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2sousa%2Fcodedu-go-hpa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["autoscaler","cloudbuild","dockerfile","golang","hpa","k8s","kubernetes"],"created_at":"2026-01-15T00:38:21.132Z","updated_at":"2026-01-15T00:38:21.971Z","avatar_url":"https://github.com/p2sousa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Modulo DevOps - Kubernets (k8s) - HPA e CI\\CD\n\n### Cluster do servidor web GO\nEndpoint do servidor web em GO com processo de loop antes de renderizar:\n\n- **[servidor web GO](http://34.68.239.24/)**\n\n### Imagem GoLang Servidor Web (LOOP)\n\n - **[p2sousa/go-hpa](https://hub.docker.com/r/p2sousa/go-hpa)**\n\n Para executar o processo entre na pasta k8s e rode os seguintes comandos:\n\n```\n  $ kubectl apply -f deployment.yml\n  $ kubectl apply -f service.yml\n  $ kubectl apply -f hpa.yml\n```\nPara acessar o servidor em loop:\n\n```\n  $ kubectl run -it loader --image=busybox /bin/sh\n  $ while true; do wget -q -O- http://go-hpa.default.svc.cluster.local; done;\n```\n\nPara verificar o processo de Autosclaler rode:\n\n```\n  $ watch kubectl get hpa\n```\n\nCaso nao tenha o watch instalado, no macOS rode:\n\n```\n  $ brew install watch\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp2sousa%2Fcodedu-go-hpa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp2sousa%2Fcodedu-go-hpa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp2sousa%2Fcodedu-go-hpa/lists"}