// Module included in the following assemblies:
//
// * /networking/ingress_load_balancing/metallb/metallb-configure-services.adoc

:_mod-docs-content-type: REFERENCE
[id="accept-any-ip-address_{context}"]
= Accept any IP address

[role="_abstract"]
To automatically allocate IP addresses to services without manual specification, configure MetalLB address pools to permit automatic assignment. MetalLB dynamically assigns available addresses from these pools, ensuring seamless service deployment and network connectivity. 

.Example service YAML for accepting any IP address
[source,yaml]
----
apiVersion: v1
kind: Service
metadata:
  name: <service_name>
spec:
  selector:
    <label_key>: <label_value>
  ports:
    - port: 8080
      targetPort: 8080
      protocol: TCP
  type: LoadBalancer
----

