Specify type for default backend service

Without an explicit `type: NodePort` on the default backend service, I got an error when trying to apply it:

    The Service "default-http-backend" is invalid: spec.ports[0].nodePort: Invalid value: 31950: may not be used when `type` is 'ClusterIP'
This commit is contained in:
Itamar Ostricher 2017-08-21 14:40:00 +03:00 committed by GitHub
parent 6ef63438b6
commit 5fa6707c82

View file

@ -44,6 +44,7 @@ metadata:
labels:
k8s-app: default-http-backend
spec:
type: NodePort
ports:
- port: 80
targetPort: 8080