kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch05/pi/v1/web-service.yaml

13 lines
172 B
YAML

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