From 874ec1a45a63356f5c8ed1e1e3f279e04cf4d7a7 Mon Sep 17 00:00:00 2001 From: Fabian Topfstedt Date: Sun, 10 Dec 2017 03:08:34 +0100 Subject: [PATCH] Adding required `name` values (#416) Added a name value so make Kubernetes 1.8.5 work. Had this error before: ```The Service "nginx" is invalid: * spec.ports[0].name: Required value``` --- docs/tutorials/aws.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tutorials/aws.md b/docs/tutorials/aws.md index 3692287dee..8bba898cf6 100644 --- a/docs/tutorials/aws.md +++ b/docs/tutorials/aws.md @@ -106,6 +106,7 @@ spec: type: LoadBalancer ports: - port: 80 + name: http targetPort: 80 selector: app: nginx @@ -127,6 +128,7 @@ spec: name: nginx ports: - containerPort: 80 + name: http ``` After roughly two minutes check that a corresponding DNS record for your service was created.