mirror of
https://github.com/dockersamples/example-voting-app.git
synced 2026-02-14 18:29:51 +00:00
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.
17 lines
216 B
YAML
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
|
|
|