minikube/site/content/en/docs/tutorials/includes/hello-svc.yaml

15 lines
197 B
YAML

---
apiVersion: v1
kind: Service
metadata:
name: hello
spec:
type: NodePort
selector:
app: hello
ports:
- protocol: TCP
nodePort: 31000
port: 80
targetPort: http