rancher-bind

module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0

README

rancher-bind

What is it?

This repository hosts the backend implementation for the kube-bind project for rancher.

This allows external clusters to consume rancher native services without a need for installation.

  • The exposed rancher CRDs gets installed in the consumer cluster, objects are syncronized with the provider side.
  • Permissions for the consumer cluster access are added gradually based on the APIServiceBinding spec.
  • The service provider does not inject controllers/operators into the service consumer's cluster.

Functionality, such as fine-grained kubeconfig for rancher cluster is exposed via plugin commands.

Prerequisites

Try it out

Fine-grained kubeconfig for Rancher cluster
kubectl krew index add bind https://github.com/Danil-Grigorev/rancher-bind.git
kubectl krew install rancher-bind/rancher-bind
kubectl rancher-bind -f ./example-role.yaml > kubeconfig
cat kubeconfig
# Outputs:
# apiVersion: v1
# kind: Config
# clusters:
# - name: "local"
# ...

Directories

Path Synopsis
cmd
pkg
apis/rancher
Package rancher contains the rancher management.cattle.io/v3 API proxy implementations.
Package rancher contains the rancher management.cattle.io/v3 API proxy implementations.
apis/rancher/management/v3
Package rancher contains the rancher management.cattle.io/v3 API proxy implementations.
Package rancher contains the rancher management.cattle.io/v3 API proxy implementations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL