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

13 lines
173 B
YAML
Raw Normal View History

apiVersion: v1
kind: Service
metadata:
name: pi-web
labels:
kiamol: ch06
spec:
ports:
- port: 80
name: http
selector:
app: pi-web
type: ClusterIP