Search code examples
nginxkuberneteskubernetes-ingressnginx-ingress

Kubernetes Nginx ingress multiple ExternalIps


I install Nginx Ingress Controller on bare metal. enter image description here

now i want to add many ExternalIP , 10.24.100.55 10.24.100.56 , 10.24.100.57

This is my Deploy.yaml

spec:
  ipFamilies:
  - IPv4
  ipFamilyPolicy: SingleStack
  ports:
  - appProtocol: http
    name: http
    port: 80
    protocol: TCP
    targetPort: http
  - appProtocol: https
    name: https
    port: 443
    protocol: TCP
    targetPort: https
  selector:
    app.kubernetes.io/component: controller
    app.kubernetes.io/instance: ingress-nginx
    app.kubernetes.io/name: ingress-nginx
  externalIPs:
    - 10.24.100.55
  type: NodePort

When i try to add other ips , there is error For example

externalIPs:
        - 10.24.100.55 , 10.24.100.56

is it possible ?


Solution

  • externalIPs:
       - 10.24.100.55 , 10.24.100.56
    

    Try:

    externalIPs:
    - 10.24.100.55
    - 10.24.100.56