deploy metallb to internal cluster and rebove ingress
This commit is contained in:
1 parent
fabc113c84
commit
79706c90ff
13 files changed
+171
No files matched your search
@@ -0,0 +1,11 @@
|
||||
---
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: BGPAdvertisement
|
||||
metadata:
|
||||
name: bgp-advert
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
aggregationLength: 32
|
||||
aggregationLengthV6: 128
|
||||
ipAddressPools:
|
||||
- bgp-ip-addresspool
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
commonAnnotations:
|
||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||
|
||||
resources:
|
||||
# Operator deployment
|
||||
- namespace.yaml
|
||||
- subscription.yaml
|
||||
- operatorgroup.yaml
|
||||
# Deploy cluster resources
|
||||
- metallb.yaml
|
||||
- bgp_advertisement.yaml
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: MetalLB
|
||||
metadata:
|
||||
name: metallb
|
||||
namespace: metallb-system
|
||||
spec: {}
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
labels:
|
||||
kubernetes.io/metadata.name: metallb-system
|
||||
name: metallb-system
|
||||
argocd.argoproj.io/managed-by: openshift-gitops-operator
|
||||
openshift.io/cluster-monitoring: 'true'
|
||||
name: metallb-system
|
||||
spec:
|
||||
finalizers:
|
||||
- kubernetes
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
apiVersion: operators.coreos.com/v1
|
||||
kind: OperatorGroup
|
||||
metadata:
|
||||
name: metallb-operator
|
||||
namespace: metallb-system
|
||||
#spec:
|
||||
# targetNamespaces:
|
||||
# - metallb-system
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: operators.coreos.com/v1alpha1
|
||||
kind: Subscription
|
||||
metadata:
|
||||
name: metallb-operator
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
channel: stable
|
||||
installPlanApproval: Automatic #Manual
|
||||
name: metallb-operator
|
||||
source: redhat-operators
|
||||
sourceNamespace: openshift-marketplace
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: metallb.io/v1beta2
|
||||
kind: BGPPeer
|
||||
metadata:
|
||||
name: bgp-peer-worlddrive
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
disableMP: false
|
||||
myASN: 65003
|
||||
peerASN: 65002
|
||||
peerAddress: 10.1.71.1
|
||||
peerPort: 179
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: IPAddressPool
|
||||
metadata:
|
||||
name: bgp-ip-addresspool
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
addresses:
|
||||
- 10.1.182.0/24
|
||||
autoAssign: true
|
||||
avoidBuggyIPs: false
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: metallb.io/v1beta2
|
||||
kind: BGPPeer
|
||||
metadata:
|
||||
name: bgp-peer-worlddrive
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
disableMP: false
|
||||
myASN: 65001
|
||||
peerASN: 65002
|
||||
peerAddress: 10.1.71.1
|
||||
peerPort: 179
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: IPAddressPool
|
||||
metadata:
|
||||
name: bgp-ip-addresspool
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
addresses:
|
||||
- 10.1.82.0/24
|
||||
autoAssign: true
|
||||
avoidBuggyIPs: false
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
commonAnnotations:
|
||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
- bgp_peer.yaml
|
||||
- ip_addresspool.yaml
|
||||
Reference in new issue
Block a user