ungleich-k8s/generic/service-no-port.yaml
Nico Schottelius f6460ed64e No service port
2021-12-19 13:18:35 +01:00

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