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

13 lines
184 B
YAML
Raw Normal View History

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