--- 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 ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up