kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch12/pi/web-service.yaml

14 lines
200 B
YAML

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