From f952ac106fa6582455b4a2e1aa0875e0d5740062 Mon Sep 17 00:00:00 2001 From: Kenichi Omichi Date: Tue, 7 May 2019 22:16:32 -0700 Subject: [PATCH] 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 --- .../docs/concepts/services-networking/service.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/en/docs/concepts/services-networking/service.md b/content/en/docs/concepts/services-networking/service.md index 899bd91779..5787d5621f 100644 --- a/content/en/docs/concepts/services-networking/service.md +++ b/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: