11 lines
249 B
YAML
11 lines
249 B
YAML
# Cannot use arbitrary ports:
|
|
# [13:18] nb3:generic% kubectl apply -f service-no-port.yaml
|
|
# The Service "my-service" is invalid: spec.ports: Required value
|
|
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: my-service
|
|
spec:
|
|
selector:
|
|
app: myapp
|