Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions definitions/metallb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# MetalLB

This [Fabrikate](https://github.com/microsoft/fabrikate) definition generates the Kubernetes resource manifests for [MetalLB](https://github.com/danderson/metallb).

## Usage

Add the following to your component.yaml:

```yaml
subcomponents:
- name: "metallb"
source: "https://github.com/microsoft/fabrikate-definitions.git"
path: "definitions/metallb"
method: "git"
```

### Setting Up MetalLB

This definition uses Helm for installation and management of MetalLB. Documentation can be found in the [Helm Charts Repo](https://github.com/helm/charts/tree/master/stable/metallb).

It is recommended you change the configuration to suit your own needs. This can be achieved using the `configInLine` stanza in your `common.yaml` like so:

```yaml
metallb:
config:
configInLine:
address-pools:
- name: default-ip-space
protocol: layer2
addresses:
- 10.0.1.10-10.0.1.99
```
14 changes: 14 additions & 0 deletions definitions/metallb/component.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "fabrikate-metallb",
"generator": "static",
"path": "./manifests",
"subcomponents": [
{
"name": "metallb",
"generator": "helm",
"source": "https://github.com/helm/charts",
"method": "git",
"path": "stable/metallb"
}
]
}
5 changes: 5 additions & 0 deletions definitions/metallb/config/common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
config:
subcomponents:
metallb:
namespace: metallb-system
injectNamespace: true
4 changes: 4 additions & 0 deletions definitions/metallb/manifests/metallb-namespace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: metallb-system