kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch12/pi/namespace-with-quota/03-web-service.yaml

14 lines
213 B
YAML
Raw Normal View History

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