2016-03-16 22:54:34 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: myapp
|
|
|
|
spec:
|
|
|
|
ports:
|
2016-06-08 00:46:46 +00:00
|
|
|
- port: 8765
|
2016-03-16 22:54:34 +00:00
|
|
|
targetPort: 9376
|
|
|
|
selector:
|
|
|
|
app: example
|
|
|
|
type: LoadBalancer
|
2016-06-08 00:46:46 +00:00
|
|
|
loadBalancerSourceRanges:
|
|
|
|
- 10.180.0.0/16
|
|
|
|
- 10.245.0.0/24
|