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:
parent
6ef63438b6
commit
5fa6707c82
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ metadata:
|
|||
labels:
|
||||
k8s-app: default-http-backend
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8080
|
||||
|
|
Loading…
Reference in a new issue