--- tags: blog, kubernetes --- # Kubernetes: How to publish service behind an load balancer Add "type: LoadBalancer" and "nodePort" value ... ```yml apiVersion: v1 kind: Service metadata: name: my-service spec: selector: app.kubernetes.io/name: MyApp ports: - protocol: TCP port: 80 targetPort: 9376 clusterIP: 10.0.171.239 type: LoadBalancer ``` ... then a status will be automatically added ```yml status: loadBalancer: ingress: - ip: 192.0.2.127 ```