Giter Site home page Giter Site logo

rfmvasconcelos / metallb-operator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from charmed-kubernetes/metallb-operator

0.0 1.0 0.0 66 KB

MetalLB Operator for Kubernetes

License: GNU General Public License v3.0

Python 89.27% Makefile 1.80% Shell 8.93%

metallb-operator's Introduction

MetalLB Operator

Overview

MetalLB offers a software network load balancing implementation that allows for LoadBalancing services in Kubernetes. Upstream documentation for MetalLB can be found at https://metallb.universe.tf/

The official documentation for these charms and how to use them with Kubernetes can be found at https://ubuntu.com/kubernetes/docs/metallb.

This repo contains both of the MetalLB charms (under the charms directory), as well as the bundle (under the bundle directory).

Building the charms

The charms can be built locally using the Makefile:

make charms

This will first check for any missing dependencies, such as charmcraft, and install them if necessary (so you may receive a sudo prompt to perform the package installation). Then it will build the charms, creating a build/ directory with the two .charm files in it.

Testing locally

The easiest way to test MetalLB locally is with MicroK8s. Note that MicroK8s and Juju are not strictly build dependencies, so you may need to install them yourself:

snap install juju --classic
snap install microk8s --classic
sudo usermod -aG microk8s $USER
newgrp microk8s
microk8s.enable dns storage

Once that is done, you can bootstrap a Juju controller into MicroK8s, add a Kubernetes model, and deploy the bundle using the local overlay:

juju bootstrap microk8s
juju add-model metallb-system
juju deploy ./bundle --overlay ./docs/local-overlay.yaml

There is also an included manifest for deploying microbot to test your deployment:

microk8s.kubectl apply -f ./docs/example-microbot-lb.yaml

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.