kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch07/lab/pi/web-service.yaml

14 lines
207 B
YAML

apiVersion: v1
kind: Service
metadata:
name: pi-web
labels:
kiamol: ch07-lab
spec:
ports:
- port: 8070
targetPort: 80
name: http
selector:
app: pi-web
type: LoadBalancer