Git Product home page Git Product logo

rancher-projector's Introduction

RancherProjector


RancherProjector is a short program, meant to be run in the Rancher Management Cluster, that will gather the Rancher Projects defined and post them to a Rancher-Selector Endpoint, deployed in a downstream cluster. Obviously, RancherProjector, needs RancherSelector to work: https://github.com/wrkode/rancher-selector

information

RancherProjector will watch the Rancher Management Cluster Projects. On event such as creation/update/deletion of Projects and Projects Annotations, RancherProjector will hit RancherSelector API on the downstream cluster with POST/Delete requests. The reasoning behind this is that Rancher Projects do not exist as CRD/Objects in the Rancher Downstream clusters. Therefor (at the time of this writing) there's no way to use the user-defined annotations defined at Project creation. The counterpart of RancherProjector, RancherSelector, will create a ConfigMap named rancher-data in the downstream cluster, in Namespace kube-system. this ConfigMap will contain all projects and annotations of all projects of the downstream cluster.

Usage

Important: make sure that RancherSelector is already deployed in all downstream clusters.

  • clone this repository and cd into the root directory.
  • create a non-scoped Rancher API Bearer Token.
  • create a secret in the kube-system namespace named rancher-projector-secret with key:value token=<yourBearerToken>.
  • Adjust file deployment.yaml as required.
  • Deploy RancherProjector with kubectl apply -f deployment.yaml.
  • Check in the downstream cluster namespace kube-system if ConfigMap rancher-data has been created.

rancher-projector's People

Contributors

wrkode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.