rancher-partner-charts/charts/hashicorp/consul/templates/terminating-gateways-servic...

32 lines
787 B
YAML

{{- if .Values.terminatingGateways.enabled }}
{{- $root := . }}
{{- $defaults := .Values.terminatingGateways.defaults }}
{{- range .Values.terminatingGateways.gateways }}
{{- $service := .service }}
apiVersion: v1
kind: Service
metadata:
name: {{ template "consul.fullname" $root }}-{{ .name }}
namespace: {{ $root.Release.Namespace }}
labels:
app: {{ template "consul.name" $root }}
chart: {{ template "consul.chart" $root }}
heritage: {{ $root.Release.Service }}
release: {{ $root.Release.Name }}
component: terminating-gateway
spec:
selector:
app: {{ template "consul.name" $root }}
release: "{{ $root.Release.Name }}"
component: terminating-gateway
type: ClusterIP
ports:
- port: 80
targetPort: 8443
---
{{- end }}
{{- end }}