kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch10/pi/templates/web-service.yaml

14 lines
238 B
YAML
Raw Normal View History

apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-web
labels:
kiamol: ch10
spec:
ports:
- port: 80
name: http
selector:
app: {{ .Release.Name }}
component: web
type: {{ .Values.serviceType }}