ungleich-k8s/generic/service-no-port.yaml

12 lines
249 B
YAML
Raw Normal View History

2021-12-19 12:18:35 +00:00
# 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