Skip to content
Permalink
Browse files

Fix orders of yaml of services-networking/service (#14212)

The orders of kind and metadata were inconsistent, and that made the
doc unreadable.
This fixes the orders in consistent way in service.md
  • Loading branch information...
oomichi authored and k8s-ci-robot committed May 8, 2019
1 parent e0cd1ee commit f952ac106fa6582455b4a2e1aa0875e0d5740062
Showing with 7 additions and 7 deletions.
  1. +7 −7 content/en/docs/concepts/services-networking/service.md
@@ -54,8 +54,8 @@ new instance. For example, suppose you have a set of `Pods` that each expose
port 9376 and carry a label `"app=MyApp"`.

```yaml
kind: Service
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
@@ -103,8 +103,8 @@ abstract other kinds of backends. For example:
In any of these scenarios you can define a service without a selector:

```yaml
kind: Service
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
@@ -118,8 +118,8 @@ Because this service has no selector, the corresponding `Endpoints` object will
created. You can manually map the service to your own specific endpoints:

```yaml
kind: Endpoints
apiVersion: v1
kind: Endpoints
metadata:
name: my-service
subsets:
@@ -236,8 +236,8 @@ ports you must give all of your ports names, so that endpoints can be
disambiguated. For example:

```yaml
kind: Service
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
@@ -427,8 +427,8 @@ information about the provisioned balancer will be published in the `Service`'s
`.status.loadBalancer` field. For example:

```yaml
kind: Service
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
@@ -773,8 +773,8 @@ This Service definition, for example, maps
the `my-service` Service in the `prod` namespace to `my.database.example.com`:

```yaml
kind: Service
apiVersion: v1
kind: Service
metadata:
name: my-service
namespace: prod
@@ -811,8 +811,8 @@ In the `ServiceSpec`, `externalIPs` can be specified along with any of the `Serv
In the example below, "`my-service`" can be accessed by clients on "`80.11.12.10:80`" (`externalIP:port`)

```yaml
kind: Service
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:

0 comments on commit f952ac1

Please sign in to comment.
You can’t perform that action at this time.