I think you misunderstand what externalIPs
do. The externalIPs
it’s not a list of IP addresses that traffic is allowed from, more information you can find in the Kubernetes docs, Service | Kubernetes
The parsing error occurred because the value for externalIPs
has to be an array (https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#servicespec-v1-core)