Kubernetes support for Internal Load Balancers in AWS
The above answer's syntax is invalid in Kubernetes v1.5.2. The correct syntax is:
apiVersion: v1
kind: Service
metadata:
name: someService
annotations:
"service.beta.kubernetes.io/aws-load-balancer-internal": "0.0.0.0/0"
latest format is
annotations:
service.beta.kubernetes.io/aws-load-balancer-internal: true
Per this thread, apply annotation service.beta.kubernetes.io/aws-load-balancer-internal
to the service definition.
kind: Service
apiVersion: v1
metadata:
name: someService
annotations:
- name: service.beta.kubernetes.io/aws-load-balancer-internal
value: 0.0.0.0/0