kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch10/proxy/templates/nginx-service.yaml

14 lines
271 B
YAML
Raw Permalink Normal View History

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