Skip to content

Commit

Permalink
Add metallb operator
Browse files Browse the repository at this point in the history
Install the metallb [1] operator on nerc-ocp-prod. Our immediate use case
for this operator is providing a public ip address to the public-facing
ingress service.

Part of: nerc-project/operations#16

[1]: https://metallb.universe.tf/
  • Loading branch information
larsks committed Oct 26, 2022
1 parent 307d7af commit 85cbe3e
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: Namespace
metadata:
name: metallb-system
spec: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: metallb-system
resources:
- operatorgroup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: metallb-system
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: metallb-system
resources:
- subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: metallb-operator
spec:
channel: stable
installPlanApproval: Automatic
name: metallb-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
6 changes: 6 additions & 0 deletions cluster-scope/bundles/metallb/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/core/namespaces/metallb-system
- ../../base/operators.coreos.com/subscriptions/metallb-operator
- ../../base/operators.coreos.com/operatorgroups/metallb-system
1 change: 1 addition & 0 deletions cluster-scope/overlays/nerc-ocp-prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ commonLabels:
resources:
- ../common
- ../../bundles/acct-mgt
- ../../bundles/metallb
- ingresscontrollers/external-apps-ingress-controller.yaml
- externalsecrets
- apiserver/cluster.yaml
Expand Down

0 comments on commit 85cbe3e

Please sign in to comment.