kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch03/numbers-services/web-service-nodePort.yaml

12 lines
188 B
YAML

apiVersion: v1
kind: Service
metadata:
name: numbers-web-node
spec:
ports:
- port: 8080
targetPort: 80
nodePort: 30080
selector:
app: numbers-web
type: NodePort