{"id":16119096,"url":"https://github.com/benslabbert/microk8s-multiple-namespaces-example","last_synced_at":"2026-04-26T20:31:56.355Z","repository":{"id":101553486,"uuid":"240234508","full_name":"BenSlabbert/microk8s-multiple-namespaces-example","owner":"BenSlabbert","description":"K8s cluster with multiple namespaces and ingress routing based on hostname","archived":false,"fork":false,"pushed_at":"2020-02-13T10:52:59.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-31T10:42:54.919Z","etag":null,"topics":["golang","ingress-nginx","kubernetes","microk8s"],"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/BenSlabbert.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-02-13T10:32:52.000Z","updated_at":"2020-02-13T10:53:01.000Z","dependencies_parsed_at":"2023-06-05T14:00:42.192Z","dependency_job_id":null,"html_url":"https://github.com/BenSlabbert/microk8s-multiple-namespaces-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BenSlabbert/microk8s-multiple-namespaces-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fmicrok8s-multiple-namespaces-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fmicrok8s-multiple-namespaces-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fmicrok8s-multiple-namespaces-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fmicrok8s-multiple-namespaces-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenSlabbert","download_url":"https://codeload.github.com/BenSlabbert/microk8s-multiple-namespaces-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenSlabbert%2Fmicrok8s-multiple-namespaces-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32312232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"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":["golang","ingress-nginx","kubernetes","microk8s"],"created_at":"2024-10-09T20:52:48.944Z","updated_at":"2026-04-26T20:31:56.338Z","avatar_url":"https://github.com/BenSlabbert.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microk8s Example\n\nThis is a demo of [Microk8s](https://microk8s.io) with multiple namespaces.\n\nThe reason for this repo is because I couldn't find something like this, so I created it.\n\n## Setup\n\n1.) Do the [quick start](https://microk8s.io/docs/) and enable the [addons](https://microk8s.io/docs/addons)\n\n```shell script\nmicrok8s.enable dns dashboard ingress\n```\n\nNote: this will expose the cluster on `localhost:80` make sure this port is available, I am not sure how to change this.\n\n2.) Apply the `defualt` configurations\n\n```shell script\nmicrok8s.kubectl apply -f default/\n```\n\n3.) Apply the `echo` configurations\n\n```shell script\nmicrok8s.kubectl apply -f echo/namespace.yml\nmicrok8s.kubectl apply -f echo/\n```\n\n4.) Test!\n\nthis will resolve `default.localhost` to `localhost` and the `default` namespace\n\n```shell script\ncurl -L --insecure --resolve default.localhost:80:localhost http://default.localhost:80\n```\n\nthis will resolve `echo.localhost` to `localhost` and the `echo` namespace\n\n```shell script\ncurl -L --insecure --resolve echo.localhost:80:localhost http://echo.localhost:80/echo/world\n```\n\n### Helpful commands\n\n```shell script\nmicrok8s.status\n```\n\n```shell script\nmicrok8s.start\n```\n\n```shell script\nmicrok8s.stop\n```\n\n```shell script\nmicrok8s.kubectl apply -f echo/\n```\n\n```shell script\nmicrok8s.kubectl delete -f echo/\n```\n\n```shell script\nmicrok8s.enable dns dashboard ingress\n```\n\n```shell script\nmicrok8s.disable dns dashboard ingress\n```\n\n```shell script\nmicrok8s.status | grep enabled\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenslabbert%2Fmicrok8s-multiple-namespaces-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenslabbert%2Fmicrok8s-multiple-namespaces-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenslabbert%2Fmicrok8s-multiple-namespaces-example/lists"}