Giter Club home page Giter Club logo

Comments (7)

kim0 avatar kim0 commented on June 20, 2024

I am not an openshift developer, but I had the same need and after working with support I achieved it using

#! To apply this special file use:
#! oc replace --force -f - --wait --save-config
apiVersion: operator.openshift.io/v1
kind: IngressController
metadata:
  name: default
  namespace: openshift-ingress-operator
spec:
  replicas: 3
  defaultCertificate:
    name: router-certs
  endpointPublishingStrategy:
    loadBalancer:
      scope: Internal
      providerParameters:
        type: AWS
        aws:
          type: NLB
    type: LoadBalancerService

from cluster-ingress-operator.

sgreene570 avatar sgreene570 commented on June 20, 2024

@htkmts, as @kim0 mentions, support for AWS NLB's was added to the ingress operator in OCP 4.6.

Please see https://docs.openshift.com/container-platform/4.6/networking/configuring_ingress_cluster_traffic/configuring-ingress-cluster-traffic-aws-network-load-balancer.html

from cluster-ingress-operator.

sgreene570 avatar sgreene570 commented on June 20, 2024

/close

from cluster-ingress-operator.

openshift-ci-robot avatar openshift-ci-robot commented on June 20, 2024

@sgreene570: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

from cluster-ingress-operator.

harishbab avatar harishbab commented on June 20, 2024

But this doesnt allow the static IP addresses configuration for the NLBs. It just takes a ip allocated from the subnets assigned to the cluster. Can i know if we can custom config the static IP addresses for the NLB?

Also would love to see the customisation for below NLB config parameters:
Name
Subnets
Custom tags
Attributes
Static IP addresses

from cluster-ingress-operator.

niteenkole avatar niteenkole commented on June 20, 2024

I also have same requirement. Basically for whatever reason if i need to replace NLB I want to retain same IP ,this will help not to request firewall opening and all if NLB pickup some other random IP.If we see AWS documentation "you can optionally specify one private IP address per subnet." https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html

from cluster-ingress-operator.

gswallow avatar gswallow commented on June 20, 2024

Have also hit this. It seems as if https://github.com/openshift/cluster-ingress-operator/blob/master/pkg/operator/controller/ingress/load_balancer_service.go needs to be updated to pass annotations to the ingress controller's service:

  • service.beta.kubernetes.io/aws-load-balancer-private-ipv4-addresses
  • service.beta.kubernetes.io/aws-load-balancer-subnets annotations

or https://github.com/openshift/api/blob/54592eea55395af31e82fa9a605eb45523115454/operator/v1/types_ingress.go#L592-L595 needs to be updated to Deep Copy ELBv2 SubnetMappings into the resulting load balancer.

Probably the former.

See https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.2/guide/service/annotations/ and https://docs.aws.amazon.com/sdk-for-go/api/service/elbv2/#SubnetMapping

from cluster-ingress-operator.

Related Issues (20)

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.