Skip to content

Commit

Permalink
Adding required name values (kubernetes-sigs#416)
Browse files Browse the repository at this point in the history
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```
  • Loading branch information
fabiant7t authored and hjacobs committed Dec 10, 2017
1 parent 0c440a7 commit 874ec1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tutorials/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ spec:
type: LoadBalancer
ports:
- port: 80
name: http
targetPort: 80
selector:
app: nginx
Expand All @@ -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.
Expand Down

0 comments on commit 874ec1a

Please sign in to comment.