kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch16/pi/service.yaml

13 lines
184 B
YAML
Raw Normal View History

apiVersion: v1
kind: Service
metadata:
name: pi-web
labels:
kiamol: ch16
spec:
ports:
- port: 8031
targetPort: http
selector:
app: pi-web
type: LoadBalancer