How to give a Kubernetes service a static address on bare metal across multiple subnets?
I would use NodePort
with fixed external port for services, then use ACLs to limit the access to the nodes that I want, IE in particular subnet.
Example for fixed NodePort:
apiVersion: v1kind: Servicemetadata: name: nginx labels: name: nginxspec: type: NodePort ports: - port: 80 nodePort: 30080 name: http - port: 443 nodePort: 30443 name: https selector: name: nginx