{"id":15779911,"url":"https://github.com/rgl/kubernetes-hello","last_synced_at":"2026-05-01T09:32:13.834Z","repository":{"id":139753032,"uuid":"253000146","full_name":"rgl/kubernetes-hello","owner":"rgl","description":"show details about the container environment its running on","archived":false,"fork":false,"pushed_at":"2024-08-16T18:43:00.000Z","size":139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T11:06:05.424Z","etag":null,"topics":["aws-route53","azure-dns","example","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/rgl.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":"2020-04-04T13:10:43.000Z","updated_at":"2024-08-16T18:42:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f3d8619-880d-44a5-ac0a-cd67aae97141","html_url":"https://github.com/rgl/kubernetes-hello","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/rgl/kubernetes-hello","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fkubernetes-hello","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fkubernetes-hello/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fkubernetes-hello/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fkubernetes-hello/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/kubernetes-hello/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fkubernetes-hello/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32492162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aws-route53","azure-dns","example","kubernetes"],"created_at":"2024-10-04T18:21:53.520Z","updated_at":"2026-05-01T09:32:13.816Z","avatar_url":"https://github.com/rgl.png","language":"Go","readme":"# About\r\n\r\n[![Build status](https://img.shields.io/github/actions/workflow/status/rgl/kubernetes-hello/main.yml?branch=master)](https://github.com/rgl/kubernetes-hello/actions/workflows/main.yml)\r\n[![Docker pulls](https://img.shields.io/docker/pulls/ruilopes/kubernetes-hello)](https://hub.docker.com/repository/docker/ruilopes/kubernetes-hello)\r\n\r\nContainer that shows details about the environment its running on.\r\n\r\nIt will:\r\n\r\n* Show the request method, url, and headers.\r\n* Show the client and server address.\r\n* Show the container environment variables.\r\n* Show the container tokens, secrets, and configs (config maps).\r\n* Show the container pod name and namespace.\r\n* Show the containers running inside the container pod.\r\n* Show the container memory limits.\r\n* Show the container cgroups.\r\n* Configure [the Go runtime](https://pkg.go.dev/runtime) to honour the defined kubernetes container memory and cpu resource limits with the `GOMEMLIMIT` and `GOMAXPROCS` environment variables.\r\n* Expose as a Kubernetes `LoadBalancer` `Service`.\r\n  * Note that this results in the creation of an [EC2 Classic Load Balancer (CLB)](https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/introduction.html).\r\n* Use [Role and RoleBinding](https://kubernetes.io/docs/reference/access-authn-authz/rbac/).\r\n* Use [ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/).\r\n* Use [Secret](https://kubernetes.io/docs/concepts/configuration/secret/).\r\n* Use [ServiceAccount](https://kubernetes.io/docs/concepts/security/service-accounts/).\r\n* Use [Service Account token volume projection (a JSON Web Token and OpenID Connect (OIDC) ID Token)](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#serviceaccount-token-volume-projection) for the `https://example.com` audience.\r\n\r\nWhen running in Azure Kubernetes Service (AKS), it will also:\r\n\r\n* List the DNS Zones hosted in [Azure DNS](https://azure.microsoft.com/en-us/products/dns) using the [Azure Workload Identity authentication](https://azure.github.io/azure-workload-identity/docs/) (see the [rgl/terraform-azure-aks-example repository](https://github.com/rgl/terraform-azure-aks-example)).\r\n\r\nWhen running in Amazon Elastic Kubernetes Service (EKS), it will also:\r\n\r\n* List the DNS Zones hosted in [AWS Route 53](https://aws.amazon.com/route53/) using the [EKS Pod Identities authentication](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html) (see the [rgl/terramate-aws-eks-example repository](https://github.com/rgl/terramate-aws-eks-example)).\r\n\r\nThis is used in:\r\n\r\n* [rgl/terraform-azure-aks-example](https://github.com/rgl/terraform-azure-aks-example)\r\n* [rgl/terramate-aws-eks-example](https://github.com/rgl/terramate-aws-eks-example)\r\n* [rgl/rancher-single-node-ubuntu-vagrant](https://github.com/rgl/rancher-single-node-ubuntu-vagrant)\r\n\r\n# Usage\r\n\r\nInstall docker, kind, and kubectl.\r\n\r\nCreate the local test infrastructure:\r\n\r\n```bash\r\n./.github/workflows/kind/create.sh\r\n```\r\n\r\nAccess the test infrastructure kind Kubernetes cluster:\r\n\r\n```bash\r\nexport KUBECONFIG=\"$PWD/kubeconfig.yml\"\r\nkubectl get nodes -o wide\r\n```\r\n\r\nBuild and test:\r\n\r\n```bash\r\n./build.sh \u0026\u0026 ./test.sh \u0026\u0026 xdg-open index.html\r\n```\r\n\r\nDestroy the local test infrastructure:\r\n\r\n```bash\r\n./.github/workflows/kind/destroy.sh\r\n```\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fkubernetes-hello","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fkubernetes-hello","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fkubernetes-hello/lists"}