set correct YAML examples (#15544)

Current YAML list is not correct (but working)
This commit is contained in:
elmbrain
2019-07-31 22:42:15 +03:00
committed by Kubernetes Prow Robot
parent 2ae184f17c
commit 731c11751e
@@ -86,9 +86,9 @@ spec:
selector: selector:
app: MyApp app: MyApp
ports: ports:
- protocol: TCP - protocol: TCP
port: 80 port: 80
targetPort: 9376 targetPort: 9376
``` ```
This specification creates a new Service object named “my-service”, which This specification creates a new Service object named “my-service”, which
@@ -146,9 +146,9 @@ metadata:
name: my-service name: my-service
spec: spec:
ports: ports:
- protocol: TCP - protocol: TCP
port: 80 port: 80
targetPort: 9376 targetPort: 9376
``` ```
Because this Service has no selector, the corresponding Endpoint object is *not* Because this Service has no selector, the corresponding Endpoint object is *not*
@@ -328,14 +328,14 @@ spec:
selector: selector:
app: MyApp app: MyApp
ports: ports:
- name: http - name: http
protocol: TCP protocol: TCP
port: 80 port: 80
targetPort: 9376 targetPort: 9376
- name: https - name: https
protocol: TCP protocol: TCP
port: 443 port: 443
targetPort: 9377 targetPort: 9377
``` ```
{{< note >}} {{< note >}}
@@ -532,16 +532,16 @@ spec:
selector: selector:
app: MyApp app: MyApp
ports: ports:
- protocol: TCP - protocol: TCP
port: 80 port: 80
targetPort: 9376 targetPort: 9376
clusterIP: 10.0.171.239 clusterIP: 10.0.171.239
loadBalancerIP: 78.11.24.19 loadBalancerIP: 78.11.24.19
type: LoadBalancer type: LoadBalancer
status: status:
loadBalancer: loadBalancer:
ingress: ingress:
- ip: 146.148.47.155 - ip: 146.148.47.155
``` ```
Traffic from the external load balancer is directed at the backend Pods. The cloud provider decides how it is load balanced. Traffic from the external load balancer is directed at the backend Pods. The cloud provider decides how it is load balanced.
@@ -863,7 +863,7 @@ specify `loadBalancerSourceRanges`.
```yaml ```yaml
spec: spec:
loadBalancerSourceRanges: loadBalancerSourceRanges:
- "143.231.0.0/16" - "143.231.0.0/16"
``` ```
{{< note >}} {{< note >}}
@@ -931,12 +931,12 @@ spec:
selector: selector:
app: MyApp app: MyApp
ports: ports:
- name: http - name: http
protocol: TCP protocol: TCP
port: 80 port: 80
targetPort: 9376 targetPort: 9376
externalIPs: externalIPs:
- 80.11.12.10 - 80.11.12.10
``` ```
## Shortcomings ## Shortcomings