Files
example-voting-app/k8s-specifications/vote-service.yaml
Michael Irwin 620c76c715 Change ports of vote/result ports from 5000/5001 to 8080/8081
The reasoning of this is because port 5000 is, by default, used by
an AirPlay receiver process on Macs. While this can be turned off,
we'd like this app to work without needing to adjust default
configurations on a machine.
2024-10-10 10:58:25 -04:00

17 lines
216 B
YAML

apiVersion: v1
kind: Service
metadata:
labels:
app: vote
name: vote
spec:
type: NodePort
ports:
- name: "vote-service"
port: 8080
targetPort: 80
nodePort: 31000
selector:
app: vote