{"id":18299829,"url":"https://github.com/containersolutions/k8shserver","last_synced_at":"2025-08-10T12:09:29.177Z","repository":{"id":87118010,"uuid":"76256442","full_name":"ContainerSolutions/k8shserver","owner":"ContainerSolutions","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-09T18:06:35.000Z","size":10,"stargazers_count":7,"open_issues_count":0,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T13:39:28.205Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ContainerSolutions.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":"2016-12-12T12:56:33.000Z","updated_at":"2024-04-02T09:14:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"87c31424-ec36-4638-a9ff-9303ac6c94ba","html_url":"https://github.com/ContainerSolutions/k8shserver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ContainerSolutions/k8shserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContainerSolutions%2Fk8shserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContainerSolutions%2Fk8shserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContainerSolutions%2Fk8shserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContainerSolutions%2Fk8shserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ContainerSolutions","download_url":"https://codeload.github.com/ContainerSolutions/k8shserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContainerSolutions%2Fk8shserver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269720437,"owners_count":24464286,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2024-11-05T15:10:29.002Z","updated_at":"2025-08-10T12:09:29.136Z","avatar_url":"https://github.com/ContainerSolutions.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# k8shserver\nConfiguration files used in http://blog.kubernetes.io/2016/12/cluster-federation-in-kubernetes-1.5.html blog post. \n\nBefore you start update `scripts/0-settings.sh` with your project name, domain. Then run:\n\n    . scripts/0-settings.sh\n\n# build images\nYou can skip this step. Images are already deployed to Docker Hub repository\n\n    make push\n\n# running\n1. make sure you have `gcloud` utility\n1. create cluster\n\n    ```\n    . scripts/1-create.sh\n    ```\n\n1. make sure `kubefed` and `kubectl` are in `$PATH`\n1. initialize kubectl config\n\n    ```\n    . scripts/2-getcredentials.sh\n    ```\n    \n1. initialize federation\n\n    ```\n    . scripts/3-initfed.sh\n    ```\n\n1. join clusters to federation plane\n\n    ```\n    . scripts/4-joinfed.sh\n    ```\n\n1. create an SSL certificate for your ingress host (foo.bar.com is fine for this example)\n\n    ```\n    openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /tmp/tls.key -out /tmp/tls.crt -subj \"/CN=foo.bar.com\"\n    ```\n\n1. deploy secret, service, ingress and replica set\n\n    ```\n    kubectl --context=federation create secret tls ing-secret --key /tmp/tls.key --cert /tmp/tls.crt\n    kubectl --context=federation create -f services/k8shserver.yaml\n    kubectl --context=federation create -f ingress/k8shserver.yaml\n    kubectl --context=federation create -f rs/k8shserver.yaml\n    ```\n    \n1. query the service. It may take a few minutes for ingress to allocate the IP.\n    ```\n    kubectl --context=federation get ing\n    NAME         HOSTS     ADDRESS         PORTS     AGE\n    k8shserver   *         130.211.19.38   80, 443   1m\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainersolutions%2Fk8shserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontainersolutions%2Fk8shserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainersolutions%2Fk8shserver/lists"}