Giter Club home page Giter Club logo

crc-node-port-controller's Introduction

Node Port Controller

This controller allows to access NodePort Services running inside CodeReady Containers from the host when in vsock network mode.

The controller listens to change events on services inside the cluster and exposes/unexposes the ports utilizing the gvisor-tap-vsock (see: https://github.com/containers/gvisor-tap-vsock/) API.

Prerequisites

  1. Running CRC Cluster. See: https://github.com/crc-org/crc
  2. oc command line tool. See: https://docs.openshift.com/container-platform/4.8/cli_reference/openshift_cli/getting-started-cli.html

Usage

  1. Clone the repository

    git clone https://github.com/raynay-r/crc-node-port-controller.git

  2. Switch to the cloned repository

    cd node-port-controller

  3. Create the Openshift project where the controller will run

    oc apply -f manifests/project.yaml

  4. Create ServiceAccount with appropriate rights which will be used to run the controller

    oc apply -f manifests/serviceaccount.yaml

  5. Create BuildConfig for building the Image inside Openshift

    oc apply -f manifests/buildconfig.yaml

  6. Run the build to create the image

    oc project node-port-controller
    oc start-build node-port-controller-build --from-dir . --follow
    
  7. Create the deployment

    oc apply -f manifests/deployment.yaml

crc-node-port-controller's People

Contributors

raynay-r avatar

Stargazers

Nick Paul avatar

Watchers

 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.