Skip to content

Commit

Permalink
Configure address for external ingress service
Browse files Browse the repository at this point in the history
This service is used with the external ingressController and connects with our public metallb loadBalancer
The important fields to pay attention to here are the:
metadata.annotations metallb.universe.tf/address-pool: public

spec.loadBalancerIP: 199.94.61.6
This is the ip where we are servicing external traffic
  • Loading branch information
dystewart committed Nov 18, 2022
1 parent c715da5 commit c9729e1
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ spec:
nerc.mghpcc.org/external-ingress: 'true'
routeSelector:
matchLabels:
type: external
nerc.mghpcc.org/external-ingress: 'true'
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 @@ -20,6 +20,7 @@ resources:
- nodenetworkconfigurationpolicies
- metallb
- clusterversion.yaml
- services/router-external-apps-ingress-controller.yaml

patches:
- path: ingresscontrollers/default_patch.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: v1
kind: Service
metadata:
annotations:
metallb.universe.tf/address-pool: public
traffic-policy.network.alpha.openshift.io/local-with-fallback: ""
labels:
app: router
ingresscontroller.operator.openshift.io/owning-ingresscontroller: external-apps-ingress-controller
router: router-external-apps-ingress-controller
name: router-external-apps-ingress-controller
namespace: openshift-ingress
spec:
allocateLoadBalancerNodePorts: true
externalTrafficPolicy: Local
healthCheckNodePort: 32573
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
loadBalancerIP: 199.94.61.6
ports:
- name: http
nodePort: 31731
port: 80
targetPort: http
- name: https
nodePort: 31651
port: 443
targetPort: https
selector:
ingresscontroller.operator.openshift.io/deployment-ingresscontroller: external-apps-ingress-controller
type: LoadBalancer

0 comments on commit c9729e1

Please sign in to comment.