{"id":16860001,"url":"https://github.com/danil-grigorev/rancher-bind","last_synced_at":"2025-03-18T14:33:53.392Z","repository":{"id":206460607,"uuid":"715542296","full_name":"Danil-Grigorev/rancher-bind","owner":"Danil-Grigorev","description":"Kube-bind plugin for rancher","archived":false,"fork":false,"pushed_at":"2023-11-27T15:12:23.000Z","size":147,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T19:12:34.498Z","etag":null,"topics":["fleet","gitops","kube-bind","rancher","rancher-bind"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Danil-Grigorev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-11-07T10:59:35.000Z","updated_at":"2024-05-26T09:53:49.000Z","dependencies_parsed_at":"2023-11-13T12:45:34.138Z","dependency_job_id":"26e3416a-d0de-42df-b6fd-71fd3089ef74","html_url":"https://github.com/Danil-Grigorev/rancher-bind","commit_stats":null,"previous_names":["danil-grigorev/rancher-bind"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danil-Grigorev%2Francher-bind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danil-Grigorev%2Francher-bind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danil-Grigorev%2Francher-bind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Danil-Grigorev%2Francher-bind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Danil-Grigorev","download_url":"https://codeload.github.com/Danil-Grigorev/rancher-bind/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244240785,"owners_count":20421533,"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":["fleet","gitops","kube-bind","rancher","rancher-bind"],"created_at":"2024-10-13T14:20:36.839Z","updated_at":"2025-03-18T14:33:53.368Z","avatar_url":"https://github.com/Danil-Grigorev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rancher-bind\n\n## What is it?\n\nThis repository hosts the backend implementation for the [kube-bind][] project for rancher.\n\nThis allows external clusters to consume rancher native services without a need for installation.\n\n- The exposed rancher CRDs gets installed in the consumer cluster, objects are syncronized with the provider side.\n- Permissions for the consumer cluster access are added gradually based on the APIServiceBinding spec.\n- The service provider does not inject controllers/operators into the service consumer's cluster.\n\nFunctionality, such as fine-grained kubeconfig for rancher cluster is exposed via plugin commands.\n\n[kube-bind]: https://github.com/kube-bind/kube-bind\n\n## Prerequisites\n\n- [Kubectl][]\n- [Krew][]\n- [Rancher][]\n\n[Kubectl]: https://kubernetes.io/docs/tasks/tools/#kubectl\n[Rancher]: https://ranchermanager.docs.rancher.com/pages-for-subheaders/install-upgrade-on-a-kubernetes-cluster\n[Krew]: https://krew.sigs.k8s.io/docs/user-guide/setup/install/\n\n## Try it out\n\n### Fine-grained kubeconfig for Rancher cluster\n\n```shell\n# export KUBECONFIG=/tmp/rancher-kubeconfig\nkubectl krew index add rancher-bind https://github.com/Danil-Grigorev/rancher-bind.git\nkubectl krew install rancher-bind/rancher-bind\nkubectl rancher-bind -f ./example-role.yaml -d \u003e kubeconfig\ncat kubeconfig\n# Outputs:\n# apiVersion: v1\n# kind: Config\n# clusters:\n# - name: \"local\"\n# ...\n\n# export KUBECONFIG=/tmp/consumer-kubeconfig\n# Populate an api.yaml file with the CRD resource/group to export\n# Example:\n# cat api.yaml\n# kind: APIServiceExportRequest\n# apiVersion: kube-bind.io/v1alpha1\n# metadata:\n#   name: export-clusters\n# spec:\n#   resources:\n#     - group: \"provisioning.cattle.io\"\n#       resource: \"clusters\"\n\nkubectl krew index add bind https://github.com/kube-bind/krew-index.git\nkubectl krew install bind/bind\nkubectl bind apiservice --remote-kubeconfig ./kubeconfig --remote-namespace default -f api.yaml\n```\n\nApply the desired CR resource in a consumer cluster and watch the status changes!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanil-grigorev%2Francher-bind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanil-grigorev%2Francher-bind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanil-grigorev%2Francher-bind/lists"}