wiki/structured/assets/challenges.suse-cloud-native-fundamentals-scholarship-program/helm-nginx/templates/service.yaml

18 lines
334 B
YAML
Raw Normal View History

apiVersion: v1
kind: Service
metadata:
labels:
app: nginx
tag: alpine
name: nginx-alpine
namespace: {{ .Values.namespace.name }}
spec:
ports:
- port: {{ .Values.service.port }}
protocol: TCP
targetPort: {{ .Values.service.port }}
selector:
app: nginx
tag: alpine
type: {{ .Values.service.type }}