Git Product home page Git Product logo

lbaas-operator's Introduction

lbaas-operator

There are use-cases that you may want to call an application outside the okd clusters.

Think of a scenario that you have 3 VMs that are running elasticsearch nodes and the application should call a URL that load balances requests to these three instances.

lbaas-operator provides a kind named ExternalService that simplifies the process of creating Services with custom Endpoints in OKD. It allows you to interact with external applications seamlessly.

An example for an ExternalService can be:

apiVersion: networking.snappcloud.io/v1alpha1
kind: ExternalService
metadata:
  name: example-external-service
spec:
  type: static
  serviceType: ClusterIP
  static:
    addresses:
     - ip: 172.16.10.10
     - ip: 172.16.10.11
     - ip: 172.16.10.12
  ports:
    - name: 8080-tcp
      port: 8080
      protocol: TCP

Specification

The ExternalService object has the following fields:

  • metadata: Metadata for the ExternalService resource, including the name and other optional fields.
  • spec: Specification for the ExternalService, including the type, serviceType, endpoints, and ports.
    • serviceType: The type of Kubernetes Service to create. For example, "ClusterIP" or "Loadbalancer".
    • ports: The list of ports to expose on the Service. Each port should specify the name, port number, and protocol.
    • type: The type of ExternalService. Currently, only the "static" type is supported.
    • static: Defines a static list of IP addresses that will be used as the endpoints for the Service.
      • addresses: A list of IP addresses that represent the endpoints for the Service.

Development

  • make generate update the generated code for that resource type.
  • make manifests Generating CRD manifests.
  • make test Run tests.

Build

Export your image name:

export IMG=ghcr.io/snapp-incubator/lbaas-operator:main
  • make build builds golang app locally.
  • make docker-build build docker image locally.
  • make docker-push push container image to registry.

Run, Deploy

  • make run run app locally
  • make deploy deploy to k8s.

Clean up

  • make undeploy delete resouces in k8s.

Security

Reporting security vulnerabilities

If you find a security vulnerability or any security related issues, please DO NOT file a public issue, instead send your report privately to [email protected]. Security reports are greatly appreciated and we will publicly thank you for it.

License

Apache-2.0 License, see LICENSE.

lbaas-operator's People

Contributors

miladibra10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

m-yosefpor

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.